modal window preventing data element from being read | Community
Skip to main content
soldierchlorine
April 15, 2020
Solved

modal window preventing data element from being read

  • April 15, 2020
  • 1 reply
  • 3209 views

Hi,

 

We have a website, that has a modal pop up display as soon as you enter the site (don't ask why), this pop up allows you to go to different branded pages of the same site.  When this popup loads Analytics seems to send a beacon, however, upon closer inspection, the data layer element for the report suite ID is blank but the hardcoded report suite ID is read OK.   When a user clicks on the pop up to go to other branded pages the report suite ID is read correctly, the same is true if the pop up is closed and a link on the page is clicked.  How can I ensure the data element is read before the popup is loaded?

 

Many thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Andrey_Osadchuk

You need to set the Data Layer (the Launch Data Element is mapped to) before the Launch embed code.

1 reply

Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
April 15, 2020

You need to set the Data Layer (the Launch Data Element is mapped to) before the Launch embed code.