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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1329 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