Only record Google Analytics in prod
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
//-
|
//-
|
||||||
|
|
||||||
script.
|
script.
|
||||||
|
if (window.location.hostname === 'crafting-guide.com') {
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
@@ -13,3 +14,4 @@ script.
|
|||||||
|
|
||||||
ga('create', 'UA-5871323-4', 'crafting-guide.com');
|
ga('create', 'UA-5871323-4', 'crafting-guide.com');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user