PREGAME:
SET UP ANALYTICS WITH TAG MANAGER + UNIVERSAL VARIABLE
Deploy Universal Analytics with Tag Manager
https://support.google.com/tagmanager/answer/6107124#settings_variables
This is a page to test google optimize
Banner template
Add a notification banner to the top of your website.
https://support.google.com/optimize/answer/9823410
Google Optimize Beginner’s Guide
https://cxl.com/blog/google-optimize/
VIDEO GUIDES: https://support.google.com/optimize/answer/9340015?hl=en
Install Steps
- https://support.google.com/optimize/answer/6211921 – Set Up
- https://support.google.com/optimize/answer/7513085 – Snippet
- https://support.google.com/optimize/answer/6314801 – Tag Manager install
- https://support.google.com/optimize/answer/7100284 – anti-flicker
Install Optimize with Google Tag Manager
If you want to deploy Optimize with Google Tag Manager, follow the instructions below. If you use another tag management system (TMS), follow their instructions to add Optimize to your existing Google Analytics tag.
Custom tracker settings
Users of custom tracker settings must use the shared Google Analytics Settings variable in Tag Manager and Analytics to ensure that all tracker settings match between tags.
Step 1: Collect the necessary information
You need the following information to install Optimize:
- Your Analytics tracking ID.
- Your Optimize container ID.
- Confirm that your Tag Manager and Analytics tracker settings use the shared Google Analytics Settings variable.
Step 2: Configure Optimize in Tag Manager
Once you have the information above, follow these steps to configure Optimize in Tag Manager:
- Sign in to Tag Manager and select an account.
- Click Tags > New.
- Click Tag Configuration > Google Optimize.
- Enter your Optimize container ID.
- Select a Google Analytics Settings variable.
- Click Save and save the tag without triggers.
- Open the Analytics page view tag for the Analytics property linked to your Optimize container.
- Click Tag Configuration > Advanced Settings > Tag Sequencing.
- Check the box to fire a tag before this tag fires. Under the Setup Tag heading, click the menu and select the desired Optimize tag.
- Configure the Optimize tag to fire once per page, then save it.
- Publish your Tag Manager container for the changes to take effect.
Learn more in the Tag Setup Guide for Optimize in the Tag Manager help center.
Snippet installation best practices
For optimal performance, place the Optimize snippet at the top of the <HEAD>
tag on every web page you wish to optimize.
The only items that should appear above the Optimize snippet are:
- Any dataLayer initialization code. Note: the dataLayer variable should never be reassigned after the anti-flicker snippet (when used).
- Any scripts that declare JavaScript variables, functions, or set cookies you use in Optimize, like jQuery or JavaScript libraries used in implementation or targeting. Note: jQuery isn’t installed by Optimize by default.
- The optional anti-flicker snippet, when used to mitigate page flicker.