authscape 1.0.452 → 1.0.456
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 +5 -2
- package/package.json +1 -1
- package/src/components/AuthScapeApp.js +7 -2
package/index.js
CHANGED
|
@@ -243,7 +243,9 @@ function AuthScapeApp(_ref) {
|
|
|
243
243
|
databaseDrivenPageView(window.location.pathname);
|
|
244
244
|
_router["default"].events.on('routeChangeComplete', function () {
|
|
245
245
|
if (ga4React != null) {
|
|
246
|
-
|
|
246
|
+
try {
|
|
247
|
+
ga4React.current.pageview(window.location.pathname);
|
|
248
|
+
} catch (exp) {}
|
|
247
249
|
}
|
|
248
250
|
databaseDrivenPageView(window.location.pathname);
|
|
249
251
|
});
|
|
@@ -341,7 +343,8 @@ function AuthScapeApp(_ref) {
|
|
|
341
343
|
setIsLoading: setIsLoading,
|
|
342
344
|
toast: _reactToastify.toast,
|
|
343
345
|
store: useStore,
|
|
344
|
-
setToastMessage: setToastMessage
|
|
346
|
+
setToastMessage: setToastMessage,
|
|
347
|
+
pageProps: pageProps
|
|
345
348
|
}), layout == null && /*#__PURE__*/_react["default"].createElement(Component, _extends({}, pageProps, {
|
|
346
349
|
currentUser: signedInUser.current,
|
|
347
350
|
loadedUser: frontEndLoadedState,
|
package/package.json
CHANGED
|
@@ -207,7 +207,11 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
|
|
|
207
207
|
|
|
208
208
|
if (ga4React != null)
|
|
209
209
|
{
|
|
210
|
-
|
|
210
|
+
try
|
|
211
|
+
{
|
|
212
|
+
ga4React.current.pageview(window.location.pathname);
|
|
213
|
+
}
|
|
214
|
+
catch(exp) {}
|
|
211
215
|
}
|
|
212
216
|
|
|
213
217
|
databaseDrivenPageView(window.location.pathname);
|
|
@@ -310,7 +314,8 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
|
|
|
310
314
|
setIsLoading: setIsLoading,
|
|
311
315
|
toast: toast,
|
|
312
316
|
store: useStore,
|
|
313
|
-
setToastMessage: setToastMessage
|
|
317
|
+
setToastMessage: setToastMessage,
|
|
318
|
+
pageProps: pageProps
|
|
314
319
|
})}
|
|
315
320
|
|
|
316
321
|
{layout == null &&
|