(Problem) Optimizely integration with Google Tag Manger and Google Analytics
I have some many questions integrating Optimizely with Google Tag Manager. In fact I followed the steps you created in this guide https://help.optimizely.com/hc/en-us/articles/203189220-Implementing-Optimizely-with-Google-Tag-Mana... particularly the section which you recommend creating a custom JS piece of code and addede the optimizely snippet afeter the <head> tag.
This is the page I want to run experiments on: https://www.agroptima.com/gestiona-tu-explotacion/
Therefore, my questions are:
- How can I verify that everythiing is tracking correcty? Do I need to publish the experiments in order to verify that everything is correctly set up?
- I've created a custom dimension within Google Analytics in order to compare the treatment and the control for a given experiment on that page. Am I going to see the performance of the control and the treatment if I only have one custom dimension? or do I need to create two different custom dimensions to track the control and the treatment?
After you've appended those parameters, open your console in Google Chrome (cmd + opt + i on Mac), and go to your network tab. Filter results by XHR and type in event? - as you click on elements you track or on the page, you should see new items populate in your network tab indicating that they are working. You can verify this by clicking on an individual event and checking the n value for what exactly's being tracked.
- Yes, you can see the performance of the control and the treatment in one custom dimension, it just depends how you set up your custom report and what filters you set.