]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Enable Google Analytics tracking
authorGeoff Kimball <geoff@zurb.com>
Wed, 23 Mar 2016 18:47:09 +0000 (11:47 -0700)
committerGeoff Kimball <geoff@zurb.com>
Fri, 25 Mar 2016 22:33:24 +0000 (15:33 -0700)
docs/layouts/default.html

index 1ceb9a1b4f8e596bac279aa32361fe5b791bbec4..2565b6826ea69a8d81775bcfe068a20c10aff504 100644 (file)
     </div></div>
 
     <script>
-      // var _gaq = _gaq || [];
-      // _gaq.push(
-      //   ['_setAccount', 'UA-2195009-2'],
-      //   ['_trackPageview'],
-      //   ['b._setAccount', 'UA-2195009-27'],
-      //   ['b._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);
-      // })();
+      var _gaq = _gaq || [];
+      _gaq.push(
+        ['_setAccount', 'UA-2195009-2'],
+        ['_trackPageview'],
+        ['b._setAccount', 'UA-2195009-27'],
+        ['b._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>
 
     <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>