mikulaskafka / the-chocolate-shop-kaneeka

0 stars 0 forks source link

Installation of Google Tag Manager #1

Closed AbichandaniKaneeka closed 7 months ago

AbichandaniKaneeka commented 7 months ago

Hi Mikulas,

Please paste the below mentioned code onto every page of your website.

Note: Paste this code as high in the of the page as possible:

AbichandaniKaneeka commented 7 months ago

Also, paste this code immediately after the opening tag

Please confirm once done, so that I can test the website at my end.

Thanks for your help.

AbichandaniKaneeka commented 7 months ago

Website Link for your reference: https://mikulaskafka.github.io/the-chocolate-shop-kaneeka/

mikulaskafka commented 7 months ago

The code was added as instructed:

  1. As high as possible on every page of the website: <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PN8DFN6G');</script>

  2. Immediately after the opening tag: <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PN8DFN6G" height="0" width="0" style="display:none;visibility:hidden"></iframe>

Affected pages: /reviews /about /index /products

Please check the changes and close the ticket if you're happy with them.

AbichandaniKaneeka commented 7 months ago

Thank you for adding the tag to the website as instructed.

I tried testing it using Tag Assistant. Everything looks good for now.

However, I would like to create a couple of events and check it once. Allow me sometime to do the needful before I close the ticket.

Thanks

AbichandaniKaneeka commented 7 months ago

Thanks for making the necessary edits to the tag manager