Rich-text Reply

Optimizely x CrazyEgg x GTM

lb 11-17-14

Optimizely x CrazyEgg x GTM

[ Edited ]

I have Optimizely integrated with CrazyEgg via the API configuration, as outlined here. The 'disable force variation' option is not-checked in the Project Code Settings.

When I create a new experiment and enable heat map integration via Optimizely, the two different variants show up inside of CrazyEgg's dashboard as expected. However, data never begins collecting. When I use the CrazyEgg "Installation Check" to verify everything is setup correctly, I see the following error :



  • Snapshot name matches code on page? No. The snapshot's name is Optimizely <snip>...</snip> (Short vs Long Headline): Original, but there is no CE_SNAPSHOT_NAME defined on that page.


All tags are integrated through the Google Tag Manager (GTM) after the first body tag (as required by GTM). In the following order (largest number fires first):

  • JQuery: Priority 2000, Conditions {{url}} matches RegEx .*
  • Optimizely: Priority 1000, Conditions {{url}} matches RegEx .*
  • Analytics: Priority 500, Conditions {{url}} matches RegEx .* AND {{event}} equals optimizely_loaded
  • Crazyegg: Priority 1, Conditions {{event}} equals gtm.dom

Please advise why the CE_SNAPSHOT_NAME is likely not being defined on the pages.



Level 1

Junan 11-18-14

Re: Optimizely x CrazyEgg x GTM

@lb Thanks for the great detail in your question. I know this is a basic question but wanted to double-check...can you confirm that the Optimizely snippet is implemented on the page that you're targeting and that you can get included in the experiment?

You can check this by looking for the Optimizely snippet within "View Source" or by opening the browser console and typing "optimizely" to see if the object has been defined. Let me know if you're seeing Optimizely defined and we can go from there. Thanks!!
Junan Pang
lb 11-18-14

Re: Optimizely x CrazyEgg x GTM

Hi Junan,


Thanks for the quick response. SInce everything is integrated via GTM, viewing source on the page won't show any of the scripts. The only script on the page is:


<!-- Google Tag Manager -->
<noscript><iframe src="//"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
<!-- End Google Tag Manager -->


However, I can confirm that Optimizely is tracking the two variants perfectly inside of the respective experiment. Clicks/conversions/etc are all showing data.

Level 1