Menu
Guides

Release Notes
Release Notes

Persist campaign data throughout a user session

Fixed
October 11, 2021
1 min read

{"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.