Socket
Socket
Sign inDemoInstall

universal-analytics

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-analytics - npm Package Compare versions

Comparing version 0.3.8 to 0.3.9

6

lib/index.js

@@ -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 @@

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc