Skip to content

Commit

Permalink
Include Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
skoshy committed Jan 9, 2017
1 parent e016304 commit 2f2cbea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,4 +782,13 @@ function selectTextIfNeeded(el) {
document.execCommand('selectAll',false,null);
}
}
}
}

/* Google Analytics */
(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','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-90000349-1', 'auto');
ga('send', 'pageview');
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"chrome_url_overrides" : {
"newtab": "newtab.html"
},
"content_security_policy": "script-src 'self' https://code.jquery.com https://maxcdn.bootstrapcdn.com https://cdnjs.cloudflare.com; object-src 'self'",
"content_security_policy": "script-src 'self' https://www.google-analytics.com/ https://code.jquery.com https://maxcdn.bootstrapcdn.com https://cdnjs.cloudflare.com; object-src 'self'",
"permissions": [
"storage",
"topSites"
Expand Down

0 comments on commit 2f2cbea

Please sign in to comment.