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

Google Tag Manager not working on smoothstate pages #377

Open
lkpatricia opened this issue Jul 28, 2019 · 0 comments
Open

Google Tag Manager not working on smoothstate pages #377

lkpatricia opened this issue Jul 28, 2019 · 0 comments

Comments

@lkpatricia
Copy link

lkpatricia commented Jul 28, 2019

I am installing google tags on a site that uses wordpress and smoothstate transition animations. When I navigate between scene elements using smoothstate (which are each unique wp pages), my GTM's do not fire. If I do a hard refresh of one of those pages, the GTM's will fire until I navigate to another scene element.

Here is an example of a listener that is not working:
$( '.back-to-home' ).on('click', function() {
if (typeof dataLayer !== 'undefined') {
dataLayer.push({
'event': 'backToHomeClicked',
});
}
});

How can I keep the listener enabled?

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

1 participant