Glad to help. Here are the steps to enable Optimize:
1) Enable “Global Site Tag” for the Tracking Method option
2) Enter the following code for the “Custom Tracker Objects” option:
{ 'optimize_id': 'OPT_CONTAINER_ID'}
3) Replace OPT_CONTAINER_ID with your container ID
4) Remember to save changes (click the big blue button near the bottom of the settings page)
Done. You can verify the code by viewing the source code of your web page(s) and comparing with the Google docs.
Thanks very much !!! It’s done !
Sorry to but in here but even after entering the Custom Tracker, I am unable to use Optimize on my site. I can see the container ID inserted in my page source. I am using gtag.js in your plugin settings, and not the legacy code. I currently block Admin tracking. I get these two errors:
1. Optimize plugin not found
The web page page doesn’t have Optimize plugin for the container ID (GTM-KS7BJF7) installed. You can still use the visual editor to create variants but you can’t use Preview mode to test them and visitors won’t see your experiment. To run an experiment you must first install Optimize .
2. Unsupported Analytics tracking code
The page is tracked with the legacy Google Analytics (ga.js) tracking code which isn’t supported by Optimize. Update your Google Analytics tracking code to either analytics.js or gtag.js to use Optimize.
Have created a new topic for this: https://ww.wp.xz.cn/support/topic/google-optimize-not-working-errors/
-
This reply was modified 7 years ago by
hifunda.
Please do not multiple-post. Will respond to your new topic, thank you.