futurice / festapp-android

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

Google analytics event tags #91

Open tiinaromu opened 10 years ago

tiinaromu commented 10 years ago

Event tags could be added to corresponding user interaction events. To do this, use dataLayer.push-method. Notice that "event"-variable should come first because it tells Google Tag Manager to start listening to other fields. Documentation can be found: https://developers.google.com/tag-manager/android/v3/ua

This is pseudo code but this is roughly how it should go.

Share on FB/Twitter/??: dataLayer.push: "event", "shareArtist", "artistName", "[Artist name]", "media", "[Social media name]"

Play artist on YouTube/Spotify: dataLayer.push: "event", "playArtist", "artistName", "[Artist name]", "medium", "[Medium name]"

Add favorite: dataLayer.push: "event", "addFavorite", "artistName", "[Artist name]"

dezgeg commented 10 years ago

Robot 3 has worked on analytics and can take this.