Synclio
Look Bigger & Handle CallsMore Efficiently
Adding Google Analytics tracking to your website or blog is one of the first and easiest steps you can take to start getting more informed about the traffic running through your website. It’s quick, simple, free—as a matter of fact, there’s simply no excuse for NOT doing it!
So roll up your sleeves and get ready for some cyber grease.
In order to start tracking your pages, Google Analytics must first sneak a few lines of code that will direct the application to do so. And, because the fine folks at Google aren’t the sneaky type, they actually let you do it yourself.
Here’s how:
A video is worth a thousand pictures. Check out this Google video if you’re having any trouble.
Last year Google released an upgraded version of the tracking code snippet that enables Asynchronous tracking. In a nutshell, this means faster load times.
While today Google maintains support for both the Traditional and the Asynchronous snippets, if you’re just getting started with Google Analytics for the first time there’s really no reason you should backtrack, so just go ahead with the latest version.
If you’ve already got Google Analytics set up, Google warns that you must first remove the traditional snippet before adding the new one, and offers some more migrating advice.
Blogs generally use a template. That’s good, because it means that you’ll only have to insert the code once and it will automatically be added to all the subsequent pages.
Assuming you’ve already copied your code and it’s waiting to get pasted, sail over to Blogger (check out this guide if you’re on Wordpress), find your template tab, and choose Edit HTML—a scary dialog box full of strange symbols will display. Don’t freak out though, you don’t have to understand any of it!
To add the latest Asynchronous snippet, find the </head> tag (a quick Ctrl-F search would do), and paste the code right above it. It’ll look something like this:
</script>
**Insert Asynchronous code snippet here**
</head>
<body>
<div class=" ">
<div class=" ">
<div class=" ">
Should you be determined (for some stubborn reason) to use the traditional snippet, scrawl all the way down to the bottom and find the </body> tag—paste the traditional snippet right below it, like so:
</div>< >
</div>< >
</body>
**Insert Traditional code snippet here**
</html>
Adding the Google Analytics code to your website is mostly the same as adding it to your blog, with the exception that you’ll have to add it manually to every page you wish to track. That is, unless you’re using a template. If you do, according to Google, you need only add it once to the file that contains your <head> section—just above the closing </head> tag, like in the first example above.
Follow these simple steps to test the success of your little operation: Asynchronous or Traditional.
That’s that—time to quit slacking and start tracking!
posted by Maty Grosman @ 5:51 PM