luangjokaj / wordpressify

🎈 Automate your WordPress development workflow.
http://www.wordpressify.co
MIT License
1.6k stars 142 forks source link

Google Analytics code in source files #36

Closed bresson closed 5 years ago

bresson commented 5 years ago

I'm curious why the starter files include the following Analytics script:

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

    gtag('config', 'UA-110577987-1');
    </script>

As far as I know, that code is active on every download.

luangjokaj commented 5 years ago

This is the original theme of https://wordpressify.co/ thus it has the Analytics code. Maybe would be better tracking it with a plugin directly in production.