-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use partytown to third party scripts like glaze, dynatrace, etc? #302
Comments
In theory, this should work, but if it does not, we need steps to reproduce it. |
Hi Mr.Hevery, I have created a sample application for reproducing dynatrace issue. there, in index.html , if you change the script type as text/javascript in the dynatrace script you can see log calls getting triggered for url change. But the same is not happening with type partytown. <script type="text/partytown" src="https://js-cdn.dynatrace.com/jstag/147f84b2bdc/bf45848ori/3cd9a81926e1a501_complete.js"></script>Github link : https://github.com/vasikaranb-nagarro/partytown_poc/tree/dynatrace |
For Glaze.ai, the issue with partytown is, glaze fetches changes from window.location.href to make log calls. and it works fine with partytown nomally, but if we have base URL for the application, then it fails because partytown doesnt update its self.location.href if we have base href. Steps to reproduce:
Solution needed: |
I will try to look into it later this week. |
I tried to debug it, but I really have no idea what I am looking for or how to reproduce it. Can you provide a more steps by steps instructions os to what to click and what to look for? https://www.loom.com/share/5f155e209111469cb89c3b97aa8f265b |
Hi Misko, I am adding the steps to reproduce the issue. Dynatrace
Analysis : dynatrace uses window object to push data and trigger calls. Glaze
Analysis: This glaze issue is happening only when we have base href in the application |
Hi Misko, were you able to reproduce the issue with above steps? Please let me know if any more information is needed. FYI, By mistake closed this issue but re-opened it immediately. |
I am sorry, I got buried with other things. Still on my list. |
Still more work to do here... |
Hi Misko, Hope you are doing good. please let me know if the recent version has any fix related to this issue. |
Hey, I am currently traveling but should have time to look at this next
week.
…On Thu, Jan 12, 2023 at 9:14 AM Vasikaran B ***@***.***> wrote:
Hi Misko, Hope you are doing good. please let me know if the recent
version has any fix related to this issue.
—
Reply to this email directly, view it on GitHub
<#302 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3KT7KHGTUVNXVHTYQZYLWR6HJRANCNFSM6AAAAAASCJSUEY>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Hi Misko, is there any update on this, did you get a chance to look at it? |
Sorry, our focus currently is on Qwik. We would need someone to debug this further. |
Is your feature request related to a problem? Please describe.
We use multiple third-party analytics in our svelte application. We integrated partytown in our svelte app for executing those analytics scripts and calls through partytown but we were able to achieve it only for Google Tag Manager, we need to know if the same is possible for others.
Describe the solution you'd like
Just like the forward configs used for services like Google tag manager and facebook pixel, can we have any config feature/documentation for services like glaze, dynatrace, medallia, etc. if it is possible to trigger those respective calls through partytown.
Describe alternatives you've considered
We used text/partytown as type for downloding glaze script but only script execution is handled by partytown and the corresponding log calls are not triggered. Without out partytown if we run the script in main thread, the respective log calls are triggered as expected.
The text was updated successfully, but these errors were encountered: