Management of Custom Events in Google Tag Manager

Tech Team
Tech Team
  • Updated

The triggerGTMEvents parameter in axeptioSettings allows you to manage the events sent to the dataLayer by Axeptio's SDK.

This parameter can have 3 values:

  • true (Default)
    All events are sent, including axeptio_update and events per service, such as axeptio_activate_google_analytics.
  • false
    No events are sent to the dataLayer, making Axeptio invisible in Tag Manager (Not recommended).
  • update_only
    Only the axeptio_update event with axeptio_authorized_vendors is sent. This is useful if you don't use per-service events and have many services in Axeptio adding numerous events.

Here is an example:

<script>
window.axeptioSettings = {
  clientId: "xxxx",
 cookiesVersion: "get-widget-eng",
triggerGTMEvents: "update_only"
};
 
(function(d, s) {
  var t = d.getElementsByTagName(s)[0], e = d.createElement(s);
  e.async = true; e.src = "//static.axept.io/sdk.js";
  t.parentNode.insertBefore(e, t);
})(document, "script");
</script>

Was this article helpful?

2 out of 2 found this helpful