add ga tracking code

This commit is contained in:
Mark McGranaghan 2012-10-09 15:53:40 -07:00
parent 07f874204a
commit 9009db6963
2 changed files with 20 additions and 0 deletions

View File

@ -5,6 +5,16 @@
<title>Go by Example: {{.Name}}</title> <title>Go by Example: {{.Name}}</title>
<link rel=stylesheet href="site.css"> <link rel=stylesheet href="site.css">
</head> </head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34996217-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
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>
<body> <body>
<div class="chapter" id="{{.Id}}"> <div class="chapter" id="{{.Id}}">
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">

View File

@ -5,6 +5,16 @@
<title>Go by Example</title> <title>Go by Example</title>
<link rel=stylesheet href="site.css"> <link rel=stylesheet href="site.css">
</head> </head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34996217-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
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>
<body> <body>
<div id="intro"> <div id="intro">
<h2>Go by Example</h2> <h2>Go by Example</h2>