only hit ga from gobyexample.com

This commit is contained in:
Mark McGranaghan 2012-10-11 07:46:58 -07:00
parent dbe040a03e
commit dfee14d4da
3 changed files with 30 additions and 24 deletions

View File

@ -6,14 +6,16 @@
<link rel=stylesheet href="site.css"> <link rel=stylesheet href="site.css">
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; if (window.location.host == "gobyexample.com") {
_gaq.push(['_setAccount', 'UA-34996217-1']); var _gaq = _gaq || [];
_gaq.push(['_trackPageview']); _gaq.push(['_setAccount', 'UA-34996217-1']);
(function() { _gaq.push(['_trackPageview']);
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; (function() {
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
})(); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
}
</script> </script>
<body> <body>
<div id="intro"> <div id="intro">

View File

@ -6,14 +6,16 @@
<link rel=stylesheet href="site.css"> <link rel=stylesheet href="site.css">
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; if (window.location.host == "gobyexample.com") {
_gaq.push(['_setAccount', 'UA-34996217-1']); var _gaq = _gaq || [];
_gaq.push(['_trackPageview']); _gaq.push(['_setAccount', 'UA-34996217-1']);
(function() { _gaq.push(['_trackPageview']);
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; (function() {
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
})(); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
}
</script> </script>
<body> <body>
<div class="example" id="{{.Id}}"> <div class="example" id="{{.Id}}">

View File

@ -6,14 +6,16 @@
<link rel=stylesheet href="site.css"> <link rel=stylesheet href="site.css">
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; if (window.location.host == "gobyexample.com") {
_gaq.push(['_setAccount', 'UA-34996217-1']); var _gaq = _gaq || [];
_gaq.push(['_trackPageview']); _gaq.push(['_setAccount', 'UA-34996217-1']);
(function() { _gaq.push(['_trackPageview']);
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; (function() {
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
})(); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
}
</script> </script>
<body> <body>
<div id="intro"> <div id="intro">