[GTM] aタグリクエスト二重送信れる問題対処

1 min read
Google Tag Manager
hiroweb developer

現象

google tag manager を導入した環境で、<a>タグのリンクが二重送信されてしまう。

原因

フォーラムでも指摘のある通り、gtm.js のバグである事は間違いなさそう。

追ってみると、google_tag_manager.autoEventSettings.clc: 2000という条件によって発生している事が分かった。
この設定を消す方法だが、フォーラムには暫定的な回避方法があり、「リンクトリガー設定の『タグの配信を待つ』という設定(デフォルトが 2000 ミリ秒)」の設定をオフにすれば良かった。この設定オフにする事で二重送信は回避できるようになった。

参考

追記

解決した模様。

Quick update from the Google Tag Manager team: This issue should now be resolved. Please let us know if you experience any further issues. Thank you, and apologies for any inconvenience.

https://support.google.com/tagmanager/forum/AAAAnP_FwdIQVb2sNyvp5k/