Skip to main content

Google Tag Manager datalayer

tip

This guide explains how to hook into the GTM/datalayer events that Hitprobe triggers. If you're looking for instructions on how to set up the Hitprobe tag using Google Tag Manager, you'll need the setup guide instead.

Hitprobe's agent fires Google Tag Manager datalayer events, for example when a session is blocked. You can make use of these events within Google Tag Manager as triggers for other tags.

For instance, you may create a tag that adds the visit to any negative audience list when the session is blocked (even for ad networks that aren't natively supported by Hitprobe).

Available events

hitprobe_blocked

The hitprobe_blocked event fires once per page load, only when the visit is blocked. It will fire for both the initial block event, and on each subsequent page load by a blocked visitor.

note

At present, this is the only event available through GTM.

Creating the trigger

  1. Sign in to Google Tag Manager.
  2. Open the container for the site you need to add the tag to.
  3. Select Triggers on the left, then New.
  4. Click into Trigger Configuration. The Choose trigger type drawer should open from the right.
  5. Scroll down to select Other > Custom Event.
  6. In the Event name field, type the event name you want to trigger on, e.g. hitprobe_blocked.
  7. Click Save. You'll be asked to name the trigger at this point too.
  8. Finally, click Submit the publish your changes.

Now you can create a tag that you want to run each time the Hitprobe event happens, and select this trigger as the tag's trigger.