Reputation: 203
I'm struggling to understand how to stop some automatic Exit Links tracking, due to the trackExternalLinks=true option in the s_code library.
These links have just the "#" href attribute and every click upon them is firing the automatic Exit Link tracking request.
My obvious thought was to include the "#" string in the InternalFilters property, but it does not work, maybe because it's not a real domain.
Any hint before trying to hardcode a workaround like returning false everything except their href ??
Thanks a lot.
Upvotes: 1
Views: 843
Reputation: 32517
Adding #
to linkInternalFilters
is the right way to go.
Check the following:
InternalFilters
. You may have just typoed it here, but to be clear, the correct variable is linkInternalFilters
linkInternalFilters
isn't getting overwritten by some other instance of it. It is very common for this variable to be set in multiple places, particularly with implementations spanning multiple sites that may each have their own local/site configuration. #
is not in linkExternalFilters
.exitLinkHandler
or linkHandler
plugins, make sure you there's no logic in your use of them that is counting it as an exit link (e.g. specifying it as an arg for something to match against)Update: Adding comment that actually solved the issue.
#
to Never Track. This is what DTM uses to pop linkInternalFilters
and in most cases it will overwrite the linkInternalFilters
you set yourself Upvotes: 3