function that push a dataLayer

PHOTO EMBED

Mon Jan 17 2022 12:35:45 GMT+0000 (Coordinated Universal Time)

Saved by @kevinazoulay #javascript

dataLayer.push({'event': 'lastscr'});console.log(dataLayer)
content_copyCOPY

Event and lastscr are customisable you can set whatever you want there. For good practice keep 'event'