x

Can I install Google Tag Manager on my Square website and online store?

Hi there - I am interested in using Google Tag Manager with various analytics tracking on my Square website and online store. In order to install it you need to install two snippets of code - one in the <head> and one in the <body>. I thought I could do this on the tracking page where there's an option to embed custom code but results are not what I expected. Anyone know if this is even possible? And how to make it work?

9,196 Views
Message 1 of 18
Report
2 Best Answers
Square Champion

Best Answer

Hey there @brlouder, and welcome to The Seller Community!

 

From what I've read of the code, you should be just fine to go to Square.online > Settings > Tracking Tools > Add New Code to add the

 

<head>

 

code, there should be no issue with this... You can try the same for the

 

<body>

 

code, but as it contains an

 

<iframe></iframe>

 

within the 

 

<noscript></noscript>

 

it is likely it wont be compatible there. Alternatively you can add a custom HTML section to your square online site editor which will allow you to put any code into your 

 

<body></body>

 

 section of the site's code. 

 

Hope this could help, I am a developer, even if I'm not the best, I have a strong understanding of HTML, CSS, and Bootstrap4, with an ever growing knowledge of other coding languages too, so this should be accurate.

 

PLEASE NOTE: You may need to add the 

 

<body></body>

 

 code snippet to each individual page to ensure accurate tracking.

 

If this does help, please Mark As Best Answer to help other users in the future when looking for similar solutions! 😎

Matt - He/They
Sign in and click Mark as Best Answer if my reply answers your question!
mjdws
Shop MJD Photography
Visit MJD Web Services

View Best Answer >

8,985 Views
Message 6 of 18
Report
Square Champion

Best Answer

To track the checkout page and cart page, go to Square.online > Settings > General > Tracking from here you can setup the correct code for each page to track it. 

Matt - He/They
Sign in and click Mark as Best Answer if my reply answers your question!
mjdws
Shop MJD Photography
Visit MJD Web Services

View Best Answer >

8,762 Views
Message 9 of 18
Report
17 REPLIES 17
Square Community Moderator

Hi @brlouder 🙂

 

The header code will not work in the Embed Code section, and will need to be added under Website > Site Settings > Tracking Tools. There's a section towards the bottom where you can copy/paste the code from Google. You can use this Custom Tracking Code guide to reference. 

 

You won't be able to add the body code to this area, though. I believe it should work in the Embed Code section as long as the header code is removed. If it doesn't, let us know so we can do some more digging. 

 

 

9,142 Views
Message 2 of 18
Report

Hi Bernadette - Thanks for the response, but this is not what I'm asking. I know you can add the old Google Analytics UA codes under Tracking Tools. I am interested in installing Google Tag manager as described here: https://support.google.com/tagmanager/answer/6103696?hl=en  This is not explicitly an option on the Tracking Tools page but seems like it should work under "Add new code". Only it doesn't. 😞

9,093 Views
Message 3 of 18
Report

Hi Bernadette - bumping up this thread as I have a similar need. I am hoping to install GTM like brlouder. There is no functionality for Google Ads Conversion Tracking and Google is the biggest source of online advertising.

9,031 Views
Message 4 of 18
Report
Square Champion

@brlouder@macris, please view my reply here https://www.sellercommunity.com/t5/Questions-How-To/Can-I-install-Google-Tag-Manager-on-my-Square-we... to see how this should (hopefully) be possible!

Matt - He/They
Sign in and click Mark as Best Answer if my reply answers your question!
mjdws
Shop MJD Photography
Visit MJD Web Services
8,983 Views
Message 5 of 18
Report
Square Champion

Best Answer

Hey there @brlouder, and welcome to The Seller Community!

 

From what I've read of the code, you should be just fine to go to Square.online > Settings > Tracking Tools > Add New Code to add the

 

<head>

 

code, there should be no issue with this... You can try the same for the

 

<body>

 

code, but as it contains an

 

<iframe></iframe>

 

within the 

 

<noscript></noscript>

 

it is likely it wont be compatible there. Alternatively you can add a custom HTML section to your square online site editor which will allow you to put any code into your 

 

<body></body>

 

 section of the site's code. 

 

Hope this could help, I am a developer, even if I'm not the best, I have a strong understanding of HTML, CSS, and Bootstrap4, with an ever growing knowledge of other coding languages too, so this should be accurate.

 

PLEASE NOTE: You may need to add the 

 

