Hello Community,
Do we have any solution in Adobe Analytics or Launch where we can pass on the UTM paramters from one page to anaother without losing the data e.g.;
Page A: www.example01.com?utm_source=newsletter&utm_medium=email&utm_campaign=campaign01
Page B: https://www.example02.com
Want to pass the UTMs in Page A to Page B when someone clicks on PageB (which is a link within my Landing Page A)
Thanks!
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hey @UjjwalChandra
If you want the UTM parameters to persist across all pages a user visits during the session:
On the landing page (Page A):
Use Launch to detect and store the utm_source, utm_medium, etc. in localStorage or a first-party cookie.
On subsequent pages:
Use Launch to read those values and:
Send them with Adobe Analytics tracking calls.
Optionally append them back to URLs (e.g., for link tracking or if needed in outbound links).
This approach does not work for cross-domain.
Thanks @Jude_Felix ,
Is there any documentation for the above solution you provided. We do not want to do it for all pages it is just a one-of request from a regional team.
Views
Replies
Total Likes
@UjjwalChandra When you say you want them passed, what do you mean? Do you want the UTMs added back to the URL on page B load, passed as v0/another eVar on page B, or if page A loads with a utm query string do you want those added to the href of the link to page B the user could click on, on page A?
Views
Replies
Total Likes
Hi @UjjwalChandra ,
Yes, this is a common use case in multi-page/multi-domain tracking.
Adobe Launch do not automatically persist UTM parameters across pages or domains, but you can implement a solution using Adobe Launch (Tags) to carry forward UTM parameters from Page A to Page B.
Pass UTM Parameters Using Adobe Launch (Client-side JavaScript)
Step 1: Create a Data Element for UTM Parameters
// Collect UTM params from the current page
var urlParams = new URLSearchParams(window.location.search);
var utmParams = ['utm_source', 'utm_medium', 'utm_campaign'];
var paramString = utmParams
.map(p => urlParams.get(p) ? `${p}=${encodeURIComponent(urlParams.get(p))}` : '')
.filter(Boolean)
.join('&');
if (paramString && event.target.href.includes('example02.com')) {
var link = event.target;
var baseUrl = link.href.split('?')[0]; // remove existing params if needed
link.href = baseUrl + '?' + paramString;
}
Or
Thanks.
Pradnya
Regardless of same domain or cross domain, so long as a user is properly identified as the same person on subsequent pages, if you are tracking your UTMs in a Visit or higher expiry dimension, you shouldn't need to do anything to maintain the values... and forcibly re-tracking this data on subsequent pages is NOT in your best interest.
Tracking Code is the main way for tracking this, it has a default expiry of 1 week, I will also add eVar1 with a Visit expiry into my example)
Visit 1
Visit 2
The reason it's important to distinguish the Instance from the persisted value is that looking at the Instance will tell you the explicit entries using that campaign code, versus looking at the pages, and eventual conversions that are tied to that campaign based on the persistence.
Forcing every page to retrack (i.e. reset the value) on every page is actual going to break standard behaviours.
And while yes, technically you could use segment logic to look at non-repeating instances, you will actually break the available Instance metrics that you have available to you.
Now, if you are doing cross domain for sites tracked on different suites... that of course changes things...
as long as the domains are different, you won't be able to store anything neither in a local/sessionStorage, nor a cookie. As @Jennifer_Dungan mentioned, this might really not be what you want.
however, if you are using the Visitor ID service, it might be worthwhile looking at this feature: https://experienceleague.adobe.com/en/docs/id-service/using/id-service-api/methods/appendvisitorid
or with web sdk
https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/appendidentitytourl
In general, this will add user identity information to urls of a different domain when opened.
https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/appendidentitytourl
This might be extended with UTM query params.
Views
Replies
Total Likes
But again, if the two domains are on the same tracking suite, and the same user is identified, there is no need to pass and set the UTMs on the second domain... Adobe will remember those value in the Visit, or 1 week, or 30 Days, etc attribution for that user natively... without inflating the "instance" values....
Views
Replies
Total Likes
Views
Likes
Replies