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

Adding Google Analytics to Chrome Tab #3

Open
shtefcs opened this issue Apr 16, 2018 · 2 comments
Open

Adding Google Analytics to Chrome Tab #3

shtefcs opened this issue Apr 16, 2018 · 2 comments
Labels
enhancement enhance or fix

Comments

@shtefcs
Copy link
Contributor

shtefcs commented Apr 16, 2018

We should add Google analytics to chrome new tab, so we can have some stats about how much people are using it.

Google Analytics code

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

  gtag('config', 'UA-1200538-40');
</script>

or

Tracking ID
UA-1200538-40

@shtefcs shtefcs added the enhancement enhance or fix label Apr 16, 2018
@unigazer
Copy link
Contributor

#14

@shtefcs
Copy link
Contributor Author

shtefcs commented May 19, 2018

@VladimirDev93 I just let it few days to collect some data and test it. The Google analytics code is new tab, as u can see by viewing the source of moonly new tab, but it's not tracking the new tab.

That is just few hits which are tracked on Moonly Popup .

Anyway, I researched bit and found this some links which might be helpful to whoever wanna do i.

https://davidsimpson.me/2014/05/27/add-googles-universal-analytics-tracking-chrome-extension/

https://developer.chrome.com/extensions/tut_analytics

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

No branches or pull requests

2 participants