This repository was archived by the owner on Aug 13, 2023. It is now read-only.

Description
I think it's really important to track downloads in GA so you know:
- Which sites are driving new members
- Which platforms are downloading the links
- Which landing pages work best at convincing users to engaged / download the game
It's easy to track in GA with some simple JS/jQuery. Of course we're using "click" events on download links as a proxy for "downloads" - this is usually good enough:
$('a[href*="OpenRA/releases/download"]').click(function(){
ga('send', 'event', 'download', $('ul.downloadplatform a.active > img').attr('title'), $(this).attr('href'));
});
This, for example, will show up under the Behaviour > Events > Top Events report in GA. I've tagged it to show the following data:
Category: download
Action: {{ Platform name }}
Label: {{ Download link }}
It's also handy to add this as a goal. I'd be happy to setup the goal in GA for you guys - even a dashboard for some useful reports you can keep an eye on week to week. If you're after a more detailed analytics setup, I'd be happy to develop more.