Analytics

How to Use JavaScript Embed Code to Enable User Analytics

Learn more about How to Use JavaScript Embed Code to Enable User Analytics in Cincopa.

Get a deep understanding of how your viewers engage with your live events by adding user data to your analytics. For content creators who own member sites, this enables them to access the engagement data of individual users from the analytics to gauge and predict member retention.

Video Cover - How to use Javascript embed code to enable user analytics

Get Started

Embed your live stream player with JavasScript

  • Log into your Cincopa account.
  • Go to Account Dashboard.
  • Click on Live Streams on the side panel.
  • Set up a live stream to get started.
  • Click on EMBED and find the JavaScript embed code under REGULAR.
  • Click Copy Embed Code and paste it at the page where you want the live stream to be embedded.
Copy JavaScript Embed Code
🔖 Related Resource • How to start live streaming with Wirecast • How to start live streaming with OBS
Copy Javascript embed code

Add user data to track video views with JavaScript

Adding user data to your JavaScript embed code allows you to track and search for a specific user’s engagement with the live stream. You can access live analytics to view the data.

  • Copy the JavaScript embed code and paste it into your desired destination page.
  • Insert the code below into the JavaScript.

[ht_message mstyle="info" title="💡Pro Tip" show_icon="" id="" class="" style="" ]Insert a Server Tag here = {email:"john@debug.com",name:"John Doe",acc_id:"123456"} to dynamically pull user data into your analytics. [/ht_message]

  • Check out this CodePen example to learn how to add user data to your analytics.
How to Use JavaScript Embed Code to Enable User Analytics