Google Analytics Integration utm_term query string parameter is empty string
Trailblazer Community

Google Analytics Integration utm_term query string parameter is empty string

Marketing Cloud Journey Builder , Marketing Cloud Reporting

Last updated 2021-06-16 ·Reference W-9297834 ·Reported By 3 users

In Review

Summary
If you have the GA360 enabled and have the Smart URL encoding enabled as well that helps you track dynamic link aliases under UTM_TERM parameter then you will not be able to track the values in UTM_TERM if in the anchor tag we are passing the link using the RedirectTo function.

The system will return you nothing in your UTM parameters

Repro
Pre-requisite:
- Smart URL Encoding setting is enabled by Marketing Cloud for the account

Repro:
- Add the AMPScript variable as the Link Alias in the a tag
- Set the href property using a RedirectTo AMPScript function
- Send the Message to a Subscriber
- Notice the UTM term (populated by the variable) is empty

Below is an example of how the AMPScript/content would look.

%%[
var @url, @alias
set @url="www.salesforce.com"
set @alias="salesforce.com"
]%%

<p>
This is test 1: <a href="%%=v(@url)=%%" alias="%%=v(@alias)=%%">%%=v(@alias)=%%</a>
</p>
<p>
This is test 2: <a href="%%=RedirectTo(@url)=%%" alias="%%=v(@alias)=%%">%%=v(@alias)=%%</a>
</p>
<p>
Alias: %%=v(@alias)=%%
<br>
URL: %%=v(@url)=%%
</p>

Without RedirectTo:

&utm_term=salesforce.com&

With RedirectTo:

&utm_term=&

Workaround
Use the Web Analytics Connector to populate the values, not the GA Integration

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.