Hi all! I’ve instrumented a React app using the Browser monitoring agent. I’m already tracking some custom events with Mixpanel but I’d like to do the same just with New Relic. I found that there is a setCustomAttribute method that might send custom events and make afterwards my queries for this goal.
The documentation talks about use the
newrelic.setCustomAttribute object but the problem is that it isn’t available into my React app due to the only reference to New Relic I have is injected into the HTML Header as describes there, so what can I do in order to get access to the
newrelic object inside my React app? There is the New Relic NPM package which I think is just to instrument NodeJS applications and not to access to New Relic JS api
Otherwise, is there any method to capture the Mixpanel custom events by New Relic?