6

I'm trying to use Google Tag Manager for a site created using Google classic Sites, but I haven't had any luck so far. This question seems to have been up on a few forums, but I was not able to find any definitive answer to this end.

Help would be greatly appreciated!

2 Answers 2

1

You've probably seen this page - Configure Google Analytics for Google Sites, but I don't believe there is a way to add custom javascript to a google sites page, at least not yet. You might be better off buying your own domain and hosting it somewhere if you want access to GTM.

1
  • 1
    Yeah. I figured as much. I was just hoping that SO might be able to provide some kind of work-around. Thanks all the same. :) Nov 28, 2013 at 5:03
0

You can now use the 'embed' option in google sites to add arbitrary html/css/javascript to the site. I added the tracking code created by google tag manager and embedded it in the footer of my google site.

Directions from Google

2
  • It doesn't seem to work on my side. Even without embedded code, google tag manager seems to work with Google Sites when google tag manager is in preview/debug mode. But when I stop debug mode, the external trackers stop receiving events after some time.
    – David
    Dec 9, 2022 at 16:57
  • 1
    Please bear in mind that this question is about "classic Sites" (based on the question date), the link applies to "new Sites".
    – Rubén
    Feb 1 at 21:03

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.