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?
Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.
Add Google Analytics to website
Your Analytics tracking code looks similar to this one:
Copy and paste your tracking code into every web page you want to track, just before the closing </head> tag.
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.
Similar Topics:
- Spam Score of a Website
- How Can I Improve My Conversion Rate in Website?
- How to create a website
- What methods would you apply for decreasing the loading time of a website?
- HTML Website
- How do I promote my website on Google Search?
- Which is best Activities in SEO for rank a website?
- How Can I Improve My Website Traffic?
- How can improve the speed of your website?
- Can you name the three important elements of event tracking in analytics?
User(s) browsing this thread: 1 Guest(s)