New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electron-google-analytics

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-google-analytics - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

2

package.json
{
"name": "electron-google-analytics",
"version": "0.0.14",
"version": "0.0.15",
"description": "A library to implement Google Analytics in desktop apps.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -16,2 +16,4 @@ ### Google Analytics - [Measurement Protocol API](https://developers.google.com/analytics/devguides/collection/protocol/v1/)

* Refund
* Item
* User Timing Tracking
* Custom function for the rest (send)

@@ -102,3 +104,3 @@

```
* Refund

@@ -115,2 +117,24 @@

* Item
`Analytics#item(trnID, itemName, { itemPrice, itemQty, itemSku, itemVariation, currCode } = {}, clientID)`
```javascript
return analytics.item(123, 'Test item').then((response) => {
return response;
}).catch((err) => {
return err;
});
```
* User Timing Tracking
`Analytics#timingTrk(timingCtg, timingVar, timingTime, { timingLbl, dns, pageDownTime, redirTime, tcpConnTime, serverResTime } = {}, clientID)`
```javascript
return analytics.timingTrk('Category', 'jsonLoader').then((response) => {
return response;
}).catch((err) => {
return err;
});
```
* Send (for everything else for now)

@@ -117,0 +141,0 @@

@@ -95,3 +95,3 @@ import chai from 'chai';

return analytics.item('Category', 'jsonLoader').then((response) => {
return analytics.timingTrk('Category', 'jsonLoader').then((response) => {
return expect(response).to.have.property('clientID');

@@ -201,3 +201,3 @@ }).catch((err) => {

return analytics.item('Category', 'jsonLoader').then((response) => {
return analytics.timingTrk('Category', 'jsonLoader').then((response) => {
return expect(response).to.be.empty;

@@ -204,0 +204,0 @@ }).catch((err) => {

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