Streaming live at 10am (PST)

Google Optimize

Hi There,

I wasn’t able to find this any where else in the Webflow community (hopefully I searched enough!)

I’ve recently set up a Google Optimize account and my contain ID is OPT-####### (a mix of numbers and letters.

Webflow’s Google Optimize integration only accepts GTM-#######. The beginning letters are different but the jist is the same.

Has anyone integrated Google Optimize effectively? Am I using the wrong container ID from Optimize?

Any support would be appreciated,

Thank you!

look this
A container ID is a 9-digit alphanumeric string beginning with " GTM- " that uniquely identifies it (e.g. " GTM-A1B2CD "). The container ID is part of your Optimize snippet presented when you click INSTALL OPTIMIZE, and it can be found under Container setup > Container information in Optimize.

I have the same problem - it looks like they changed IDs to start with “OPT-” …
Attaching an image where the top one is my new container (starting with “OPT-…”) and bellow are old ones (starting with “GTM-…”)
Does anybody know a workaround?

@mojca use custom code

1 Like

Thanks @guoshuzhang - I did this afterwards and just wanted to post an update. :slight_smile:

Same issue here on our latest projects.
Optimize is now generating OPT rather than GTM (which I always took as Google Tag Manager rather).

Custom code is fine for now, but it would be good to see this limitation removed, because Webflow is moistly aimed at non-technical customers.

Easy enough to copy and paste snippet into header code. But, a little confused so want to clarify:

  1. I originally installed Google Analytics via “Universal Analytics” code snippet into my header code for google analytics.

  2. I saw on the “Integrations” tab in dashboard that: “If you’ve pasted your Universal Analytics into any of your site’s custom code areas, be sure to remove it to prevent inaccurate data.”

  3. I deleted that custom code and entered just the “Google Universal Analytics Tracking ID:” in the provided space.

  4. Realizing that custom code is not the way to go with predefined integrations, I decided to copy and paste “Container ID” for Google Optimize, only to realize – what we have recently pointed out in this thread – webflow won’t let you use a “Container ID” that starts with OPT-

… Confused because that was expressly mentioned as NOT the thing to do for analytics.

So to summarize: use the predefined integration for google analytics, use the header code for google optimize?