umijs / umi-plugin-ga

Umi plugin to support google analytics
11 stars 4 forks source link

need update code #1

Closed yyjazsf closed 5 years ago

yyjazsf commented 5 years ago

for example:

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

  gtag('config', 'UA-63391508-1');
</script>
chenshuai2144 commented 5 years ago

welcome pr!

yyjazsf commented 5 years ago

2

chenshuai2144 commented 5 years ago

thanks

cundejo commented 4 years ago

The latest version in npm (1.1.5) doesn't include this change. Can you please generate the new version? Thanks