j0Shi
j0Shi
I ran into the same issue trying to communicate statusCodes from data fetching performed on the server back to the client. I realized simply setting state on the server will...
[π]partytown throws error in chrome developer console and not able to connect to GTM preview mode
The code snippet is hard to read, but I think you might indeed be missing a closing bracket in your `dangerouslySetInnerHTML`: ``` dangerouslySetInnerHTML={{ __html:(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXXXX')...
[π]partytown throws error in chrome developer console and not able to connect to GTM preview mode
Sure. As mentioned in the [docs](https://partytown.builder.io/proxying-requests), requests from within a Web Worker require the correct CORS headers. It's a security measure that all modern browsers implement. Apparently, CookieBot does not...
[π]partytown throws error in chrome developer console and not able to connect to GTM preview mode
Cloudfront functions are JavaScript as well afaik. So you should be able to use the code snippet with small adjustments. A quick search revealed that Cloudfront functions may be limited...
[π]partytown throws error in chrome developer console and not able to connect to GTM preview mode
What you can do to verify that the data is flowing is go into your connected Analytics account, monitor the live view, and refresh your page a couple times. In...
[π]partytown throws error in chrome developer console and not able to connect to GTM preview mode
@maruthasalamr Unfortunately I'm a bit busy at the moment, but I'll try to look into it in the coming days.
I have a working showcase that integrates Matomo within Shopify OS 2.0. Maybe it helps: https://github.com/j0Shi82/shopify-partydawn
Could you post your configuration settings and `resolveUrl` function? I tested routing `/g/collect` through `resolveUrl` the other day and it worked fine. I don't think anyone will be able to...
I'm using `resolveUrl` in many projects and it seems to work fine. See: https://www.partydawn.top/?sgtm&pt It uses the following settings code: ```js const params = new URLSearchParams(location.search); const pt = params.has("pt");...
I've updated the test site with another option that shows a potential fix: https://www.partydawn.top/?sgtm&pt&xhrfetch For all scripts that use `XMLHttpRequest`, I added a new class that implements the original API...