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

Tracking Downloads for core platforms #341

@kingo55

Description

@kingo55

I think it's really important to track downloads in GA so you know:

  1. Which sites are driving new members
  2. Which platforms are downloading the links
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions