Comments (9)
Hello,
I tried Partytown with Tawk.to too, but without success.
Here's the tawk.to script with Partytown:
// xxxx is my id, can't share it here
var Tawk_API = Tawk_API || {},
Tawk_LoadStart = new Date();
(function() {
var s1 = document.createElement("script"),
s0 = document.getElementsByTagName("script")[0];
s1.async = true;
s1.src = 'https://embed.tawk.to/xxxxxx/default';
s1.charset = 'UTF-8';
s1.setAttribute('crossorigin', '*');
s0.parentNode.insertBefore(s1, s0);
})();
</script>
And here's the browser console (with Partytown debug enabled)
Thanks for your help
from partytown.
Hi! This may be because of a variable '$this' in the script which is being replaced by Partytown.
Could you try it with the version from my PR and see if that helps? #134
from partytown.
@jesse-deboer Thanks for trying to help.
It didn't work, but I searched in twk-chunk-common.js to find out what code was involved in the error and found that the problem seems to come from the "navigator", which is not recognized:
for(e=0,t=navigator.plugins.length;e<t;e++) {...}
from partytown.
hey @GaspardC - we've just created an issue template, could you update your issue here to provide all the information the template asks for? it'll help us look into your issue https://github.com/BuilderIO/partytown/issues/new?assignees=&labels=&template=bug_report.md&title=
pasting below to make things easier:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Reproduction link
Please include a link to a Stackblitz or Codesandbox reproducing the issue. We will need to see the issue reproduced with hand-written code - we can't debug giant minified third party scripts directly. If you do not include a clean and simple reproduction of your issue, we won't be able to look into it until you do.
Expected behavior
A clear and concise description of what you expected to happen.
Partytown version
What version of Partytown you are using, e.g. 0.0.1
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
from partytown.
@steve8708 would you be able to provide a simples example how to integrate partytown and GTM to nextjs app. So far, I'm getting a plenty of CORS issues: Access to fetch at '<URL>' from origin '<URL>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
from partytown.
@dragansmlinus for CORS issues see this: https://partytown.builder.io/proxying-requests
from partytown.
Closing for now as this issue may be dated. Please create a new issue with a repo case for any specific issues. Thanks
from partytown.
Hi! This is still not working today! Do I really need to create a new issue?
from partytown.
Hello,
I tried Partytown with Tawk.to too, but without success.
Here's the tawk.to script with Partytown:
// xxxx is my id, can't share it here var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date(); (function() { var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0]; s1.async = true; s1.src = 'https://embed.tawk.to/xxxxxx/default'; s1.charset = 'UTF-8'; s1.setAttribute('crossorigin', '*'); s0.parentNode.insertBefore(s1, s0); })(); </script>
And here's the browser console (with Partytown debug enabled)
Thanks for your help
Same here, tried different approaches and this helped me to get rid of this error:
<script type="text/partytown"> window.navigator.plugins = window.navigator.plugins || []; </script>
But anyway, chat is not loading
from partytown.
Related Issues (20)
- Partytown integration with Astro makes over 10'000 proxytown requests on page load[🐞] HOT 2
- [🐞] Google Tag Manager NextJS forward events coming as blank []
- [🐞] Cannot read property 'Error' of null
- [🐞] Proxy object could not be cloned HOT 1
- [🐞] Firefox: 404 partytown-sandbox-sw.html HOT 1
- [🐞] Firefox: Private Browsing for external Scripts HOT 1
- [🐞] GA4 sessions plummeted after migration of GTM to Partytown HOT 11
- [🐞] Objects and object properties can't be forwarded HOT 2
- [🐞]in statement is not reliable when running through partytown
- [📖] resolveSendBeaconRequestParameters missing in docs and React types HOT 1
- [🐞]: forwarding gtm dataLayer.push breaks immediate dataLayer pushes HOT 3
- [🐞] page_view and on_load events are not firing in GA4
- [🐞] Intercom does not work with party town HOT 1
- [🐞]user_engagement is not working in GA4
- [🐞] AppsFlyer Smart Banner does not work
- [🐞] How to setup correctly partytown for astro.js HOT 1
- [🐞] GTM doesnt work HOT 1
- [🐞] "NoParty" error in Safari
- [🐞] Partytown Shopify Integration Failed to execute 'postMessage' on 'Worker'
- [🐞] Partytown Shopify Integration Failed to execute 'postMessage' on 'Worker'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from partytown.