简体   繁体   English

SiteCatalyst Exit以“#”href链接

[英]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. 由于s_code库中的trackExternalLinks = true选项,我很难理解如何停止一些自动退出链接跟踪。

These links have just the " # " href attribute and every click upon them is firing the automatic Exit Link tracking request. 这些链接只有“ ”href属性,每次点击它们都会触发自动退出链接跟踪请求。

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. 我明显的想法是在InternalFilters属性中包含“#”字符串,但它不起作用,可能是因为它不是真正的域。

Any hint before trying to hardcode a workaround like returning false everything except their href ?? 在尝试硬编码解决方法之前的任何提示,比如返回除了href以外的所有内容?
Thanks a lot. 非常感谢。

Adding # to linkInternalFilters is the right way to go. #添加到linkInternalFilters是正确的方法。

Check the following: 检查以下内容:

  • In your post, you called it InternalFilters . 在您的帖子中,您将其称为InternalFilters You may have just typoed it here, but to be clear, the correct variable is linkInternalFilters 你可能在这里输入了它,但要清楚,正确的变量是linkInternalFilters
  • Make sure linkInternalFilters isn't getting overwritten by some other instance of it. 确保linkInternalFilters不会被其他实例覆盖。 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 . 确保#不在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) 如果您正在使用exitLinkHandlerlinkHandler插件,请确保您在使用它们时没有逻辑将其视为退出链接(例如,将其指定为与要匹配的内容的arg)

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 . 原则上,这与上面的第2点相同:如果您将其作为DTM中的工具实现,那么在工具配置中,您需要转到链接跟踪>出站链接并将#添加到永不跟踪 This is what DTM uses to pop linkInternalFilters and in most cases it will overwrite the linkInternalFilters you set yourself 这是DTM用来弹出linkInternalFilters ,在大多数情况下它会覆盖你自己设置的linkInternalFilters

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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