Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Tracking Outbound Links and Downloads using Google Analytics


Reply


532 Views

Avatar
HansR

Community Member, 140 Posts

31 August 2011 at 11:37pm

For those trying to figure out how to track outbound links and/or downloads using Google Analytics, [url=http://hdrlab.org.nz/projects/silverstripe-php-projects/tracking-outbound-links-and-downloads-with-silverstripe-and-google-analytics/]here's an easy way to do both[/url]. Basically it adds Google Analytics "OnClick" events to all links starting with "http://" or "https://" for external links, and "assets/" for downloads.

Hans