Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

Avatar

Level 2

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?

1 Reply

Avatar

Community Advisor

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/linkinternalfilter...

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(",")