Eventvisor

Third-party integrations

module-newrelic-browser

New Relic Browser module allows integrating Eventvisor SDKs with New Relic Browser.

Installation

Install with npm in your application:

Command
$ npm install --save \
@eventvisor/sdk \
@eventvisor/module-newrelic-browser

Setting up

And then set it up when initializing the SDK:

import { createInstance } from "@eventvisor/sdk";
import { createNewrelicBrowserModule } from "@eventvisor/module-newrelic-browser";
const eventvisor = createInstance({
modules: [
createNewrelicBrowserModule(),
]
});

The module will expect window.newrelic to be available globally in the browser, which you may also optionally pass to the module:

const eventvisor = createInstance({
modules: [
createNewrelicBrowserModule({
nr: window.newrelic,
}),
]
});

Usage example

In your destination definition:

destinations/analytics.yml
# ...
transport: newrelic-browser
Previous
Mixpanel