-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from barriosnahuel/hotfix/analytics
Fix Analytics configuration
- Loading branch information
Showing
4 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* This is the famous snippet we're used to see directly in the HTML page, but for Chrome extensions and its Content Security Policy (CSP) we must load it from an external *.js file. | ||
* Created by Nahuel Barrios on 29/02/16. | ||
*/ | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-32410648-9']); | ||
_gaq.push(['_trackPageview']); | ||
|
||
/** | ||
* Below is a modified version of the Google Analytics asynchronous tracking | ||
* code snippet. It has been modified to pull the HTTPS version of ga.js | ||
* instead of the default HTTP version. It is recommended that you use this | ||
* snippet instead of the standard tracking snippet provided when setting up | ||
* a Google Analytics account. | ||
*/ | ||
(function () { | ||
var ga = document.createElement('script'); | ||
ga.type = 'text/javascript'; | ||
ga.async = true; | ||
ga.src = 'https://ssl.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(ga, s); | ||
})(); |
This file contains 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
This file contains 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
This file contains 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