Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
added ga exclude
  • Loading branch information
aaronrs2002 authored Nov 17, 2022
1 parent 715d25b commit bfca4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JJWFFXF8G0"></script>
<script>
const urlStr = window.location.href;
if (urlStr.indexOf("file:///Users/") !== -1) {
if (urlStr.indexOf("file:///Users/") !== -1 || urlStr.indexOf("exclude") !== -1) {
console.log("Not running GA");
} else {
window.dataLayer = window.dataLayer || [];
Expand Down Expand Up @@ -103,4 +103,4 @@ <h3 id="requestedList">Guess the word</h3>
<script id="wordsVar" src="data/dictionary2.js"></script>
<script src="js/functionality.js"></script>

</html>
</html>

0 comments on commit bfca4fa

Please sign in to comment.