@mparticle/web-google-analytics-kit
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -40,2 +40,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
HITTYPE = 'Google.HitType'; | ||
CONTENTGROUPNUMBER = 'Google.CGNumber'; | ||
CONTENTGROUPVALUE = 'Google.CGValue'; | ||
@@ -122,2 +124,3 @@ var constructor = function() { | ||
} | ||
setContentGroup(flags); | ||
} | ||
@@ -458,3 +461,3 @@ | ||
function initForwarder(settings, service, testMode, tid) { | ||
function initForwarder(settings, service, testMode, tid, userAttributes, userIdentities, appVersion, appName, customFlags, clientId) { | ||
try { | ||
@@ -518,2 +521,4 @@ forwarderSettings = settings; | ||
setContentGroup(customFlags); | ||
if (forwarderSettings.useDisplayFeatures == 'True') { | ||
@@ -567,2 +572,13 @@ ga(createCmd('require'), 'displayfeatures'); | ||
function setContentGroup(customFlags) { | ||
if (customFlags) { | ||
var contentGroupNumber = customFlags[CONTENTGROUPNUMBER]; | ||
var contentGroupValue = customFlags[CONTENTGROUPVALUE]; | ||
if (contentGroupNumber && contentGroupValue) { | ||
ga(createCmd('set'), 'contentGroup'.concat(contentGroupNumber), contentGroupValue); | ||
} | ||
} | ||
} | ||
function addTypeToMapping(map, type, mapVal) { | ||
@@ -569,0 +585,0 @@ var formattedMapVal = formatDimensionOrMetric(mapVal.value); |
{ | ||
"name": "@mparticle/web-google-analytics-kit", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "mParticle Developers <developers@mparticle.com> (https://www.mparticle.com)", | ||
@@ -5,0 +5,0 @@ "description": "mParticle integration sdk for Google Analytics", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
30998
556
0