drupal的google_analytics 6.x-3.2模块在启用跟踪外部链接时会导致新开窗口访问外链失效

drupal的google_analytics 6.x-3.2模块在启用跟踪外部链接时会导致新开窗口访问外链失效

如果你的drupal 6.x安装了google_analytics 6.x-3.2模块,并且启用了跟踪外部链接的统计功能,那么你会发现所有访问外部链接新开窗口的功能会失效!点击了任何外链之后原始页面和新开页面都会转到外部链接页面!

解决方法:

1.关闭google_analytics 6.x-3.2模块跟踪外部链接功能。

2.更新到最新的google_analytics 6.x-3.3可以解决这个问题。

看看3.3版所修复的bug:

Critical bugs

  • #1057914 by hass: Rollback of document.location that is broken with target and window.open() and maybe other special JS cod
  • #339235: JS error "text" is undefined