Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Add Google Analytics to website

make money online
antony Offline referral

Posts: 478
Joined: Jul 2013
Reputation: 5

Senior Member
I have just created my first Google Analytics account and I am kind of wondering where to add Analytics tracking code, I mean should I add it to the websites header,body or websites footer?
victor Offline referral

Posts: 636
Joined: Jun 2013
Reputation: 34

Senior Member
Your Analytics tracking code looks similar to this one:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX-Y']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);


Copy and paste your tracking code into every web page you want to track, just before the closing </head> tag.
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

Posting Freak
When you are signing up your site to your GA account it tells you where to place the code when it gives you the code you should be using.
daikaads Offline referral

Posts: 291
Joined: Feb 2017
Reputation: 0

Senior Member
You can add the Google Analytics Code anywhere into the web page but the best place is either at the header or footer section. No need to add the code into every page just add it on the home page.

Google this topic

User(s) browsing this thread: 1 Guest(s)