Created
September 18, 2014 20:24
-
-
Save gbechtold/b966dcdb0e0d962857f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From f2b317acc4c635556871f76d40c17d65e5533706 Mon Sep 17 00:00:00 2001 | |
From: Guntram Bechtold <[email protected]> | |
Date: Thu, 18 Sep 2014 22:17:01 +0200 | |
Subject: [PATCH] added google analytics and udc analytics | |
--- | |
app/index.html | 24 ++++++++++++++++++++++++ | |
1 file changed, 24 insertions(+) | |
diff --git a/app/index.html b/app/index.html | |
index c38b649..09c05ae 100644 | |
--- a/app/index.html | |
+++ b/app/index.html | |
@@ -91,5 +91,29 @@ | |
</div> | |
</div> | |
+<!-- Begin Analytics--> | |
+<!-- Google Analytics Start --> | |
+<script> | |
+ (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), | |
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
+ ga('create', 'UA-46278040-1', 'auto'); | |
+ ga('send', 'pageview'); | |
+</script> | |
+<!-- Google Analytics End --> | |
+ | |
+<!-- Crate UDC --> | |
+<script> | |
+window.analytics=window.analytics||[],window.analytics.methods=["identify","group","track","page","pageview","alias","ready","on","once","off","trackLink","trackForm","trackClick","trackSubmit"],window.analytics.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),window.analytics.push(a),window.analytics}};for(var i=0;i<window.analytics.methods.length;i++){var key=window.analytics.methods[i];window.analytics[key]=window.analytics.factory(key)}window.analytics.load=function(t){if(!document.getElementById("analytics-js")){var a=document.createElement("script");a.type="text/javascript",a.id="analytics-js",a.async=!0,a.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.io/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n)}},window.analytics.SNIPPET_VERSION="2.0.9", | |
+window.analytics.load("vd4x4hv637"); | |
+(function(w,d,s,u){ | |
+var a=document.createElement(s); a.type="text/javascript", a.id='crate-utils', a.async=1, a.src=('https:'===document.location.protocol?'https:':'http:')+u; | |
+var n=document.getElementsByTagName(s)[0]; n.parentNode.insertBefore(a,n); | |
+})(window, document, 'script', '//cdn.crate.io/libs/crate/utils.js'); | |
+</script> | |
+<!-- Crate UDC End --> | |
+<!-- End Analytics --> | |
+ | |
</body> | |
</html> | |
-- | |
1.9.2.msysgit.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment