Installing Google Tag Manager

New Member
3 0 0

Hi there,

 

I have been asked to Install Google Tag Manager to my website. A marketing company has requested I Copy the code & paste it onto every page of your website, as high in the <head> of the page as possible. Then with a second sett of code paste immediately after the opening <body> tag.

 

Do I just add both of these into the theme.liquid file? I don't know how to add to every page of my website?

 

Thanks in advance!

 

-- Adele

0 Likes
Shopify Expert
51 12 7

Hey Adele,

 

Yes, the theme.liquid file contains both the <head> and <body> tags and essentially wraps every page on your website.

 

So adding your GTM code to theme.liquid file would run on every page.

0 Likes
New Member
3 0 0

Awesome did it & it worked! Thanks :) 

0 Likes
Highlighted
New Member
1 0 0

Hi, I see some blog suggests to add the code to the “checkout.liquid” file as well as theme.liquid file.

 

Do I really to do so after I've added the code to the theme.liquid? I've tried, but I didn't find the “checkout.liquid” file

0 Likes