Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

unified google analytics js

  • Loading branch information...
commit 3dcad2d5e9bebc65197070faeead87819c7f9dfc 1 parent 0c7648c
Andrew Seigner authored December 20, 2011
13  ajax.html
@@ -6,18 +6,7 @@
6 6
     <meta name="keywords" content="Siggy's Ajax House, Ajax" />
7 7
     <title>Siggy's Ajax House</title>
8 8
 
9  
-    <script type="text/javascript">
10  
-      var _gaq = _gaq || [];
11  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
12  
-      _gaq.push(['_trackPageview']);
13  
-      (function() {
14  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
15  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
16  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
17  
-      })();
18  
-    </script>
19  
-  </head>
20  
-
  9
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script>  </head>
21 10
   <body>
22 11
 
23 12
     <script language="javascript" type="text/javascript">
457  big_eat_sf.html
... ...
@@ -1,266 +1,255 @@
1 1
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 2
 <html xmlns="http://www.w3.org/1999/xhtml">
3 3
 
4  
-	<head>
  4
+  <head>
5 5
 
6  
-	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
7  
-	<title>Big Eat SF Map</title>
  6
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  7
+  <title>Big Eat SF Map</title>
8 8
 
9  
-	<script
10  
-		type="text/javascript"
11  
-		src="./scripts/google_api_keys.js">
12  
-	</script>
  9
+  <script
  10
+    type="text/javascript"
  11
+    src="./scripts/google_api_keys.js">
  12
+  </script>
13 13
 
14 14
     <script type="text/javascript">
15 15
     //<![CDATA[
16 16
 
