@mparticle/web-google-analytics-kit
Advanced tools
Comparing version 2.1.11 to 2.1.12
## Releases | ||
#### 2.1.12 - 2021-08-12 | ||
- Fix - Add Location and Hostname to support all GA content information | ||
#### 2.1.11 - 2021-05-13 | ||
@@ -4,0 +7,0 @@ - Send product impression list name |
@@ -20,3 +20,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
moduleId = 6, | ||
version = '2.1.11', | ||
version = '2.1.12', | ||
MessageType = { | ||
@@ -52,2 +52,4 @@ SessionStart: 1, | ||
PAGE = 'Google.Page', | ||
LOCATION = 'Google.Location', | ||
HOSTNAME = 'Google.Hostname', | ||
VALUE = 'Google.Value', | ||
@@ -452,8 +454,16 @@ USERTIMING = 'Google.UserTiming', | ||
else { | ||
if (event.CustomFlags && event.CustomFlags[PAGE]) { | ||
ga(createCmd('set'), 'page', event.CustomFlags[PAGE]); | ||
if (event.CustomFlags) { | ||
if (event.CustomFlags[PAGE]) { | ||
ga(createCmd('set'), 'page', event.CustomFlags[PAGE]); | ||
} | ||
if (event.CustomFlags[HOSTNAME]) { | ||
ga(createCmd('set'), 'hostname', event.CustomFlags[HOSTNAME]); | ||
} | ||
if (event.CustomFlags[LOCATION]) { | ||
ga(createCmd('set'), 'location', event.CustomFlags[LOCATION]); | ||
} | ||
if (event.CustomFlags[TITLE]){ | ||
ga(createCmd('set'), 'title', event.CustomFlags[TITLE]); | ||
} | ||
} | ||
if (event.CustomFlags && event.CustomFlags[TITLE]){ | ||
ga(createCmd('set'), 'title', event.CustomFlags[TITLE]); | ||
} | ||
ga(createCmd('send'), customFlags && customFlags[HITTYPE] ? customFlags[HITTYPE] : 'pageview', gaOptionalParameters); | ||
@@ -460,0 +470,0 @@ sendOptionalUserTimingMessage(event, gaOptionalParameters); |
{ | ||
"name": "@mparticle/web-google-analytics-kit", | ||
"version": "2.1.11", | ||
"version": "2.1.12", | ||
"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
38480
668