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….
Buy:Soma.Zithromax.Maxaman.Viagra.Cialis.Viagra Soft Tabs.Propecia.Levitra.Viagra Professional.Cialis Soft Tabs.Viagra Super Force.Viagra Super Active+.Cialis Super Active+.Super Active ED Pack.Cialis Professional.Tramadol.VPXL….
Buy:100% Pure Okinawan Coral Calcium.Prednisolone.Accutane.Human Growth Hormone.Zyban.Zovirax.Valtrex.Actos.Nexium.Lumigan.Mega Hoodia.Synthroid.Arimidex.Prevacid.Petcam (Metacam) Oral Suspension.Retin-A….
…
BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…
buy@Amoxicillin.com” rel=”nofollow”>.…
Buy:Viagra Super Active+.Viagra Soft Tabs.Viagra Professional.Maxaman.Tramadol.Cialis Super Active+.Super Active ED Pack.Cialis.VPXL.Soma.Cialis Professional.Levitra.Viagra Super Force.Cialis Soft Tabs.Viagra.Propecia.Zithromax….
Accupril…
Buygeneric drugs…
Abilify…
Buygeneric pills…
……
Buygeneric meds…
fruite@of.the.earth.aloe.vera.juice.sale” rel=”nofollow”>……
Buynow…
buy@cheap.viagra.in.uk” rel=”nofollow”>.…
Buywithout prescription…
prozac@dangers.now” rel=”nofollow”>..…
Buygeneric drugs…
Zyvox@official.site” rel=”nofollow”>..…
Buygeneric pills…
buy zithromax online…
Buyno prescription…
buy zinc anode everett wa…
Buygeneric meds…
Vitamin B…
Buynow it…
where to buy lamisil…
Buygeneric drugs…
pharmacokinetics of zyrtec…
Buyit now…
Omnicef…
Buynow it…
Synthroid…
Buygeneric pills…
Retin A…
Buywithout prescription…
Remeron…
Buyno prescription…
purim suddah…
Buygeneric meds…
Synthroid…
Buygeneric meds…
can i take expired zyrtec…
Buygeneric drugs…
Eye Drops…
Buyno prescription…
savella diabetes blood sugar…
Buygeneric drugs…
Pulmicort…
Buywithout prescription…
Spiriva@Spiriva.Spiriva” rel=”nofollow”>..…
Buyno prescription…
retin@a.cheap.no.prescription” rel=”nofollow”>..…
Buygeneric drugs…
high@dose.dexamethasone.induction” rel=”nofollow”>..…
Buydrugs without prescription…
premarin@cream.comments” rel=”nofollow”>……
Buyit now…
……
Buyno prescription…
..…
Buyit now…