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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Tracking Outbound Links and Downloads using Google Analytics


Go to End


1182 Views

Avatar
HansR

Community Member, 141 Posts

31 August 2011 at 11:37pm

For those trying to figure out how to track outbound links and/or downloads using Google Analytics, here's an easy way to do both. Basically it adds Google Analytics "OnClick" events to all links starting with "http://" or "https://" for external links, and "assets/" for downloads.

Hans