Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pageContext updated? #130

Open
ghost opened this issue Feb 1, 2019 · 0 comments
Open

pageContext updated? #130

ghost opened this issue Feb 1, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 1, 2019

Hi Guys,
In your latest update, you guys changed something in the pagecontext. We used to be able to do this:

var pageContextRaw = document.getElementById('data-mz-preload-pagecontext').innerHTML;
var pageContext = JSON.parse(pageContextRaw);
var now = pageContext.now;

And use the 'now' variable to do checks in our Google Analytics functions to avoid duplicate data. Did you purposefully remove the 'now' object from pagecontext? Could you put it back?

Thanks,
Tony

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants