Improved support for Google Tag Manager


Add a box on the Analytics page which allows you to enter your GTM Container ID and then automagically insert the two GTM Container code snippets in the appropriate places.

Google Tag Manager container code now has two code snippets.

The first code snippet needs to go as high as possible in the <head>. 

The second code snippet needs to go immediately after the <body> tag. The only way I know to do this at the moment is with a custom embed.  

Many thanks



  • Graham Cox
  • Jan 20 2017
  • Culture First commented
    17 Jan 10:17am

    Absolutely ! Altogether, Webflow is weak on integrations with all sorts of commonly used software compared to Wix, Squarespace of Wordpress. This should be a priority.

  • William Gen commented
    6 May, 2020 07:44pm

    You can create a symbol for GTM head code and insert it on every page. If you change the symbol it'll change across pages. Right now this is the closest solution.

  • Ronald Edwards commented
    4 Mar, 2019 12:57pm

    this would definitely make it more elegant than putting it in the custom code field ;) Thanks a lot in advance. 

  • Rohan Ganachari commented
    14 Jan, 2019 10:18am


  • Micheal Reno commented
    16 Aug, 2018 04:05am

    We solved this for exported sites! Check out you can save a GTM code and apply it to many sites, on all pages at once.

  • Cameron Roe commented
    21 Jul, 2018 11:10am

    Agreed! This would allow for us to add our Google Analytics in our Google Tag Manager container instead of directly in Webflow for better control. Google Tag Manager is really all that is needed.

  • Michael Wells commented
    18 Dec, 2017 10:38am

    Adding some further references here for this item, regarding the current "The Google Tag Manager snippet on your site is in the wrong location" error.!topic/webmasters/Z7QR716p44A

    Webflow docs don't mention this problem- 

  • Michael Wells commented
    18 Dec, 2017 10:35am

    Chris Greer- yes that's correct, even if you can ensure that the HTML embed would render immediately after the <BODY> tag, you'd need to create that on every single page on your site to have correctly installed GTM. 

    GTM seems to mostly work OK with the BODY snippet at the end, just before the closing </BODY> tag, which WebFlow allows you to do in site settings.

    However some features, like verifying Google Search Console sites won't work. There you get an error "The Google Tag Manager snippet on your site is in the wrong location."

  • Guillaume Eyries commented
    11 Jul, 2017 06:11pm

    +1 This would be great!

  • Cameron Roe commented
    9 Jun, 2017 09:20pm


  • Chris Greer commented
    6 Jun, 2017 08:23pm

    How do you add the code for the <body>? And does this need to go on every page?

  • Christoffer Furnes commented
    24 Apr, 2017 02:47pm


  • Noelle Greenwood commented
    25 Feb, 2017 10:28am

    Yes, yes, yes. So important.

  • Kai D. Thomas commented
    26 Jan, 2017 08:30am

    Thanks for putting this on the list. Would make things much easier to implement!

  • +50