x

Google analytics "code"

Weebly says "Paste the tracking code from Google Analytics into the Footer Code section."

Does that mean the entire tracking code <script> ....</script>,

...or just the Tracking ID (as some other website builders use)?

Thank you

2,293 Views
Message 1 of 10
Report Inappropriate Content
1 Best Answer
Square

Best Answer

It will work in either field, @rentedmule. Both are included on all pages of your site and it just affects where on the page the code is added. In the case of analytics code from Google it works in both.

View Best Answer >

2,265 Views
Message 2 of 10
Report Inappropriate Content
9 REPLIES 9

It appears that the entire bit of code <script> ... blah, blah gtag ... </script> should appear in the Footer Code section of the SEO page.

From what I can tell, you do not have to include this code on every single page for GA to analyze specific page visits.

2,276 Views
Message 2 of 10
Report Inappropriate Content
Square

Hi @rentedmule As long as you put the code under Settings>SEO>Header/Footer, it will cover the entire site. No need to place it on the individual pages. 

2,275 Views
Message 2 of 10
Report Inappropriate Content

Header and/or Footer?    Either location?

Thx

2,274 Views
Message 2 of 10
Report Inappropriate Content

It states clearly which code you put in which box:

@rentedmuleimage

2,270 Views
Message 2 of 10
Report Inappropriate Content

I'm not the one who replied with "Header/Footer".    That's why I asked.

Save the attitude.

2,266 Views
Message 2 of 10
Report Inappropriate Content
Square

Best Answer

It will work in either field, @rentedmule. Both are included on all pages of your site and it just affects where on the page the code is added. In the case of analytics code from Google it works in both.

2,266 Views
Message 2 of 10
Report Inappropriate Content

Thank you, Adam

GA says to include the code in the Header.    Then I was advised either will work.     I have it in Footer now and it seems to function properly.

Thx again.

~mule~

2,264 Views
Message 2 of 10
Report Inappropriate Content

FYI, you really don't need any code.  I researched this extensively and wrote up a quick blog post describing.  You really only need to add the Google Analytics ID in two places (unfortuneately in two formats).

Complete description here:
Configure Weebly / Square Online Store for Google Analytics ECommerce 

1,939 Views
Message 9 of 10
Report Inappropriate Content
Square

Thanks for sharing, @JenniBeachHouse! Smiley Happy 

1,934 Views
Message 9 of 10
Report Inappropriate Content
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.