17  
-		/**
18  
-		* Lists the entries from the specified JSON feed
19  
-		* by inserting the cells into a new 'table'
20  
-		* element in the DOM.  Each 'tr' represents a
21  
-		* row in the spreadsheet, and each 'td' is a cell
22  
-		* within that row.
23  
-		*/
24  
-		function cellEntries(json)
25  
-		{
26  
-			var table = document.createElement('table');
27  
-			table.setAttribute('id', 'output');
28  
-			var tbody = document.createElement('tbody');
29  
-
30  
-			var tr;
31  
-
32  
-			for (var i=0; i < json.feed.entry.length; i++)
33  
-			{
34  
-				var entry = json.feed.entry[i];
35  
-
36  
-				// skip header
37  
-				if (entry.gs$cell.row != '1')
38  
-				{
39  
-					// only process location
40  
-					if (entry.gs$cell.col == '3')
41  
-					{
42  
-						var location = entry.content.$t;
43  
-
44  
-					}
45  
-				}
46  
-
47  
-
48  
-
49  
-				if (entry.gs$cell.col == '1')
50  
-				{
51  
-					if (tr != null)
52  
-					{
53  
-						tbody.appendChild(tr);
54  
-					}
55  
-
56  
-					tr = document.createElement('tr');
57  
-				}
58  
-
59  
-				var td = document.createElement('td');
60  
-				td.appendChild(document.createTextNode(entry.content.$t));
61  
-				tr.appendChild(td);
62  
-			}
63  
-
64  
-			tbody.appendChild(tr);
65  
-			table.appendChild(tbody);
66  
-			document.getElementById('data').appendChild(table);
67  
-		}
68  
-
69  
-		// the google map
70  
-		var map;
71  
-
72  
-		function onLoad()
73  
-		{
74  
-			map = new GMap2(document.getElementById("map"));
75  
-			map.setCenter(new GLatLng(37.4036, -122.2706), 4, G_HYBRID_MAP);
76  
-
77  
-			map.enableDoubleClickZoom();
78  
-			map.enableContinuousZoom();
79  
-
80  
-			map.addControl(new GLargeMapControl());
81  
-			map.addControl(new GMapTypeControl());
82  
-
83  
-			if (window.attachEvent)
84  
-			{
85  
-				// IE
86  
-				var height=document.documentElement.clientHeight*0.95;
87  
-				document.getElementById("map").style.height=height+"px";
88  
-
89  
-				var width=document.documentElement.clientWidth*0.95;
90  
-				document.getElementById("map").style.width=width+"px";
91  
-
92  
-				document.getElementById("map").style.top="70px";
93  
-				document.getElementById("map").style.bottom="100px";
94  
-
95  
-				window.attachEvent
96  
-				(
97  
-					"onresize",
98  
-					function()
99  
-					{
100  
-						// IE
101  
-						var height=document.documentElement.clientHeight*0.95;
102  
-						document.getElementById("map").style.height=height+"px";
103  
-
104  
-						var width=document.documentElement.clientWidth*0.95;
105  
-						document.getElementById("map").style.width=width+"px";
106  
-
107  
-						document.getElementById("map").style.top="70px";
108  
-						document.getElementById("map").style.bottom="100px";
109  
-					}
110  
-				);
111  
-			}
112  
-
113  
-			// Retrieve the JSON feed.
114  
-			var script = document.createElement('script');
115  
-
116  
-			script.setAttribute('src', 'http://spreadsheets.google.com/feeds/cells/plrKWzh8z4Qc7H_5ZM1o8CA/default/public/values?alt=json-in-script&callback=cellEntries');
117  
-
118  
-			script.setAttribute('id', 'jsonScript');
119  
-			script.setAttribute('type', 'text/javascript');
120  
-			document.documentElement.firstChild.appendChild(script);
121  
-		}
122  
-
123  
-		function addEatToMap(point, artist, origin)
124  
-		{
125  
-			var marker = new GMarker(point);
126  
-
127  
-			// add a listener to show data when clicked
128  
-			GEvent.addListener
129  
-			(
130  
-				marker,
131  
-				"click",
132  
-				function()
133  
-				{
134  
-					marker.openInfoWindowHtml(artist + '<br>' + origin);
135  
-				}
136  
-			);
137  
-
138  
-			// now add to the map
139  
-			map.addOverlay(marker);
140  
-
141  
-			marker.openInfoWindowHtml(artist + '<br>' + origin);
142  
-		}
143  
-
144  
-		// calls the artist_to_origin cgi script
145  
-		function artist_to_origin()
146  
-		{
147  
-			var artist_name = document.forms[0].artist_form.value;
148  
-
149  
-			var url = "/cgi-bin/artist_to_origin2.cgi?" + escape(artist_name);
150  
-
151  
-			GDownloadUrl
152  
-			(
153  
-				url,
154  
-				function(data, responseCode)
155  
-				{
156  
-					if (data != 0)
157  
-					{
158  
-						var xml = GXml.parse(data);
159  
-
160  
-						var markers = xml.documentElement.getElementsByTagName("marker");
161  
-						var artists = xml.documentElement.getElementsByTagName("artist");
162  
-						var origins = xml.documentElement.getElementsByTagName("origin");
163  
-
164  
-						var point = new GLatLng(parseFloat(markers[0].getAttribute("lat")), parseFloat(markers[0].getAttribute("lng")));
165  
-						var artist = GXml.value(artists[0]);
166  
-						var origin = GXml.value(origins[0]);
167  
-
168  
-						document.forms[0].artist_form.value = artist;
169  
-
170  
-						addEatToMap(point, artist, origin);
171  
-
172  
-						document.getElementById('status_response').firstChild.nodeValue = "Last Query: " + artist + ": " +  origin;
173  
-					}
174  
-					else
175  
-					{
176  
-						document.getElementById('status_response').firstChild.nodeValue = "Last Query: No match";
177  
-					}
178  
-				}
179  
-			);
180  
-		}
181  
-
182  
-	//]]>
183  
-	</script>
184  
-
185  
-	<script type="text/javascript">
186  
-    //<![CDATA[
187  
-
  17
+    /**
  18
+    * Lists the entries from the specified JSON feed
  19
+    * by inserting the cells into a new 'table'
  20
+    * element in the DOM.  Each 'tr' represents a
  21
+    * row in the spreadsheet, and each 'td' is a cell
  22
+    * within that row.
  23
+    */
  24
+    function cellEntries(json)
  25
+    {
  26
+      var table = document.createElement('table');
  27
+      table.setAttribute('id', 'output');
  28
+      var tbody = document.createElement('tbody');
  29
+
  30
+      var tr;
  31
+
  32
+      for (var i=0; i < json.feed.entry.length; i++)
  33
+      {
  34
+        var entry = json.feed.entry[i];
  35
+
  36
+        // skip header
  37
+        if (entry.gs$cell.row != '1')
  38
+        {
  39
+          // only process location
  40
+          if (entry.gs$cell.col == '3')
  41
+          {
  42
+            var location = entry.content.$t;
  43
+
  44
+          }
  45
+        }
  46
+
  47
+
  48
+
  49
+        if (entry.gs$cell.col == '1')
  50
+        {
  51
+          if (tr != null)
  52
+          {
  53
+            tbody.appendChild(tr);
  54
+          }
  55
+
  56
+          tr = document.createElement('tr');
  57
+        }
  58
+
  59
+        var td = document.createElement('td');
  60
+        td.appendChild(document.createTextNode(entry.content.$t));
  61
+        tr.appendChild(td);
  62
+      }
  63
+
  64
+      tbody.appendChild(tr);
  65
+      table.appendChild(tbody);
  66
+      document.getElementById('data').appendChild(table);
  67
+    }
  68
+
  69
+    // the google map
  70
+    var map;
  71
+
  72
+    function onLoad()
  73
+    {
  74
+      map = new GMap2(document.getElementById("map"));
  75
+      map.setCenter(new GLatLng(37.4036, -122.2706), 4, G_HYBRID_MAP);
  76
+
  77
+      map.enableDoubleClickZoom();
  78
+      map.enableContinuousZoom();
  79
+
  80
+      map.addControl(new GLargeMapControl());
  81
+      map.addControl(new GMapTypeControl());
  82
+
  83
+      if (window.attachEvent)
  84
+      {
  85
+        // IE
  86
+        var height=document.documentElement.clientHeight*0.95;
  87
+        document.getElementById("map").style.height=height+"px";
  88
+
  89
+        var width=document.documentElement.clientWidth*0.95;
  90
+        document.getElementById("map").style.width=width+"px";
  91
+
  92
+        document.getElementById("map").style.top="70px";
  93
+        document.getElementById("map").style.bottom="100px";
  94
+
  95
+        window.attachEvent
  96
+        (
  97
+          "onresize",
  98
+          function()
  99
+          {
  100
+            // IE
  101
+            var height=document.documentElement.clientHeight*0.95;
  102
+            document.getElementById("map").style.height=height+"px";
  103
+
  104
+            var width=document.documentElement.clientWidth*0.95;
  105
+            document.getElementById("map").style.width=width+"px";
  106
+
  107
+            document.getElementById("map").style.top="70px";
  108
+            document.getElementById("map").style.bottom="100px";
  109
+          }
  110
+        );
  111
+      }
  112
+
  113
+      // Retrieve the JSON feed.
  114
+      var script = document.createElement('script');
  115
+
  116
+      script.setAttribute('src', 'http://spreadsheets.google.com/feeds/cells/plrKWzh8z4Qc7H_5ZM1o8CA/default/public/values?alt=json-in-script&callback=cellEntries');
  117
+
  118
+      script.setAttribute('id', 'jsonScript');
  119
+      script.setAttribute('type', 'text/javascript');
  120
+      document.documentElement.firstChild.appendChild(script);
  121
+    }
  122
+
  123
+    function addEatToMap(point, artist, origin)
  124
+    {
  125
+      var marker = new GMarker(point);
  126
+
  127
+      // add a listener to show data when clicked
  128
+      GEvent.addListener
  129
+      (
  130
+        marker,
  131
+        "click",
  132
+        function()
  133
+        {
  134
+          marker.openInfoWindowHtml(artist + '<br>' + origin);
  135
+        }
  136
+      );
  137
+
  138
+      // now add to the map
  139
+      map.addOverlay(marker);
  140
+
  141
+      marker.openInfoWindowHtml(artist + '<br>' + origin);
  142
+    }
  143
+
  144
