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

Analytics tracking fails with gtag.js implementation. #116

Open
lightson opened this issue Nov 1, 2019 · 2 comments
Open

Analytics tracking fails with gtag.js implementation. #116

lightson opened this issue Nov 1, 2019 · 2 comments

Comments

@lightson
Copy link

lightson commented Nov 1, 2019

Using the latest google analytics gtag.js code leads to event tracking failing. One would assume updating the gooleAnalyticsFunctionName to gtag (as below) would work, but no events are caught.

allowGoogleAnalyticsEventLog : true,
gooleAnalyticsFunctionName : 'gtag',
textGoogleAnalyticsEventCategory : 'Nutrition Label',
textGoogleAnalyticsEventActionUpArrow : 'Quantity Up Arrow Clicked',
textGoogleAnalyticsEventActionDownArrow : 'Quantity Down Arrow Clicked',
textGoogleAnalyticsEventActionTextbox : 'Quantity Textbox Changed',

example tracking code below...

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-XX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-17527682-18');
</script>
@majin22
Copy link
Member

majin22 commented Nov 5, 2019

@lightson just letting you know that I am not sure if I can work on this in the near future given the other tasks that I need to work on first.

@lightson
Copy link
Author

lightson commented Nov 6, 2019

No worries it's not a particularly big issue, just wanted to let you know.

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