Tag manager implemetion error

AI-generated summary

Tag Manager Implementation Error

User ufukayyildiz is experiencing an “unexpected start token” error when trying to add a Google Tag Manager (GTM) code to their Discourse site. Johani advises that instead of adding the code manually, the GTM container ID should be added to the gtm_container_id site setting.

After implementing this solution, ufukayyildiz encounters another issue with their AdWords conversion tag not being active. They also inquire about adding a conversion tracking code directly to a specific page (mydomain.com//u/account-created).

Johani recommends confirming that the steps in the setup guide have been followed. ufukayyildiz agrees to re-check the guide. Mittineague points out a potential issue with a missing closing quotation mark in the source value.

hello friends,

when i trying to add below code in body from customize section i get unexpected start token error . How can i solve this ? Thanks.

You actually don’t need to do any of that.

If you want to integrate Google Tag Manager on your Discourse site, all you need to do is add the container ID to the gtm_container_id site setting.

Thank you so much. I also tried it but adwords says conversion tag is not active. Maybe there is another problem.

As a second solution i want to implement the conversion tracking code in direct a page so how can i add a code in mydomain.com//u/account-created page ?

the code which i want to implement

Before we dig deeper into your issue, can you confirm that you’ve read and followed the steps detailed in this guide?

Let me check again. :+1:

It looks like the source value is missing the closing quotation mark.