Your data. Anywhere you go.

New Relic for iOS or Android

Download on the App Store    Android App on Google play

New Relic Insights App for iOS

Download on the App Store

Learn more

Close icon

Disable and js-agent.js based on country


It appears that New Relic’s browser tracking injects js-agent.js and Because these are hosted externally, and aren’t in the China firewall, the performance is very poor. Sometimes taking 3 minutes, while other times only taking milliseconds. This is common for China files hosted outside of the China firewall.

Is there any way I could remove these files programmatically, but only for people inside china, or on our China website? Our install is on a Windows Server, and uses the sames IIS website/infrastructure as the other websites.



Hi, @palkema: This is not a feature that New Relic provides, but it may be possible to programmatically inject or omit the JavaScript agent on the server, based on the country from which the request originated. Which programming language are you using for your web application?