Closed hafeyang closed 2 years ago
when i browse demo of https://partytown.builder.io/example/ i found window.dataLayer object is missed i guess gtag script runs in service worker. but ,what i should do when tracking custom event such as dataLayer.push({'event': 'event_name'});?
window.dataLayer
dataLayer.push({'event': 'event_name'});
i got it
partytown = {forward:["dataLayer.push"]};
works
when i browse demo of https://partytown.builder.io/example/ i found
window.dataLayer
object is missed i guess gtag script runs in service worker. but ,what i should do when tracking custom event such asdataLayer.push({'event': 'event_name'});
?