authscape 1.0.698 → 1.0.700
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/index.js +17 -7
- package/package.json +1 -1
- package/src/components/AuthScapeApp.js +11 -1
package/index.js
CHANGED
|
@@ -271,14 +271,16 @@ function AuthScapeApp(_ref) {
|
|
|
271
271
|
userProperty: signedInUser.current.id.toString()
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
} else if (process.env.microsoftClarityTrackingCode != "")
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
_reactMicrosoftClarity.clarity.
|
|
278
|
-
|
|
279
|
-
|
|
274
|
+
} else if (process.env.microsoftClarityTrackingCode != "")
|
|
275
|
+
// if there isn't a private label tracking code use the one built in the app
|
|
276
|
+
{
|
|
277
|
+
_reactMicrosoftClarity.clarity.init(process.env.microsoftClarityTrackingCode);
|
|
278
|
+
if (signedInUser.current != null && _reactMicrosoftClarity.clarity.hasStarted()) {
|
|
279
|
+
_reactMicrosoftClarity.clarity.identify('USER_ID', {
|
|
280
|
+
userProperty: signedInUser.current.id.toString()
|
|
281
|
+
});
|
|
282
|
+
}
|
|
280
283
|
}
|
|
281
|
-
}
|
|
282
284
|
databaseDrivenPageView(window.location.pathname);
|
|
283
285
|
_router["default"].events.on('routeChangeComplete', function () {
|
|
284
286
|
if (ga4React != null && ga4React != "") {
|
|
@@ -288,6 +290,14 @@ function AuthScapeApp(_ref) {
|
|
|
288
290
|
}
|
|
289
291
|
databaseDrivenPageView(window.location.pathname);
|
|
290
292
|
});
|
|
293
|
+
if (pageProps.hubspotTrackingCode != null && pageProps.hubspotTrackingCode != "") {
|
|
294
|
+
var script = document.createElement("script");
|
|
295
|
+
script.src = pageProps.hubspotTrackingCode;
|
|
296
|
+
script.async = true;
|
|
297
|
+
script.defer = true;
|
|
298
|
+
script.id = "hs-script-loader";
|
|
299
|
+
document.body.appendChild(script);
|
|
300
|
+
}
|
|
291
301
|
}
|
|
292
302
|
}, [frontEndLoadedState]);
|
|
293
303
|
var validateUserSignedIn = /*#__PURE__*/function () {
|
package/package.json
CHANGED
|
@@ -234,7 +234,7 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
|
|
|
234
234
|
clarity.identify('USER_ID', { userProperty: signedInUser.current.id.toString() });
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
else if (process.env.microsoftClarityTrackingCode != "")
|
|
237
|
+
else if (process.env.microsoftClarityTrackingCode != "") // if there isn't a private label tracking code use the one built in the app
|
|
238
238
|
{
|
|
239
239
|
clarity.init(process.env.microsoftClarityTrackingCode);
|
|
240
240
|
|
|
@@ -258,6 +258,16 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
|
|
|
258
258
|
|
|
259
259
|
databaseDrivenPageView(window.location.pathname);
|
|
260
260
|
});
|
|
261
|
+
|
|
262
|
+
if (pageProps.hubspotTrackingCode != null && pageProps.hubspotTrackingCode != "")
|
|
263
|
+
{
|
|
264
|
+
const script = document.createElement("script");
|
|
265
|
+
script.src = pageProps.hubspotTrackingCode;
|
|
266
|
+
script.async = true;
|
|
267
|
+
script.defer = true;
|
|
268
|
+
script.id = "hs-script-loader";
|
|
269
|
+
document.body.appendChild(script);
|
|
270
|
+
}
|
|
261
271
|
}
|
|
262
272
|
|
|
263
273
|
}, [frontEndLoadedState]);
|