New Relic video tracking for CAF Receivers.
This video monitor solutions can work both, on top of New Relic's Browser Agent or standalone.
Install dependencies:
$ npm install
And build:
$ npm run build:dev
Or if you need a production build:
$ npm run build
Load scripts inside dist
folder into your page.
<script src="../dist/newrelic-caf.min.js"></script>
If
dist
folder is not included, runnpm i && npm run build
to build it.
If NOT using the New Relic Browser Agent, add this line of code:
nrvideo.Core.setBackend(new nrvideo.NRInsightsBackend("ACCOUNT ID", "API KEY"));
To initialize the backend you need an ACCOUNT ID and an API KEY.
The ACCOUNT ID indicates the New Relic account to which you would like to send the Chromecast data. For example, https://insights.newrelic.com/accounts/xxx. Where “xxx” is the Account ID.
To register the API Key, follow the instructions found here.
Finally, init the CAF tracker:
nrvideo.Core.addTracker(new nrvideo.CAFTracker());
Check out the samples
folder for complete usage examples.
- When not using the New Relic Browser Agent, some attributes are missing, like
ASN
orcountry
. See the full list here. - Due to the way the chromecast player works, when an
END
happens, thecontentSrc
attribute is incorrect.
New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR DEDICATED SUPPORT. Issues and contributions should be reported to the project here on GitHub.
We encourage you to bring your experiences and questions to the Explorers Hub where our community members collaborate on solutions and new ideas.
We encourage your contributions to improve New Relic CAF Tracker! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.
A note about vulnerabilities
As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.
If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.
New Relic CAF Tracker is licensed under the Apache 2.0 License.