Event Tracking With Google Analytics
Google Analytics is a very popular tool for tracking visits, pageviews, and lots of other metrics for your website. Here’s a handy little trick which allows you to track any event you want on your site, a click on a specific link for example, and have it integrated into your analytics data.
1) First, make sure you are already using Google Analytics on your site (or the page that you want to track events).
2) Second, add this snippet just below the Google Analytics code:
<script type=”text/javascript”>
function trackEvent(category,url,description) {
try {
pageTracker._trackEvent(category, description, document.location.pathname);
setTimeout(’document.location = “‘ + url + ‘”‘, 100);
} catch(err){}
}
</script>
4) Whenever you want to track something, you need to add a call to trackEvent, for example:
<a onclick=”trackEvent(’Outbound Links’,'http://google.com’,'Google’);return false;” href=”http://google.com”> Google </a>
5) Now log into Google Analytics, click on ‘Content’ -> ‘Event Tracking’ you will be able to see clicks on the above link to Google (you might not see it right away!)
Happy tracking!
Tags: Analytics, Event Tracking, Google, Metrics

igivuroke…
Download mp3 with Lorber and Sikora …
comment…
Спасибо за информацию !…
Olga …
Otkuda material ? …
http://rel” rel=”nofollow”>Даже не знаю…
Ссылки как то странно отображаются…
Hello! Please e-mail me your contacts. I have a question jack@infansport.ru” rel=”nofollow”>……
Thank you!…
PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.PillSpot.org. Vitamins@buy.online” rel=”nofollow”>.…
Categories: Weight Loss.Antidiabetic.Eye Care.Anxiety/Sleep Aid.Mental HealthAnti-allergic/Asthma.Pain Relief.Vitamins/Herbal Supplements.Antibiotics.Womens Health.Mens Health.Stop SmokingStomach.Antiviral.Antidepressants.Blood Pressure/Heart.Skin…
Buy:Actos.Petcam (Metacam) Oral Suspension.100% Pure Okinawan Coral Calcium.Mega Hoodia.Zyban.Valtrex.Zovirax.Synthroid.Nexium.Lumigan.Arimidex.Accutane.Human Growth Hormone.Prevacid.Retin-A.Prednisolone….