How to add regex to linkInternalFilters (Link Tracking - Never Track in Adobe Analytics) | Community
Skip to main content
Level 2
September 15, 2021
Solved

How to add regex to linkInternalFilters (Link Tracking - Never Track in Adobe Analytics)

  • September 15, 2021
  • 1 reply
  • 875 views

Hello,

 

I use Link Tracking - Never Track in Adobe Analytics to exclude some links from being tracked in "Referrer".

 

I need to add a rule to make the exclusion of these links more "dynamic", for example :

 

Instead of adding: 

 

- domainone.testapp.com

- domainetwo.testapp.com

- ...

 

I want to exclude the following: 

 

[Aa-Zz].testapp.com

 

Is there a way to do this? Using data elements for example?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by yuhuisg

Yes, you can use a data element to return the desired values, but that must still be a comma-separated list. This is because ultimately, Adobe Analytics only accepts a comma-separated value for that field. See https://experienceleague.adobe.com/docs/analytics/implementation/vars/config-vars/linkinternalfilters.html?lang=en#s.linkinternalfilters-in-appmeasurement-and-the-analytics-extension-custom-code-editor

So while you can't use a regular expression, you can, for example, have a data element that accepts an array of domain names, then returns the comma-joined string, e.g. domainNameArray.join(",")

1 reply

yuhuisg
Community Advisor
yuhuisgCommunity AdvisorAccepted solution
Community Advisor
August 15, 2022

Yes, you can use a data element to return the desired values, but that must still be a comma-separated list. This is because ultimately, Adobe Analytics only accepts a comma-separated value for that field. See https://experienceleague.adobe.com/docs/analytics/implementation/vars/config-vars/linkinternalfilters.html?lang=en#s.linkinternalfilters-in-appmeasurement-and-the-analytics-extension-custom-code-editor

So while you can't use a regular expression, you can, for example, have a data element that accepts an array of domain names, then returns the comma-joined string, e.g. domainNameArray.join(",")