@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formo/analytics",
3
- "version": "1.13.4-alpha.12",
3
+ "version": "1.13.4-alpha.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/getformo/sdk.git"
@@ -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
- origin: url.origin,
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
  };