- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Google Tag Manager
Whilst there is no direct integration of a configurator in the Google Tag Manager (GTM), we provide a ready-to-use interface to forward certain configurator events into the “data layer”.
The events in the “data layer” can be interpreted by the GTM in the process.
Google Tag Manager (GTM) setup/configuration
You are responsible for setting up GTM (embedding the script on the page) and configuring your GTM dashboard (e.g. widgets).
There are 2 ways of triggering such a configurator event:
via fireAnalyticsEvent slot
via Cbn.utils.IFrameHelper.fireAnalyticsEvent Custom Code function
Both variant push the event into the data layer in a standardized format:
// 1: event key only
{
"event": "myEventKey"
}
// 2: event data as string
{
"event": "myEventKey",
"eventData": "Some event data as string"
}
// 3: event data as object
{
"event": "myEventKey",
"eventData": {
price: 10,
amount: 3
}
}
Was this article helpful?