Integrating Your Wistia Stats into Your Clicky Account
Clicky Web Analytics are a great tool to track your webpage or blog's real-time performance with a variety of metrics. We use their dashboards to track visitors, how they found us, and what actions they are taking on our sites. For more on this, check out our blog post on reasons we love Clicky.
Using some simple javascript, you can add video view tracking to your content dashboard in Clicky. Let's get started!
Step 1. Embed Your Video into a Public Webpage
The first step is using the embed codes for your video to display it on your webpage (or blog, e-commerce site, etc.) For more info on this, please check out our documentation on embedding your videos.
Step 2. Add Clicky Tracking to Your Page
The next step is creating an account with Clicky and adding your website to your account tracking. To create Clicky account, head over to the Clicky website.
Once you have your account set up, adding a website to track is easy to do. Starting on your Clicky user profile (which you can find at https://secure.getclicky.com/user), click the “Add New Site” button.
Enter the site URL into the box, as shown here.
On the submission page, check to be sure your information is correct, and enter any custom settings into the “Advanced Settings” page. Then, click the link to the tracking code page.
On the tracking code page, select and copy the code, and paste it into the HTML on your webpage. You're all set and ready to start tracking real-time stats using Clicky!
Step 3. Start Tracking Video Views With Clicky
It's time to start tracking video views in your Clicky dashboard. We've created a simple Javascript function to help you do this. This code should follow each Wistia embed on your page, updated with the ID #, URL, and title of the video.
Copy-able version:
<script type="text/javascript">
var playInterval = setInterval("logClickyPlay()", 500);
function logClickyPlay() {
if (window.document['wistia_181279'].getCurrentState() != -1) {
clearInterval(playInterval);
clicky.video('play',0, 'http://wistia.com/clicky-test.html#video', 'Slimlist Video');
}
}
</script>
There are a few parts that need to be modified to be usable for your page:
- the text in red reflects the ID of your Wistia video. This is found in your embed code in the “id” parameter (near the very beginning of your embed code)
- the text in blue reflects the URL and title of the video (for display in the stats). We recommend using the URL of the page with '#video' added on the end to show that it is actually video.
bonus: to track the finish viewing stats as well, use our “endvideocallback” parameter.
Step 4. Check Your Stats
To find your video view stats in your Clicky account, select the “Content” tab from the left-hand bar, and then select “video”. Your video stats should now appear!
If you have any questions about integrating video view stats into your Clicky account dashboard, drop us an email at support@wistia.com