<body></body>

 

 code snippet to each individual page to ensure accurate tracking.

 

If this does help, please Mark As Best Answer to help other users in the future when looking for similar solutions! 😎

Matt - He/They
Sign in and click Mark as Best Answer if my reply answers your question!
mjdws
Shop MJD Photography
Visit MJD Web Services
8,986 Views
Message 6 of 18
Report

It all works fine until I hit the checkout page. It seems the checkout page does not carry the code. I'm trying to set up events using Google Tag Assistant but when I hit the checkout page the Tag Assistant loses the connection to the page being debugged. I tried inserting the UA number and the code snippet in the Setting/General/Tracking/Custom Tracking - Payment Page but it doesn't work... In this section I don't have the same option to insert 2 codes in the <head> and <body> so I just inserted the two codes in the same box splitting like so...

 

first code </head>

<body> second code

 

Well, needless to say it doesn't work but I don't know what else to do... I don't know why Weebly/Square don't give us access to the back end html code so we can solve these issues ourselves.

 

Also, it seems the payment page isn't under the same domain - even though the page is under the same url.

8,861 Views
Message 7 of 18
Report
Square Champion

I’m 60 miles from home right now, I’ll make a post here on how to track the checkout and cart in a few hours 😎

Matt - He/They
Sign in and click Mark as Best Answer if my reply answers your question!
mjdws
Shop MJD Photography
Visit MJD Web Services
8,856 Views
Message 8 of 18
Report
Square Champion

Best Answer

To track the checkout page and cart page, go to Square.online > Settings > General > Tracking from here you can setup the correct code for each page to track it. 

Matt - He/They
Sign in and click Mark as Best Answer if my reply answers your question!
mjdws
Shop MJD Photography
Visit MJD Web Services
8,763 Views
Message 9 of 18
Report

If you read carefully, that's what I did before, but the issue still remains

 

"I tried inserting the UA number and the code snippet in the Setting/General/Tracking/Custom Tracking - Payment Page but it doesn't work... In this section I don't have the same option to insert 2 codes in the <head> and <body> so I just inserted the two codes in the same box splitting like so..."

 

There's no way to put <head> <body> in this sectionThere's no way to put <head> <body> in this section

8,711 Views
Message 10 of 18
Report
Square Champion

Don’t split them, the code needs to be as it was to be read

Matt - He/They
Sign in and click Mark as Best Answer if my reply answers your question!
mjdws
Shop MJD Photography
Visit MJD Web Services
8,662 Views
Message 11 of 18
Report

Hi there, I am wondering if you ever found a solution to this? I am encountering a similar problem with getting this to work properly. 

7,579 Views
Message 12 of 18
Report
Square Community Moderator

Hi @encirclecafe,

 

Sorry to hear you are running into issues. Happy to help!

 

Can you provide more insight into what is going on? 

 

Thank you!

MayaP
Square Community Moderator
Sign in and click Mark as Best Answer if my reply answers your question
7,533 Views
Message 13 of 18
Report

I follow the instructions exactly as they're explained, yet Google never shows that they're connected. Same with installing Google Tag Manager. I don't understand what it is that I'm doing or not doing in order for this to install properly. It is frustrating. 

However today when I've clicked verify on Google Search Console it says this:

Screen Shot 2022-05-27 at 11.19.32 AM.png

7,530 Views
Message 14 of 18
Report
Square Community Moderator

Thanks for replying back @ encirclecafe.

 

Sounds like you have had to spend a lot of energy on this, and understandably frustrating. 

 

Since this is a little more of a complex issue please give me some time to investigate. 

 

I will follow up as soon as I have insight. I appreciate the patience. 

 

 

MayaP
Square Community Moderator
Sign in and click Mark as Best Answer if my reply answers your question
7,451 Views
Message 15 of 18
Report
Square Community Moderator

Just checking in @encirclecafe . I just want to confirm have you checked out @MJD post above giving more insight into how to connect this. 

 

If so, have you also tried contacting the Google Community, see if they have more insight? 

 

 

MayaP
Square Community Moderator
Sign in and click Mark as Best Answer if my reply answers your question
7,401 Views
Message 16 of 18
Report

Did this ever get solved? GTM doesn't seem to fire on the checkout page which is the most important page!!!

6,839 Views
Message 17 of 18
Report

@LOKI did you ever get an answer on this and/or figure it out?

4,978 Views
Message 18 of 18
Report