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