()
| 84 | } |
| 85 | |
| 86 | trackUtm () { |
| 87 | const properties = { url: window.location.href } |
| 88 | for (const [param, value] of new URLSearchParams(window.location.search)) { |
| 89 | if (param.startsWith('utm_')) { |
| 90 | properties[param] = value |
| 91 | } |
| 92 | } |
| 93 | if (!properties.utm_source || !properties.utm_medium) return |
| 94 | if (document.referrer) { |
| 95 | properties.referrer = document.referrer |
| 96 | } |
| 97 | this.trackEventInternal('Arrived With UTM', properties) |
| 98 | } |
| 99 | } |
no test coverage detected