Documentation
Feedback
Guides

Release Notes
Release Notes
2021
November
New variable for the Google Tag Manager app - Original Referrer

{"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/new-variable-for-the-google-tag-manager-app-originalreferrer-0.png"}}

We have added the variable originalReferrer to the VTEX Google Tag Manager (GTM) app to help Google Analytics (GA) identify and maintain correct campaign data when a user, throughout their session, does not have an explicit utm_source in the URL.

What has changed?

Before, to persist campaign data throughout a user session, you have added the variable originalLocation to the VTEX Google Tag Manager app. However, Google Analytics could not identify and maintain correct campaign data when a user came from a Google search, for example, but does not have an explicit utm_source in the URL.

With the variable originalReferrer, Google Analytics can identify and maintain the campaign data, from the user's first login to a store to their checkout navigation.

What needs to be done?

Go to the Setting up Google Tag Manager documentation and see how you can create the variable originalReferrer.

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