Skip to content

Commit

Permalink
fix(utm): fix issue with utm check (#2822)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Jul 10, 2023
1 parent 863f010 commit 9481077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/utm/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function useInitializeUtm(): void {
() => {
const searchParams = new URLSearchParams(search)
const utm = getUtmParams(searchParams)
if (utm.utmCampaign || utm.utmCampaign || utm.utmContent || utm.utmMedium || utm.utmSource) {
if (utm.utmSource || utm.utmMedium || utm.utmCampaign || utm.utmContent || utm.utmTerm) {
// Only overrides the UTM if the URL includes at least one UTM param
setUtm(utm)
}
Expand Down

0 comments on commit 9481077

Please sign in to comment.