Skip to content

Commit

Permalink
πŸ“ˆ Manually attribute google organic if srsltid qs is set
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Feb 14, 2025
1 parent 6e2087d commit fa679a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mixins/utm.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export default {
this.linkMedium
);
},
googleOrganicId() {
return this.$route.query.srsltid;
},
gadClickId() {
return this.$route.query.gclid;
},
Expand All @@ -37,6 +40,10 @@ export default {
},
mounted() {
this.documentReferrer = document.referrer;
if (this.googleOrganicId) {
if (!this.utmSource) this.utmSource = 'google';
if (!this.utmMedium) this.utmMedium = 'organic';
}
this.restoreUTMFromSessionStorage();
this.storeUTMToSessionStorage();
this.getFbClickIdFromCookie();
Expand Down

0 comments on commit fa679a5

Please sign in to comment.