+    // calls the artist_to_origin cgi script
  145
+    function artist_to_origin()
  146
+    {
  147
+      var artist_name = document.forms[0].artist_form.value;
  148
+
  149
+      var url = "/cgi-bin/artist_to_origin2.cgi?" + escape(artist_name);
  150
+
  151
+      GDownloadUrl
  152
+      (
  153
+        url,
  154
+        function(data, responseCode)
  155
+        {
  156
+          if (data != 0)
  157
+          {
  158
+            var xml = GXml.parse(data);
  159
+
  160
+            var markers = xml.documentElement.getElementsByTagName("marker");
  161
+            var artists = xml.documentElement.getElementsByTagName("artist");
  162
+            var origins = xml.documentElement.getElementsByTagName("origin");
  163
+
  164
+            var point = new GLatLng(parseFloat(markers[0].getAttribute("lat")), parseFloat(markers[0].getAttribute("lng")));
  165
+            var artist = GXml.value(artists[0]);
  166
+            var origin = GXml.value(origins[0]);
  167
+
  168
+            document.forms[0].artist_form.value = artist;
  169
+
  170
+            addEatToMap(point, artist, origin);
  171
+
  172
+            document.getElementById('status_response').firstChild.nodeValue = "Last Query: " + artist + ": " +  origin;
  173
+          }
  174
+          else
  175
+          {
  176
+            document.getElementById('status_response').firstChild.nodeValue = "Last Query: No match";
  177
+          }
  178
+        }
  179
+      );
  180
+    }
  181
+
  182
+  //]]>
  183
+  </script>
188 184
 
189  
-	//]]>
190  
-	</script>
  185
+  <script type="text/javascript">
  186
+    //<![CDATA[
191 187
 
192  
-	<link rel="stylesheet" type="text/css" href="http://code.google.com/css/dev_docs.css">
193 188
 
194  
-  <script type="text/javascript">
195  
-    var _gaq = _gaq || [];
196  
-    _gaq.push(['_setAccount', 'UA-27834075-1']);
197  
-    _gaq.push(['_trackPageview']);
198  
-    (function() {
199  
-      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
200  
-      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
201  
-      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
202  
-    })();
  189
+  //]]>
203 190
   </script>
204 191
 
205  
-	</head>
  192
+  <link rel="stylesheet" type="text/css" href="http://code.google.com/css/dev_docs.css">
  193
+
  194
+  <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
206 195
 
207  
-	<body onload="onLoad()">
  196
+  <body onload="onLoad()">
208 197
 
209  
-		<div id="data"></div>
  198
+    <div id="data"></div>
210 199
 
211  
-		<div id="form" style="position: absolute; top: 0px; left: 10px; ">
  200
+    <div id="form" style="position: absolute; top: 0px; left: 10px; ">
212 201
 
213  
-			<!-- Creates a simple input box where you can enter an address and a Search button that submits the form. //-->
214  
-			<form action="#" onsubmit="artist_to_origin(); return false;">
215  
-				<p>
216  
-					<b>Enter an artist name:</b>
217  
-					<input type="text" name="artist_form" value="" class="address_input" size="40" />
218  
-					<input type="submit" name="find" value="Search" />
219  
-				</p>
220  
-			</form>
  202
+      <!-- Creates a simple input box where you can enter an address and a Search button that submits the form. //-->
  203
+      <form action="#" onsubmit="artist_to_origin(); return false;">
  204
+        <p>
  205
+          <b>Enter an artist name:</b>
  206
+          <input type="text" name="artist_form" value="" class="address_input" size="40" />
  207
+          <input type="submit" name="find" value="Search" />
  208
+        </p>
  209
+      </form>
221 210
 
222  
-		</div>
  211
+    </div>
223 212
 
224  
-		<div id="div_response" style="position: absolute; top: 35px; bottom: 70px; left: 10px; right: 10px; height: 35px; width: 728px">
  213
+    <div id="div_response" style="position: absolute; top: 35px; bottom: 70px; left: 10px; right: 10px; height: 35px; width: 728px">
225 214
 
