Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

sj3vans on "How to embed Wistia video iFrame link with user tracking"

$
0
0

I can't seem to figure this out. Perhaps someone can direct me how I need to get it going.

On our homepage at vistaone.tv, you can see that when I place the following link in a post, it embeds the video in an iframe such that it can play in place, without leaving the page, which I like a lot:

http://vistaone.wistia.com/medias/lyxk4fqan6?embedType=iframe&videoWidth=640

But I wanted to add a tracking parameter so I can find out who watched the video based on their WordPress login (I'm also using S2member). When I tried to embed the currently logged in user's email, it no longer displays the iFrame. Here's what I've tried:

<?php
global $current_user;
get_currentuserinfo();
echo 'http://vistaone.wistia.com/medias/lyxk4fqan6?embedType=iframe&videoWidth=640&wemail=' . $current_user->user_login; ?>

The substitution works, but I see the actual link instead of the video in an iFrame.

Any suggestions?


Viewing all articles
Browse latest Browse all 8245

Trending Articles