@everymatrix/general-player-register-form 0.0.165 → 0.0.166
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/general-player-register-form",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.166",
|
|
4
4
|
"main": "dist/general-player-register-form.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "cc5cea8f5d4ed68bf0b052d98cc82ce69e97fc45"
|
|
40
40
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
export let imagedesktop:string = '';
|
|
14
14
|
export let playerid:string = '';
|
|
15
15
|
export let session:string = '';
|
|
16
|
+
export let trackedanalyticsdata:string = '';
|
|
16
17
|
|
|
17
18
|
let isLoading:boolean = false;
|
|
18
19
|
|
|
@@ -100,6 +101,9 @@
|
|
|
100
101
|
userData.mobile.prefix = data.mobilePrefixSelected;
|
|
101
102
|
userData.mobile.number = data.mobile;
|
|
102
103
|
userData.userConsents = {};
|
|
104
|
+
// analytics data
|
|
105
|
+
userData.affiliateMarker = trackedanalyticsdata;
|
|
106
|
+
|
|
103
107
|
if(userconsentsexist) {
|
|
104
108
|
userData.userConsents.additionalProp1 = data.consentOffersSms;
|
|
105
109
|
userData.userConsents.additionalProp2 = data.consentOffersEmail;
|
|
@@ -138,7 +142,7 @@
|
|
|
138
142
|
|
|
139
143
|
case 'RegisterStepThree':
|
|
140
144
|
createData('RegisterStepThree', e.data.registerStepThreeData);
|
|
141
|
-
|
|
145
|
+
sendData(userData);
|
|
142
146
|
break;
|
|
143
147
|
|
|
144
148
|
case 'GoBackStepTwo':
|
|
@@ -164,7 +168,8 @@
|
|
|
164
168
|
}
|
|
165
169
|
}
|
|
166
170
|
|
|
167
|
-
const
|
|
171
|
+
const sendData = async (userData:any) => {
|
|
172
|
+
|
|
168
173
|
let sendRegistrationData = {
|
|
169
174
|
method: "PUT",
|
|
170
175
|
headers: {
|