Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悶] Some URLs aren't sent via the URL resolver (Google Analytics) #525

Open
craigrileyuk opened this issue Jan 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@craigrileyuk
Copy link

Describe the bug

The project I'm working on is using Partytown to achieve two goals:

  1. Improve page-load speeds
  2. Avoid scripts being automatically blocked by browsers

The first part is working fine. The second part is mixed.

When integrating Google Tag Manager, the requests for www.googletagmanager.com are sent through the resolveUrl callback configured on the frontend, but when using Google Analytics, there's a request sent out to https://region1.google-analytics.com/g/collect which doesn't pass through the callback and so cannot be proxied.

It still works, but it is vulnerable to browser blocking which I'd like to avoid.

Reproduction

N/A

Steps to reproduce

Follow the guide for Google Tag Manager integration.

Add Google Analytics stream with GTM.

Browser Info

Firefox, Chrome

Additional Information

No response

@craigrileyuk craigrileyuk added the bug Something isn't working label Jan 2, 2024
@j0Shi82
Copy link
Contributor

j0Shi82 commented Feb 19, 2024

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 help without further information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants