1. Help
  2. Analytics
  3. How to Use JavaScript Embed Code to Enable User Analytics

How to Use JavaScript Embed Code to Enable User Analytics

Test Test

Cincopa WordPress plugin

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

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.

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.
🔖 Related Resource

  • Click on EMBED and find the JavaScript embed code under REGULAR

Copy JavaScript Embed Code

  • Click Copy Embed Code and paste it at the page where you want the live stream to be embedded.

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.
<script type=“text/javascript”>
var cincopa = cincopa || {};
cincopa.analytics = {email:“john@debug.com”,name:“John Doe”,acc_id:“123456”};
</script>
💡Pro Tip

Insert a Server Tag here = {email:”john@debug.com”,name:”John Doe”,acc_id:”123456″} to dynamically pull user data into your analytics.

  • Check out this CodePen example to learn how to add user data to your analytics. 

Was this article helpful?