universal-analytics
Advanced tools
Comparing version 0.3.8 to 0.3.9
@@ -9,2 +9,3 @@ | ||
var config = require("./config"); | ||
var url = require("url"); | ||
@@ -33,2 +34,7 @@ module.exports = init; | ||
if (this.options.https) { | ||
var parsedHostname = url.parse(config.hostname); | ||
config.hostname = 'https://' + parsedHostname.host; | ||
} | ||
this._context = context || {}; | ||
@@ -35,0 +41,0 @@ |
{ | ||
"name": "universal-analytics", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"description": "A node module for Google's Universal Analytics tracking", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -48,2 +48,7 @@ universal-analytics | ||
If you want to use Google Analytics in https protocol, just include it in the options `https: true`, by default will use http: | ||
```javascript | ||
var visitor = ua('UA-XXXX-XX', {https: true}); | ||
``` | ||
Tracking a pageview without much else is now very simple: | ||
@@ -50,0 +55,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150478
2442
469