简体   繁体   中英

SiteCatalyst Exit Links with “#” href


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.

Adding # to linkInternalFilters is the right way to go.

Check the following:

  • In your post, you called it InternalFilters . You may have just typoed it here, but to be clear, the correct variable is linkInternalFilters
  • Make sure 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.
  • Make sure # is not in linkExternalFilters .
  • If you are using the exitLinkHandler or linkHandler plugins, make sure you there's no logic in your use of them that is counting it as an exit link (eg specifying it as an arg for something to match against)

Update: Adding comment that actually solved the issue.

  • In principle, this is same as point #2 above: If you are implementing this as a tool in DTM, then in the tool config, you will need to go to Link Tracking > Outbound Links and add # to Never Track . This is what DTM uses to pop linkInternalFilters and in most cases it will overwrite the linkInternalFilters you set yourself

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM