Google Analytics

Pre-set Google Analytics events from front-end interactions.

To enable this feature you need to have correctly setup and enabled Google Analytics in your Wordpress website.

How it works

Label Grid Tools send automatically event data to Google Analytics once any of the following actions is performed:

  • Releases/Artists:

    • Click on Social Media / Store links

  • Pre/Save Spotify:

    • Start Wizard

    • End Wizard and Pre/Save Tracks

  • Gate Downloads:

    • Start Wizard

    • End Wizard and correctly follow the Gate destination

Under the hood

Label Grid Tools executes the following ga() scripts for each event.

If multiple ga() script are present, the plugin will auto-select the first one.

Releases Links:

ga(
    'send', 
    {
        hitType: 'event',
        eventCategory: 'link-service',
        eventAction: SERVICEURL,
        eventLabel: SERVICENAME
    }
)

Spotify Pre/Save:

ga(
    'send', 
    { 
        hitType: 'event', 
        eventCategory: 'presave', 
        eventAction: 'saved', 
        eventLabel: 'Presave - Saved', 
        eventValue: GATEID 
    }
)

Spotify Pre/Save - Playlist saved:

ga(
    'send', 
    { 
        hitType: 'event', 
        eventCategory: 'presave', 
        eventAction: 'playlist_save', 
        eventLabel: 'Presave - Saved', 
        eventValue: GATEID 
    }
)

Gate Download:

ga(
    'send', 
    { 
        hitType: 'event', 
        eventCategory: 'gate', 
        eventAction: 'download', 
        eventLabel: 'Gate - Download', 
        eventValue: GATEID 
    }
)

Last updated