Analytics
Use Your User IDs in Analytics
Use your own user ID in DynTube analytics by adding data-user-id to the embed container. This maps accepted playback analytics back to users in your application. The feature is available on Plus and larger plans when custom user analytics is enabled for the account.
example
<div data-dyntube-key="FaHlYoSDF45hH8Q"></div>You can change it to:
example
<div data-user-id="YOUR_USER_ID_HERE" data-dyntube-key="FaHlYoSDF45hH8Q"></div>DynTube records an accepted identifier as clientUserId in analytics results, so use a stable ID from your own system rather than an email address or other personal data.
Related Pages
- Get video analytics to query analytics records containing clientUserId.
- Plain JavaScript events and methods if you need client-side player events in addition to server analytics.
- How to embed videos and channels dynamically for dynamic embed workflows.
Something missing or wrong here? Tell us and we will correct it. New to DynTube? Start with uploading and embedding.