[{"id":"36972111710","type":"IssueCommentEvent","actor":{"id":45803,"login":"catlan","display_login":"catlan","gravatar_id":"","url":"https://api.github.com/users/catlan","avatar_url":"https://avatars.githubusercontent.com/u/45803?"},"repo":{"id":70107786,"name":"vercel/next.js","url":"https://api.github.com/repos/vercel/next.js"},"payload":{"action":"created","issue":{"url":"https://api.github.com/repos/vercel/next.js/issues/58924","repository_url":"https://api.github.com/repos/vercel/next.js","labels_url":"https://api.github.com/repos/vercel/next.js/issues/58924/labels{/name}","comments_url":"https://api.github.com/repos/vercel/next.js/issues/58924/comments","events_url":"https://api.github.com/repos/vercel/next.js/issues/58924/events","html_url":"https://github.com/vercel/next.js/issues/58924","id":2010963834,"node_id":"I_kwDOBC3Cis533N96","number":58924,"title":"Google Tag Manager event \"History change\" is no longer fired in Next.js 14.0.3","user":{"login":"manuelseisl","id":13287758,"node_id":"MDQ6VXNlcjEzMjg3NzU4","avatar_url":"https://avatars.githubusercontent.com/u/13287758?v=4","gravatar_id":"","url":"https://api.github.com/users/manuelseisl","html_url":"https://github.com/manuelseisl","followers_url":"https://api.github.com/users/manuelseisl/followers","following_url":"https://api.github.com/users/manuelseisl/following{/other_user}","gists_url":"https://api.github.com/users/manuelseisl/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelseisl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelseisl/subscriptions","organizations_url":"https://api.github.com/users/manuelseisl/orgs","repos_url":"https://api.github.com/users/manuelseisl/repos","events_url":"https://api.github.com/users/manuelseisl/events{/privacy}","received_events_url":"https://api.github.com/users/manuelseisl/received_events","type":"User","site_admin":false},"labels":[{"id":2471906168,"node_id":"MDU6TGFiZWwyNDcxOTA2MTY4","url":"https://api.github.com/repos/vercel/next.js/labels/template:%20bug","name":"template: bug","color":"fddf99","default":false,"description":"A user has filled out the bug report template. Issue needs triaging"},{"id":3502592891,"node_id":"LA_kwDOBC3Cis7QxVN7","url":"https://api.github.com/repos/vercel/next.js/labels/area:%20Routing","name":"area: Routing","color":"1830A5","default":false,"description":"Routing (next/router, next/navigation, next/link)"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2023-11-26T09:15:10Z","updated_at":"2024-03-28T15:28:39Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"### Link to the code that reproduces this issue\n\nhttps://github.com/manuelseisl/next-js-demo\n\n### To Reproduce\n\n1. Change GTM ID in layout.jsx\r\n2. Start application\r\n3. Go to GTM preview mode\r\n4. Navigate between pages\n\n### Current vs. Expected behavior\n\nThe Google Tag Manager event \"History change\" is no longer fired in Next.js 14.0.3.\n\n### Verify canary release\n\n- [X] I verified that the issue exists in the latest Next.js canary release\n\n### Provide environment information\n\n```bash\nOperating System:\r\n Platform: darwin\r\n Arch: arm64\r\n Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020\r\nBinaries:\r\n Node: 20.10.0\r\n npm: 10.2.3\r\n Yarn: 1.22.19\r\n pnpm: 8.8.0\r\nRelevant Packages:\r\n next: 14.0.3\r\n eslint-config-next: 14.0.3\r\n react: 18.2.0\r\n react-dom: 18.2.0\r\n typescript: 5.3.2\r\nNext.js Config:\r\n output: N/A\n```\n\n\n### Which area(s) are affected? (Select all that apply)\n\nApp Router, Routing (next/router, next/navigation, next/link)\n\n### Additional context\n\nI tested my reproduction against different versions and canary releases, and the first one that introduced the bug was “14.0.3”, when switching back to “14.0.2” it works.","reactions":{"url":"https://api.github.com/repos/vercel/next.js/issues/58924/reactions","total_count":13,"+1":9,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":4},"timeline_url":"https://api.github.com/repos/vercel/next.js/issues/58924/timeline","performed_via_github_app":null,"state_reason":null},"comment":{"url":"https://api.github.com/repos/vercel/next.js/issues/comments/2025501441","html_url":"https://github.com/vercel/next.js/issues/58924#issuecomment-2025501441","issue_url":"https://api.github.com/repos/vercel/next.js/issues/58924","id":2025501441,"node_id":"IC_kwDOBC3Cis54urMB","user":{"login":"catlan","id":45803,"node_id":"MDQ6VXNlcjQ1ODAz","avatar_url":"https://avatars.githubusercontent.com/u/45803?v=4","gravatar_id":"","url":"https://api.github.com/users/catlan","html_url":"https://github.com/catlan","followers_url":"https://api.github.com/users/catlan/followers","following_url":"https://api.github.com/users/catlan/following{/other_user}","gists_url":"https://api.github.com/users/catlan/gists{/gist_id}","starred_url":"https://api.github.com/users/catlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catlan/subscriptions","organizations_url":"https://api.github.com/users/catlan/orgs","repos_url":"https://api.github.com/users/catlan/repos","events_url":"https://api.github.com/users/catlan/events{/privacy}","received_events_url":"https://api.github.com/users/catlan/received_events","type":"User","site_admin":false},"created_at":"2024-03-28T15:28:37Z","updated_at":"2024-03-28T15:28:37Z","author_association":"NONE","body":"> I'm on 14.1.4 and noticed this still isn't working - that is I get no [History Change trigger](https://support.google.com/tagmanager/answer/7679322) in GTM\r\n\r\nHaven't retested with the latest version, but had to move the _GoogleTagManager_ into _head_ at some point for History Change trigger to work.\r\n\r\n```\r\n
\r\n