Skip to content

Commit

Permalink
Disable GA
Browse files Browse the repository at this point in the history
  • Loading branch information
leaty committed Nov 22, 2021
1 parent 7b6b265 commit a6fb372
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ module.exports = function (webpackEnv) {
},
isEnvProduction
? {
enableGA: true,
enableGA: false,
minify: {
removeComments: true,
collapseWhitespace: true,
Expand Down
12 changes: 0 additions & 12 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,5 @@
To create a production bundle, use `npm run build` or `yarn build`.
-->

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

gtag('config', 'UA-166772221-1');
</script>
<% } %>

</body>
</html>
11 changes: 0 additions & 11 deletions public/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<% if (htmlWebpackPlugin.options.enableGA) { %>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-166772221-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-166772221-1');
</script>
<% } %>

</body>
</html>

0 comments on commit a6fb372

Please sign in to comment.