futurice / festapp-android

festapp Android client
http://futurice.github.io/festapp-server/
MIT License
12 stars 15 forks source link

Artist analytics #92

Open dezgeg opened 10 years ago

dezgeg commented 10 years ago

Push analytics events to Google Tag Manager when an artist is favorited or played (via YouTube or Spotify).

When an artist is favorited, an event with the following data layer variables is sent:

event:          "setFavorite"
artistName:     "<name of the artist>"
isFavorite:     bool, whether the artist was favorited or de-favorited

When an artist is played, an event with the following data layer variables is sent:

event:          "playArtist"
artistName:     "<name of the artist>"
medium:         "<medium, either 'youtube' or 'spotify'>"

BIG HUGE WARNING

This is dependant on pull request https://github.com/futurice/festapp-android/pull/64 so please don't merge this before PR 64. Also note the caveats of PR 64.

dezgeg commented 10 years ago

Also assets/tagmanager/GTM-5XFNM5 should probably be updated with the new blob downloaded from the tag manager, I don't know how much that matters.

dezgeg commented 10 years ago

And this is for issue https://github.com/futurice/festapp-android/issues/91 though I didn't see any functionality for FB/Twitter shares in the current app.