Yes, the title of the post is correct ;-)
If I get that right, there are 3 ways to deploy Optimizely in TiQ:
1) Async tag from Marketplace (as described here: Optimizely Asynchronous Tag: Basic Configuration
2) Via utag.sync profile template (as described here: Optimizely: Synchronous Implementation)
3) Sync tag from Marketplace (no description on community)
We are looking at synchronous methods only since Async makes no sense for A/B testing as this often implies content replacement. Leaves options 2 and 3.
Also, we would like to map event name, event value and transaction ID for conversion events.
Many thanks for your thoughts.
Solved! Go to Solution.
One more question on the topic though. I have got the Custom Events to work now, but what about Custom Dimensions?
Optimizely offers the option to submit custom dimensions. Similar to Custom Events, they are to be submitted with an optimizely.push call like this:
optimizely.push(['setDimensionValue', 'dimensionId/Name', 'value'])
My question is: Is this supported with the Mapping toolbox and if yes, how? My attempts so far yielded no results unfortunately.
Thanks for your input.
Sorry that the Custom Dimenion is not available within the mapping box, but this doesn't stop you from pass dimenion info the Optimizely.
[Step-2] Paste the code in the extension
optimizely.push(['setDimensionvalue', 'country', b.country])
// whereas b.country is the datalayer value, it could be b.datalayer_item_name
[Step-3] Scope this Extension to be run along with the "Optimizely" tag.
I'm going to raise the request to our internal team for allowing the custom dimension mapping there.
Thank you for your patience and making our products better.
In regards to the Custom events mapping with the Async tag:
I have configured my test site exactly as described with the call of Optimizely JS in utag.sync and mapping of Custom events in Async tag (commenting out line 57 in the template).
However, custom events are not firing in that case. If only the Async tag is used (with original code), events are firing fine.
Would you have a hint what is wrong?