Rich-text Reply

Custom event goals scope

spirosdimopulos 01-17-17

Custom event goals scope

Hey guys, I am a bit confused by this part of the custom event goals documentation from here:

https://help.optimizely.com/Measure_success%3A_Track_visitor_behaviors/Custom_event_goals_in_Optimiz...

 

Adding a custom event to the Experiment JavaScript will only work if the experiment is active on the page in question. If you would like to track custom event goals outside the scope of the experiment, the code will need to be placed natively on the page.

 

Does this mean that if I add a natively-placed custom event goal to an experiment, then the goal will be tracked even when the experiment is not active (because of a special exception set in the "Activation mode")? 

Re: Custom event goals scope

[ Edited ]

That means that you have to insert the snippet code of the experiment and the custom event code.
Example
You are running a test for purchase process in your homepage you create your experiments
and then you have 3 product (Product 1, Product 2 and Product 3)option to purchase, so create 3 products pages and 3 Thank you pages for every single product
the snippet of the experiment needs to be on your HOMEPAGE, on your PRODUCT pages and your THANK YOU pages.
But in every thank you page you need to insert the script to track that specific goal ( Product 1 or 2 or 3)

SEM and CRO Specialist

Re: Custom event goals scope

[ Edited ]

Thank you for the reply.

 

What you describe is already done. 

 

The fact is: custom-event-built-in goal conversions are included in experiments where the experiment is not active but the user has been bucketed because of a previous activation.

 

The question is: What is the most optimal way to make sure that a conversion is included in the results only for the session where the user was bucketed. Should we f.e: move the goal from the app to the specific experiment's javascript and allow the experiment to run in the success page? 

Re: Custom event goals scope

Answering your question "Does this mean that if I add a natively-placed custom event goal to an experiment, then the goal will be tracked even when the experiment is not active "

No, if the experiment is not running the goal will be not tracked.
SEM and CRO Specialist