• Resolved retroriff

    (@retroriff)


    Hello,

    I need to send a VirtualPageview event and I would like to know if is it a problem that I add a secondary dataLayer in my source code, or there should be only one?

    Thank you.

    • This topic was modified 9 years, 4 months ago by retroriff.
Viewing 1 replies (of 1 total)
  • Thread Starter retroriff

    (@retroriff)

    Rule of thumb: do not redeclare the dataLayer variable so avoid such codes in your own lines:

    dataLayer = []

    or

    dataLayer = new Array();

    Simply using dataLayer.push() commands in your own sections should be safe.

Viewing 1 replies (of 1 total)

The topic ‘Secondary DataLayer’ is closed to new replies.