Skip to main content

sendBAEvent()

function sendBAEvent(config: {
data: BAEvent;
self?: boolean;
}): void;

Sends a business analytics event to Google Tag Manager data layer. Can send events to the host app or handle locally.

Parameters

config

Event configuration

data

BAEvent

The analytics event data

self?

boolean = true

If true, sends to self; if false, sends to host app (default: true)

Returns

void

Deprecated

Use Analytics.sendBAEvent scripting object method instead

Example

sendBAEvent({
data: {
eventName: 'button_click',
eventCategory: 'user_interaction',
eventData: { buttonId: 'submit' }
},
self: true
});