Rich-text Reply

Goal tracking

dave777 12-29-16

Goal tracking

Hello. We set goal for custom event Shipment Created we track via Segment https://cl.ly/2K2j1C0C390F/Image%202016-10-27%20at%2011.31.17%20dop..png.

https://cl.ly/2e0r0m1B201s/Image%202016-10-28%20at%205.31.47%20odp..png.

 

Unfortunately we cannot see any results.  Integration is enabled https://cl.ly/3l0Y1P3r350y/Image%202016-10-27%20at%2011.33.21%20dop..png. https://cl.ly/3X3F2A150Q0O/Image%202016-10-28%20at%205.34.03%20odp..png

 

We found out that Optimizely snippet must be loaded before Segment snippet https://segment.com/docs/integrations/optimizely/#required-step. In source code it is well set up. Optimizely snippet is before Segment snippet https://zavezu.cz/. However when the page is loaded Segment snippet is loaded first (faster), then Optimizely. That is why in Developer tool we see Segment first. But we do not know what can we do here.

 

Is tis

 

Level 2

robertchan 01-02-17
 

Re: Goal tracking

Are you able to dynamically inject the segment snippet instead? If you're able to set that up then you could use some type of callback approach where you wait for Optimizely to load prior to firing off the segment snippet. You can have a read about callbacks here: http://stackoverflow.com/questions/22442321/callback-function-example
Robert Chan

Experimentation Hero