Get insights into your Vonage implementation

Start collecting metrics & craft the best experience for your users Get started for free
+
Vonage

To integrate with Vonage, we need to load the SDK before it:

<!-- Load the sdk -->
<script src="//cdn.peermetrics.io/js/sdk/peermetrics.min.js"></script>

<!-- Then setup peer metrics -->
<script>
    (async () => {
        let peerMetrics = new PeerMetrics({
            apiKey: 'your api key',
            userId: '1',
            userName: 'Mary',
            conferenceId: 'room-1',
            conferenceName: 'Call at 4pm',
            appVersion: '1.0.0'
        })
        await peerMetrics.initialize()

        peerMetrics.addSdkIntegration({
            vonage: true
        })
    })()
</script>

<!-- Then load the OpenTok sdk -->
<script src="https://static.opentok.com/v2/js/opentok.min.js"></script>
<!-- First we need to set a special global option -->
<script>
    var PeerMetricsOptions = {
        wrapPeerConnection: true
    }
</script>

<!-- Load the sdk -->
<script src="//cdn.peermetrics.io/js/sdk/peermetrics.min.js"></script>

<!-- Load the OpenTok sdk -->
<script src="https://static.opentok.com/v2/js/opentok.min.js"></script>

Then inside your app, continue with the initialization

import { PeerMetrics } from '@peermetrics/sdk'

// initialize peer metrics
var peerMetrics = new PeerMetrics({
    apiKey: 'your api key',
    userId: '1',
    userName: 'Mary',
    conferenceId: 'room-1',
    conferenceName: 'Call at 4pm',
    appVersion: '1.0.0'
})
await peerMetrics.initialize()

// connect the two
peerMetrics.addSdkIntegration({
    vonage: true
})
    

Create rock solid products

The tool that every team needs to build the perfect WebRTC integration
  • Guess work in product
    Don't leave your development to guess work

    Crafting the perfect product is a challenge on its own. Adding WebRTC in the mix makes it even harder.

    Making sure you and your team have all the data you need to craft the best video/audio calling products.

    See how it works ›
  • Developer relaxing
    Fix problems before they appear

    Even with a perfect product, network conditions change. Make sure you have the tools to adapt and fix problems on the go. Your users will enjoy the seamless experience.

    See how it works ›
  • Happy support team
    Make sure your support team shines

    Your support should never guess what happened. Give them the tool to fix problems in real-time.

    See how it works ›

See what's happening in your calls

Gain insights for your team & craft the best experience for your users Get started for free