authscape 1.0.452 → 1.0.454
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 +3 -1
- package/package.json +1 -1
- package/src/components/AuthScapeApp.js +5 -1
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
|
});
|
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);
|