Google Analytics & Link Tracking
A step-by-step tutorial on how to setup a web site with Google Analytics and link tracking!
1. Setup a Google Web Site Analytics profile:
a. Click the "Access Analytic" button on the right side of the page (log in).
b. At the bottom of the page you will see an "Add Website Profile" link. Click that link.
c. Leave the profile type set to "Add a profile for a new domain".
d. Next, add the domain into the URL text box, and choose your country and time zone.
e. Click the continue button. You should now see the "New Tracking Code (ga.js)" which looks like this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8941172-2");
pageTracker._trackPageview();
} catch(err) {}</script>
f. Copy this link tracking code and click the "Finish" button. You are now done with Google Analitics and may proceed to step 2.
2. Insert the link tracking code into HTML of Website.
a. Login to your website's WordPress admin panel.
b. Under the "Appearance" tab, click the "Editor" link.
c. On the right-hand side, there is a list of links to different .php files. Find "Footer (footer.php)" and click on that link.
d. Intert the tracking code within the HTML, just ABOVE the </body> tag.
e. Click the "Update File" button at the bottom of the page (You need to make this file writable before you can save your changes. See the Codex for more information.).
3. Create links to be tracked.
a. In order for link tracking to work successfully, links require a piece of code to be inserted. The code is:
onClick="javascript:pageTracker._trackPageview('/go/page-slug-link1.com');
b. To keep track of each link and what position it is on which page, we will employ a structured identification system. In the code, /go/page-slug-link1.com, "page-slug" will be the page in which the link is being placed. For example, if you were to place a link on this page:
http://www.roulletteonline.com/flash-roulette/, "/flash-roulette" would take the place of "/page-slug". "link1.com" is to be replaced by the name of the casino or Website that we are linking to. For example, if we were linking to Bodog Casino we could simply put "bodog1.com". The number "1" in the link means that this is the first link on the page that goes to Bodog. If it were the 2nd link placed on the page to Bodog you would use a number 2, and so on...
c. A properly coded link should look as follows:
<a href="http://www.roulletteonline.com/go/bodog/" target="blank" onClick="javascript: page
Google Analytics Video
This video will walk you through the Google Analytics program and show you how to use it and what kind of benefits it will provide you with. Learn how to track your customers and the traffic your website gets.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
Comments
Got something to say?
You must be logged in to post a comment.




