Skip to content

BUATrackEventsGTM ignores events without additional data fix#2

Open
zygimantaskazlauskas wants to merge 1 commit into
welisonmenezes:masterfrom
zygimantaskazlauskas:master
Open

BUATrackEventsGTM ignores events without additional data fix#2
zygimantaskazlauskas wants to merge 1 commit into
welisonmenezes:masterfrom
zygimantaskazlauskas:master

Conversation

@zygimantaskazlauskas

Copy link
Copy Markdown

The JS function which pushes data to GTM dataLayer, has this condition if you don't pass any data it simply ignores the function call.

if (eventName !== null && objectValue !== null) {

I am suggesting to make objectValue prameter optional, like in BUATrackEventsFacebookPixel.

According GTAG documentation, only eventName can be pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant