Expand my Community achievements bar.

Join expert-led sessions on Real-Time CDP & Journey Optimizer designed to boost your impact.
SOLVED

Is it possible to add utm parameters to selective links only in AJO.

Avatar

Level 1

I wanted to add UTM parameters only to the internal links (client domain links) and not to the external links(non client domain links. ex- youtube.com/ google.com, etc). Is it possible to configure utm parameters for selective domains/links?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Yes, it is possible to selectively add UTM parameters to specific links in AJO. You can configure conditional logic or custom link tracking rules to append UTM parameters only to internal links (e.g., client domain links) while excluding external links. This can be done by applying dynamic logic in the Email Designer, setting custom tracking rules, or using data preparation steps in the journey. Also, preprocessing links before importing them into AJO ensures only internal links are modified. Testing is essential to validate the implementation.

View solution in original post

3 Replies

Avatar

Level 10

Hi @TanyaSa1,

 

No, you can't directly configure UTM parameters in AJO to apply only to internal links while excluding external links based on domain. AJO's functionality for adding UTM parameters typically works at a campaign or offer level, not on a per-link basis within the content of a message.

 

Alternatively, you can use URL builder with conditional logic. This script would check the target URL's domain. If it's an internal domain (your client's domain), the script would add the UTM parameters; otherwise, it would leave the URL unchanged. This modified URL would then be used in your AJO campaign.

 

Also, if you're using a data layer on your website, you could add the UTM parameters to the data layer only for internal links. Your AJO campaign would then read the UTM parameters from the data layer. This requires careful coordination between your website's data layer implementation and your AJO campaign.

 

Thanks,

Jyoti

Avatar

Level 1

Thanks, Jyoti!
What is referred to as data layer here?

Avatar

Correct answer by
Level 5

Yes, it is possible to selectively add UTM parameters to specific links in AJO. You can configure conditional logic or custom link tracking rules to append UTM parameters only to internal links (e.g., client domain links) while excluding external links. This can be done by applying dynamic logic in the Email Designer, setting custom tracking rules, or using data preparation steps in the journey. Also, preprocessing links before importing them into AJO ensures only internal links are modified. Testing is essential to validate the implementation.