Promises and JS Timing
Hi All
I have an issue in my implementation where the pageview is being called before my datalayer is populated, throwing up an error. I have implemented a custom code to fire rather than using the standard implementation within DTM.
What are my options to delay the timing of the pageload call? Can DTM handle Javascript Promises? If not, what other options can I use? I want the pageview to be fired after the datalayer has been populated.