admin管理员组文章数量:1355594
I want to track when user clicks on the button which redirect to external page. Implementation:
gtag("event", name, {
event_callback: () => onLinkOpen ? onLinkOpen(link) : window.open(link, "_self")
transport: "xhr",
})
config:
gtag("config", trackingId, {
send_page_view: true,
})
But I don't see any requests to /collect endpoint after redirection in Network tab. For events without redirection logic it works well
本文标签: javascriptgtag is not sending custom event when redirecting to external pageStack Overflow
版权声明:本文标题:javascript - gtag is not sending custom event when redirecting to external page - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744031062a2578915.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论