Skip to main content

Everything you need to switch from Optimizely Classic to X in one place: See the Optimizely X Web Transition Guide.

Optimizely Knowledge Base

Integrate with Google Tag Manager's Data Layer (and push data to Google Analytics and other tags)

  • Integrate Google Tag Manager to receive experiment data from Optimizely
  • Add Google Tag Manager's integration code to your pages
  • Set up forwarding of your experiment data to any tag you load through Google Tag Manager, such as Google Analytics.

Google Tag Manager offers a Data Layer for any visitor-related events and attributes. This integration will enable you to push all running experiments and variations a visitor is part of to their Data Layer. In Google Tag Manager, you can then use this data in any tag you want (e.g. Google Analytics, Facebook Retargeting, call tracking tools).

Add the integration code to your page and test the integration