Using the Video Player API, you can create simple ID tagging that passes user info into your Wistia stats. Your two options for executing this is:
- using the
wemail=URL query string
- a separate function using the trackEmail embed option.
The custom query string URL approach produces a link like this:
If you have access to the user's email address (through log-in or form submittal, etc.) you can replace the `firstname.lastname@example.org` string with this information.
The new Wistia API embeds includes an option to track the viewer's email when they watch the video. This process is predicated on there being a variable available on the client-side for tracking emails (ie. after they log in, their user info is tracked in a cookie).
Inside the embed code, you will see a snippet that appears like this:
We will be adding the
trackEmail embed option:
The variables for Wistia video hashed ID (
bfc34aa023) and email address (
UserEmail) need to be updated to reflect your embedded video ID and the variable of your identifiable user information.