google-analytics-js
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "google-analytics-js", | ||
"description": "JavaScript mini library to track usage of injected script via Google Analytics.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/adjohnson916/google-analytics-js", | ||
@@ -6,0 +6,0 @@ "main": "gajs.js", |
@@ -28,2 +28,4 @@ // https://github.com/umdjs/umd/blob/master/templates/returnExportsGlobal.js | ||
} | ||
if (!this.Image) return; | ||
@@ -35,4 +37,4 @@ var i=1000000000, | ||
today=(new Date()).getTime(), | ||
win = window.location, | ||
img = new Image(), | ||
win = this.location, | ||
img = new this.Image(), | ||
urchinUrl = 'https://www.google-analytics.com/__utm.gif?utmwv=1.3&utmn=' | ||
@@ -39,0 +41,0 @@ +utmn+'&utmsr=-&utmsc=-&utmul=-&utmje=0&utmfl=-&utmdt=-&utmhn=' |
{ | ||
"name": "google-analytics-js", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "JavaScript mini library to track usage of injected script via Google Analytics.", | ||
@@ -5,0 +5,0 @@ "main": "gajs.js", |
6983
82