Documentation
Feedback
Guides

Release Notes
Release Notes
2021
October
Persist campaign data throughout a user session

{"base64":"  ","img":{"width":81,"height":20,"type":"svg","mime":"image/svg+xml","wUnits":"px","hUnits":"px","length":931,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/persist-campaign-data-throughout-a-user-session-0.png"}}

To persist campaign data throughout a user session and avoid providing inconsistent campaign data to Google Analytics, you must add the variable OriginalLocation to your Google Tag Manager (GTM) container and configure your store’s Google Analytics tags.

Learn how to add the variable OriginalLocation to your GTM container and configure your store’s Google Analytics tags in the Setting up Google Tag Manager documentation.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page