Standard Google Analytics code should always be placed in the
tag of the page. Let’s suppose you placed your analytics code at the bottom of the page, this may lead to incorrect or half tracking.Google’s official recommendation for adding the Google Analytic tracking code is place the tracking code in the HEADER SECTION (
) of the website. The code should be added near the top of the tag and before any other script or CSS tags, and the string ‘UA-XXXXX-Y’ should be replaced with the property ID (also called the “tracking ID”) of the Google Analytics property you wish to track.Where do I add the Google Analytics tracking code?
It’s recommended to add the Google Analytics tracking code in the header section (
).What Google Analytics code should be on the page?
That pretty much should be the only code on the page. That and related Java. Script and Data. Layer objects are okay, but the important part for this is that there is no other Google Analytics code on the page, either for firing Pageviews or Events.
To find your Google Analytics tracking code, go to your account and access your tracking info as we described in the previous method. You can then copy the script from the box under Google Site Tag: To add it to your Word. Press site, go to Appearance > Theme Editor.
How do I install Google Analytics on my CMS?
Each Google Analytics property created in your account will be assigned a unique Tracking ID. Make sure to use the appropriate Tracking ID or code for each domain. With your tracking code in hand, you’re ready to install! Log into your CMS and access your site’s HTML code.
How do I know if a website has Google Analytics installed?
In most cases, you can quickly identify if a site has Google Analytics installed by looking at the webpage’s site code. You can use Google Chrome to visit a site and then right-click to see its PAGE SOURCE (site code). If the site has Google Analytics installed, you’ll find the Google Analytics tracking info within the code, as seen below.