How to add Google Analytics tracking

Digioh App Marketplace

If you want to track Digioh box interactions directly to Google Analytics, from your profile menu top right, go to Custom JS (Apps) and install App #26: Google Analytics Event Tracking, then hit Publish to activate the app.

Now, assuming you have Google Analytics installed on your site pages, Digioh will track box interactions to Google Analytics as events.

If you have more than one Google Analytics tracker on your page, Digioh will pick one effectively at random. To disambiguate, you should configure metadata at either the box level or account level to set the UA tracking ID:

The metadata key is ga_ua_tracker, with the “UA-12345-1” format property ID you can find in Google Analytics admin.

If you want to control the GA tracker used at the box level, you can also ga_ua_tracker as metadata at the box level (under Widget accordion in Box Editor). This will override any account-level configuration.
And if you want to disable the GA tracker for any specific box, Add this metadata ga_exclude : true

For details on the event format and how to use it in GA reporting, see our Google Analytics Report Template.

Overriding Event Categories

By default, Digioh will log to GA with Event Category = Digioh. If you want to change this, you can set Account Metadata ga_category = YourCustomCategory to change it for all Boxes. You can also set ga_category metadata at the Box-level to override for specific boxes.

Dimensions (Advanced)

First, you’ll need to create a Dimension in Google Analytics to receive the data. Typically you would set the dimension scope to be user (permanent attribution) or session (attribution just for this session).

This app allows the setting of GA dimension values carried by display, submit, and redirect events. A typical use case might for conversion attribution, where you can report on purchases, say, with a secondary dimension.
For redirects, set metadata on the button itself. For submissions, set metadata on the page with the form.

The metadata command format is:

ga:dimension1 = value

Replace the 1 in dimension1 with the specific dimension index to be used. Value can be any static value, or a merge tag like [LIGHTBOX_NAME]. To enable merge tags for metadata, install the Digioh Universal Merge Tags app.

If you need more precise control of the events sent to Google Analytics than this app provides, we recommend using our Advanced Google Tag Manager App, and connecting Custom Events to GA tags.

If you have any questions about setting up GA events, send us an email and we’ll be glad to help!