Using the Cincopa platform not only has great features but also helps its users to get access with a wide variety of API’s that they can use with our help.
The API’s provided by Cincopa will help them to use all the features of Cincopa and customize it to match their website needs.
In this article, we will discuss the Analytics JS API – Passing User Info, which is helpful to gather specific users access to your media.
Why use Analytics JS API – Passing User Info?
Customer’s such as subscription websites, SaaS Platforms, or shopping sites who has their viewer’s information can pass the viewer Email, name and ID (or other types of unique id if privacy is a concern) to have that information available on the Cincopa Analytics and Viewing Reports.
Another example, when you have your own login system and you want to be able to track your users by Name/Email/acc_id on Cincopa analytics can then just add this line of code that set cincopa.analytics.
The user data you set will be sent with every video view to Cincopa, that way later you can access the analytics and search for a view of a specific user.
How to use Analytics JS API – Passing User Info?
Firstly, we have to use the HTML code mentioned below and then add them to your website.
This HTML code will display on your Cincopa Gallery.
As per your company website you should be able to gather the name, email, id then pass it onto cincopa.analytics. In the example, below we have added it manually.
See the Pen
How to add user data to analytics ? by oren (@cincopa)
Check analytical data
Once all the above-mentioned codes are added to your website and if a video is played then you will see the analytics data in your Cincopa account.
To check the analytics data, follow these steps:
Log in to your Cincopa account by accessing https://www.cincopa.com and then click on Analytics.
Once you access the Analytics Page, click on Live Feeds and you will see the data of John Doe that we added using the above-mentioned API.