@formo/analytics 1.13.4-alpha.12 → 1.13.4-alpha.13
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/dist/cjs/src/FormoAnalytics.d.ts.map +1 -1
- package/dist/cjs/src/FormoAnalytics.js +1 -3
- package/dist/cjs/src/FormoAnalytics.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/FormoAnalytics.d.ts.map +1 -1
- package/dist/esm/src/FormoAnalytics.js +1 -3
- package/dist/esm/src/FormoAnalytics.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/FormoAnalytics.ts +3 -3
package/package.json
CHANGED
package/src/FormoAnalytics.ts
CHANGED
|
@@ -580,7 +580,6 @@ export class FormoAnalytics implements IFormoAnalytics {
|
|
|
580
580
|
|
|
581
581
|
private trackPageHit(): void {
|
|
582
582
|
const pathname = window.location.pathname;
|
|
583
|
-
const href = window.location.href;
|
|
584
583
|
const hash = window.location.hash;
|
|
585
584
|
|
|
586
585
|
if (!this.config.trackLocalhost && isLocalhost()) {
|
|
@@ -592,7 +591,6 @@ export class FormoAnalytics implements IFormoAnalytics {
|
|
|
592
591
|
setTimeout(async () => {
|
|
593
592
|
this.trackEvent(Event.PAGE, {
|
|
594
593
|
pathname,
|
|
595
|
-
href,
|
|
596
594
|
hash,
|
|
597
595
|
});
|
|
598
596
|
}, 300);
|
|
@@ -788,13 +786,15 @@ export class FormoAnalytics implements IFormoAnalytics {
|
|
|
788
786
|
// common browser properties
|
|
789
787
|
return {
|
|
790
788
|
"user-agent": window.navigator.userAgent,
|
|
791
|
-
|
|
789
|
+
href: url.href,
|
|
792
790
|
locale: language,
|
|
793
791
|
location,
|
|
794
792
|
referrer: document.referrer,
|
|
795
793
|
utm_source: params.get("utm_source"),
|
|
796
794
|
utm_medium: params.get("utm_medium"),
|
|
797
795
|
utm_campaign: params.get("utm_campaign"),
|
|
796
|
+
utm_content: params.get("utm_content"),
|
|
797
|
+
utm_term: params.get("utm_term"),
|
|
798
798
|
ref: params.get("ref"),
|
|
799
799
|
...eventSpecificPayload,
|
|
800
800
|
};
|