Expand my Community achievements bar.

SOLVED

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 Accepted Solution

Avatar

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

View solution in original post

1 Reply

Avatar

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