question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to load analytics from a third party domain

See original GitHub issue

Environment

Name Version
msw latest
browser Chrome Canary
OS macOS

I’m using the rest-react example repository to create a working demo. My commit can be seen here

Current behavior

Following errors in the network and console tabs

Screen Shot 2020-08-11 at 11 03 57

Screen Shot 2020-08-11 at 11 04 24

Expected behavior

I expect the gtm.js request to be resolved and loaded successfully. Am I missing a way to make this happen? Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
simonsmithcommented, Aug 18, 2020

After some more testing I can now see this working fine. It was an unfortunate issue of an ad-blocker being enabled without me realising which explains it working correctly when viewed directly.

Apologies for wasting anyone’s time with this!

1reaction
kettanaitocommented, Aug 14, 2020

@simonsmith keep in mind that if a request is not handled (and your GTM request should be not), it will be performed as-is. This means that its URL must be valid. Double check if you are providing a valid GTM script URL, and that file exists at that path.

@marcosvega91, thank you 🙏 That would be awesome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Cross-Domain Tracking In Google Analytics
A troubleshooting checklist for Google Analytics cross-domain problems.
Read more >
29 Common Google Analytics Data Errors And How To Fix Them
Google Analytics data not showing all traffic or no view data? Here's why your data is wrong and how to fix the most...
Read more >
[GA4] Troubleshoot tag setup on your website - Analytics Help
The Google tag ID is incorrect · Click Data Streams and then select the web data stream for the website. · In the...
Read more >
Troubleshooting Analytics.js | Segment Documentation
Is data being transmitted to your third-party destinations? ... If Analytics.js fails to load, are callbacks not fired?
Read more >
Loading Third-Party JavaScript - web.dev
Reload the page and re-measure how long the page takes without loading these blocked third-party scripts. You should hopefully see an ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found