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?

19,411件の閲覧回数
メッセージ1/18
不適切なコンテンツを報告
2 解決策
解決策

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

解決策を見る >

19,200件の閲覧回数
メッセージ6/18
不適切なコンテンツを報告
解決策

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

解決策を見る >

18,977件の閲覧回数
メッセージ9/18
不適切なコンテンツを報告
17 返信
Alumni

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. 

 

 

19,357件の閲覧回数
メッセージ2/18
不適切なコンテンツを報告

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. 😞

19,308件の閲覧回数
メッセージ3/18
不適切なコンテンツを報告

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.

19,246件の閲覧回数
メッセージ4/18
不適切なコンテンツを報告

@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
19,198件の閲覧回数
メッセージ5/18
不適切なコンテンツを報告
解決策

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
19,201件の閲覧回数
メッセージ6/18
不適切なコンテンツを報告

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.

19,076件の閲覧回数
メッセージ7/18
不適切なコンテンツを報告

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
19,071件の閲覧回数
メッセージ8/18
不適切なコンテンツを報告
解決策

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
18,978件の閲覧回数
メッセージ9/18
不適切なコンテンツを報告

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

18,926件の閲覧回数
メッセージ10/18
不適切なコンテンツを報告

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
18,877件の閲覧回数
メッセージ11/18
不適切なコンテンツを報告

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. 

17,794件の閲覧回数
メッセージ12/18
不適切なコンテンツを報告
Alumni

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 ✨
17,748件の閲覧回数
メッセージ13/18
不適切なコンテンツを報告

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

17,743件の閲覧回数
メッセージ14/18
不適切なコンテンツを報告
Alumni

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 ✨
17,664件の閲覧回数
メッセージ15/18
不適切なコンテンツを報告
Alumni

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 ✨
17,614件の閲覧回数
メッセージ16/18
不適切なコンテンツを報告

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

17,052件の閲覧回数
メッセージ17/18
不適切なコンテンツを報告

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

15,191件の閲覧回数
メッセージ18/18
不適切なコンテンツを報告