Web Analytics beacon js breaks history.pushState with URL object

The recent update (2022-10-17) to beacon.min.js has broken history.pushState if you pass a URL object rather than a string url.


  • go to a page that uses beacon.min.js and open the JS console
  • run history.pushState({}, '', "https://example.com/new") and you’ll see the url change in the browser - but run history.pushState({}, '', new URL("https://example.com/another")) and see the url not changing

Hello, we rolled out a fix for this issue. Let us know if you are seeing any problems.