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

Proper way to push Behavioural data to Google Analytics (Page Path, Page Title) #96

Open
LockeAG opened this issue Nov 4, 2021 · 1 comment

Comments

@LockeAG
Copy link

LockeAG commented Nov 4, 2021

We are having a very simple issue related with getting the paths and titles for google analytics.

we are trying so far :

const tagManagerArgs = {
  gtmId: 'GTM-NQW7XVF',
  dataLayer: {
    event: 'Pageview',
    pagePath: location.pathname,
    pageTitle: document.title,
  }
}

and is not pushing anything to analytics :(

@trungthecelestial
Copy link

Did you use TagManager.dataLayer(tagManagerArgs) to push it?

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

2 participants