Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blotoutio/providers-google-analytics-4-sdk

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blotoutio/providers-google-analytics-4-sdk - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

19

index.js

@@ -39,3 +39,3 @@ var ProvidersGoogleAnalytics4Sdk = (function () {

const data = {
item_id: content.id,
item_id: content.id.toString(),
quantity: content.quantity || 1,

@@ -47,3 +47,10 @@ };

if (content.category) {
data['item_category'] = content.category;
const categories = content.category.split(',');
data['item_category'] = categories[0];
for (let i = 1; i < Math.min(categories.length, 5); i++) {
if (categories[i].trim()) {
data[`item_category${i + 1}`] =
categories[i].trim();
}
}
}

@@ -53,2 +60,8 @@ if (content.item_price) {

}
if (content.brand) {
data['item_brand'] = content.brand;
}
if (content.variantId) {
data['item_variant'] = content.variantId.toString();
}
return data;

@@ -249,3 +262,3 @@ });

loaded: isLoaded,
sdkVersion: "0.13.0" ,
sdkVersion: "0.14.0" ,
};

@@ -252,0 +265,0 @@ };

2

package.json
{
"name": "@blotoutio/providers-google-analytics-4-sdk",
"version": "0.13.0",
"version": "0.14.0",
"description": "Google Analytics 4 Browser SDK for EdgeTag",

@@ -5,0 +5,0 @@ "author": "Blotout",

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