226  
-			<p id="status_response" style="font-weight: bold;">Find your artist on the map...</p>
  215
+      <p id="status_response" style="font-weight: bold;">Find your artist on the map...</p>
227 216
 
228  
-		</div>
  217
+    </div>
229 218
 
230  
-		<script type = "text/javascript">
231  
-			var ua=navigator.userAgent.toLowerCase();
232  
-			if (ua.indexOf("msie") != -1)
233  
-			{
234  
-				// IE
235  
-				document.write('<div id="map" style="position: absolute; top: 70x; bottom: 100px; left: 10px; right: 10px; height: 500px; width: 500px"></div>');
236  
-			}
237  
-			else
238  
-			{
239  
-				// everyone else
240  
-				document.write('<div id="map" style="position: absolute; top: 70px; bottom: 100px; left: 10px; right: 10px; "></div>');
241  
-			}
242  
-		</script>
  219
+    <script type = "text/javascript">
  220
+      var ua=navigator.userAgent.toLowerCase();
  221
+      if (ua.indexOf("msie") != -1)
  222
+      {
  223
+        // IE
  224
+        document.write('<div id="map" style="position: absolute; top: 70x; bottom: 100px; left: 10px; right: 10px; height: 500px; width: 500px"></div>');
  225
+      }
  226
+      else
  227
+      {
  228
+        // everyone else
  229
+        document.write('<div id="map" style="position: absolute; top: 70px; bottom: 100px; left: 10px; right: 10px; "></div>');
  230
+      }
  231
+    </script>
243 232
 
244  
-		<br />
  233
+    <br />
245 234
 
246  
-		<div id="ad" style="position: absolute; bottom: 0px; left: 10px; ">
  235
+    <div id="ad" style="position: absolute; bottom: 0px; left: 10px; ">
247 236
 
248  
-			<script type="text/javascript"><!--
249  
-				google_ad_client = "pub-6563613747797837";
250  
-				google_ad_width = 728;
251  
-				google_ad_height = 90;
252  
-				google_ad_format = "728x90_as";
253  
-				google_ad_type = "text_image";
254  
-				google_ad_channel ="";
255  
-				//--></script>
  237
+      <script type="text/javascript"><!--
  238
+        google_ad_client = "pub-6563613747797837";
  239
+        google_ad_width = 728;
  240
+        google_ad_height = 90;
  241
+        google_ad_format = "728x90_as";
  242
+        google_ad_type = "text_image";
  243
+        google_ad_channel ="";
  244
+        //--></script>
256 245
 
257  
-			<script type="text/javascript"
258  
-				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
259  
-				</script>
  246
+      <script type="text/javascript"
  247
+        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  248
+        </script>
260 249
 
261  
-		</div>
  250
+    </div>
262 251
 
263  
-	</body>
  252
+  </body>
264 253
 
265 254
 </html>
266 255
 
12  biggest_waves.html
@@ -32,17 +32,7 @@
32 32
     -->
33 33
     </style>
34 34
 
35  
-    <script type="text/javascript">
36  
-      var _gaq = _gaq || [];
37  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
38  
-      _gaq.push(['_trackPageview']);
39  
-      (function() {
40  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
41  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
42  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
43  
-      })();
44  
-    </script>
45  
-
  35
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
46 36
   </head>
47 37
 
48 38
   <body>
12  cell.html
@@ -4,17 +4,7 @@
4 4
 
5 5
     <title></title>
6 6
 
7  
-    <script type="text/javascript">
8  
-      var _gaq = _gaq || [];
9  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
10  
-      _gaq.push(['_trackPageview']);
11  
-      (function() {
12  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
13  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
14  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
15  
-      })();
16  
-    </script>
17  
-
  7
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
18 8
   </head>
19 9
 
20 10
 <body>
12  concert_map/concert_map.html
@@ -144,17 +144,7 @@
144 144
 		//]]>
145 145
 		</script>
146 146
 
147  
-    <script type="text/javascript">
148  
-      var _gaq = _gaq || [];
149  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
150  
-      _gaq.push(['_trackPageview']);
151  
-      (function() {
152  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
153  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
154  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
155  
-      })();
156  
-    </script>
157  
-
  147
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
158 148
 	</head>
159 149
 
160 150
 	<body onunload="google.maps.Unload()">
12  concert_map/concert_map2.html
@@ -153,17 +153,7 @@
153 153
     //]]>
154 154
     </script>
155 155
 
156  
-    <script type="text/javascript">
157  
-      var _gaq = _gaq || [];
158  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
159  
-      _gaq.push(['_trackPageview']);
160  
-      (function() {
161  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
162  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
163  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
164  
-      })();
165  
-    </script>
166  
-
  156
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
167 157
   </head>
168 158
 
169 159
   <body onunload="google.maps.Unload()">
12  concert_map/test.html
@@ -40,17 +40,7 @@
40 40
     //]]>
41 41
     </script>
42 42
 
43  
-    <script type="text/javascript">
44  
-      var _gaq = _gaq || [];
45  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
46  
-      _gaq.push(['_trackPageview']);
47  
-      (function() {
48  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
49  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
50  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
51  
-      })();
52  
-    </script>
53  
-
  43
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
54 44
   </head>
55 45
   <body onload="load()" onunload="GUnload()">
56 46
     <div id="map" style="width: 500px; height: 300px"></div>
12  index2.html
@@ -154,17 +154,7 @@
154 154
 
155 155
     <script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>
156 156
 
157  
-    <script type="text/javascript">
158  
-      var _gaq = _gaq || [];
159  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
160  
-      _gaq.push(['_trackPageview']);
161  
-      (function() {
162  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
163  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
164  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
165  
-      })();
166  
-    </script>
167  
-
  157
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
168 158
   </head>
169 159
 
170 160
   <body>
12  index_2007.html
@@ -33,17 +33,7 @@
33 33
     -->
34 34
     </style>
35 35
 
36  
-    <script type="text/javascript">
37  
-      var _gaq = _gaq || [];
38  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
39  
-      _gaq.push(['_trackPageview']);
40  
-      (function() {
41  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
42  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
43  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
44  
-      })();
45  
-    </script>
46  
-
  36
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
47 37
   </head>
48 38
 
49 39
   <body>
12  music_map.html
@@ -121,17 +121,7 @@
121 121
   //]]>
122 122
   </script>
123 123
 
124  
-  <script type="text/javascript">
125  
-    var _gaq = _gaq || [];
126  
-    _gaq.push(['_setAccount', 'UA-27834075-1']);
127  
-    _gaq.push(['_trackPageview']);
128  
-    (function() {
129  
-      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
130  
-      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
131  
-      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
132  
-    })();
133  
-  </script>
134  
-
  124
+  <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
135 125
   </head>
136 126
 
137 127
   <body onload="onLoad()">
12  otherside.html
@@ -230,17 +230,7 @@
230 230
     //]]>
231 231
     </script>
232 232
 
233  
-    <script type="text/javascript">
234  
-      var _gaq = _gaq || [];
235  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
236  
-      _gaq.push(['_trackPageview']);
237  
-      (function() {
238  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
239  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
240  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
241  
-      })();
242  
-    </script>
243  
-
  233
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
244 234
   </head>
245 235
 
246 236
   <body onload="onLoad()">
14  quotes.html
@@ -5,19 +5,7 @@
5 5
     <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
6 6
     <meta name="keywords" content="Siggy's Quotes, Stocks" />
7 7
     <title>Siggy's Quotes</title>
8  
-
9  
-    <script type="text/javascript">
10  
-      var _gaq = _gaq || [];
11  
-      _gaq.push(['_setAccount', 'UA-27834075-1']);
12  
-      _gaq.push(['_trackPageview']);
13  
-      (function() {
14  
-        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
15  
-        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
16  
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
17  
-      })();
18  
-    </script>
19  
-
20  
-
  8
+    <script type="text/javascript" src="/scripts/google_analytics.js"></script></head>
21 9
   </head>
22 10
 
23 11
   <body>

0 notes on commit 3dcad2d

Please sign in to comment.
Something went wrong with that request. Please try again.