@mparticle/web-google-analytics-4-client-kit 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,19 +90,19 @@ Common.prototype.getUserId = function (
90
90
  '. User not set. Please double check your implementation.'
91
91
  );
92
92
  }
93
- }
94
- if (userId) {
95
- if (hashUserId == 'True') {
96
- userId = window.mParticle.generateHash(userId);
93
+ if (userId) {
94
+ if (hashUserId == 'True') {
95
+ userId = window.mParticle.generateHash(userId);
96
+ }
97
+ } else {
98
+ console.warn(
99
+ 'External identity type of ' +
100
+ externalUserIdentityType +
101
+ ' not set on the user'
102
+ );
97
103
  }
98
- } else {
99
- console.warn(
100
- 'External identity type of ' +
101
- externalUserIdentityType +
102
- ' not set on the user'
103
- );
104
+ return userId;
104
105
  }
105
- return userId;
106
106
  };
107
107
 
108
108
  var common = Common;
@@ -673,7 +673,7 @@ IdentityHandler.prototype.onSetUserIdentity = function (
673
673
  var identityHandler = IdentityHandler;
674
674
 
675
675
  var initialization = {
676
- name: 'GoogleAnalytics4EventForwarder',
676
+ name: 'GoogleAnalytics4',
677
677
  /* ****** Fill out initForwarder to load your SDK ******
678
678
  Note that not all arguments may apply to your SDK initialization.
679
679
  These are passed from mParticle, but leave them even if they are not being used.
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@mparticle/web-google-analytics-4-client-kit",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "author": "mParticle Developers <developers@mparticle.com> (https://www.mparticle.com)",
5
5
  "description": "mParticle integration sdk for Google Analytics",
6
- "main": "dist/GoogleAnalytics4EventForwarder-Kit.common.js",
7
- "browser": "dist/GoogleAnalytics4EventForwarder-Kit.iife.js",
6
+ "main": "dist/GoogleAnalytics4EventForwarderClientSide-Kit.common.js",
7
+ "browser": "dist/GoogleAnalytics4EventForwarderClientSide-Kit.common.js",
8
+ "files": [
9
+ "dist/GoogleAnalyticsEvent4ForwarderClientSide-Kit.common.js"
10
+ ],
8
11
  "scripts": {
9
12
  "test": "node test/boilerplate/test-karma.js",
10
13
  "build": "ENVIRONMENT=production rollup --config rollup.config.js",
package/.eslintrc DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "root": true,
3
- "env": {
4
- "browser": true,
5
- "node": true
6
- },
7
- "globals": {
8
- "mParticle": true,
9
- "gtag": true,
10
- "describe": true,
11
- "Should": true,
12
- "MockHttpServer": true,
13
- "it": true,
14
- "sinon": true,
15
- "const": true,
16
- "before": true,
17
- "beforeEach": true,
18
- "after": true,
19
- "Leanplum": true
20
- },
21
- "extends": ["plugin:prettier/recommended", "eslint:recommended"],
22
- "plugins": ["prettier"],
23
- "rules": {
24
- "prettier/prettier": "error",
25
- "no-prototype-builtins": "off",
26
- "no-empty": "off",
27
- "no-useless-escape": "off",
28
- "no-unexpected-multiline": "off"
29
- }
30
- }
package/dist/.keep DELETED
File without changes