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

Thread: 

Add Google Analytics to website

Ads
banner
banner
banner
antony Offline referral

Posts: 478
Joined: Jul 2013
Reputation: 5

#1
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: 638
Joined: Jun 2013
Reputation: 33

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

Code:
<script type="text/javascript">

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

  (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);
  })();

</script>


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

#3
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.
www.AdminEmpire.com
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.





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