Where place the link Google Analytics

User 131545 Photo


Registered User
684 posts

Dear support,

Where can I put the link or code Google Analytics?

Kind regards
Stephane
Toekomstgerichte door ICT gebeten IT'er
Stephane Fonteyne
Ba. Elektronica - ICT
Application Software PowerBasic Developer
e-mail : stephane.fonteyne@telenet.be
gmail : stephane760126@gmail.com
linkin : in : <http://www.linkedin.com/pub/stephane-fonteyn/53/402/204>
twitter : @Stefke36
User 2699991 Photo


Registered User
3,707 posts
Online Now

In the header of your pages


The Help You Need: When You Need It The Most
Website Design & Development
Website Renovations
Wayans' Theme Park
Watch Listen & Learn Video Tutorials
User 2088758 Photo


Senior Advisor
2,971 posts

I believe you can also make it global in all your headers by selecting the checkbox under it. Very useful for things like this.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 276801 Photo


Registered User
16 posts

That is fine, but in the instructions it tells you to put additional code immediately after the leading <body> tag

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MZXGRGD"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
User 2699991 Photo


Registered User
3,707 posts
Online Now

Steve wrote:
I believe you can also make it global in all your headers by selecting the checkbox under it. Very useful for things like this.


Hi Steve
No, you are not supposed to put that Google Analytics code on every page of your website nly the once and between the <body> </body/ tag.


Paul wrote:
That is fine, but in the instructions, it tells you to put additional code immediately after the leading <body> tag


<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MZXGRGD"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->


that has to be placed manually after exporting, its different code to what Stephk was asking

The Help You Need: When You Need It The Most
Website Design & Development
Website Renovations
Wayans' Theme Park
Watch Listen & Learn Video Tutorials
User 2699991 Photo


Registered User
3,707 posts
Online Now

PAUL
I have had a thought

If you insert an HTML element into your pages, then place the code you have into that HTML element,
then go to the inspector tab, & move the HTML element so it is right at the top (in other words the first thing)
then in "Styles" add a class name to the HTML element of "hide" this will do what it says and will hide the element from the canvas (but that doesn't matter BCS the iframe will still be read by the browser.

that means the code will be the first section below the <body> tag without having to put it there when exported

short silent movie showing how to
https://youtu.be/DIFBm96xDVw

this one you can make global so you can place it on all pages that you desire

The Help You Need: When You Need It The Most
Website Design & Development
Website Renovations
Wayans' Theme Park
Watch Listen & Learn Video Tutorials

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.