Jump to content


Photo

Video Upsell three time use token with analytics

php analytics tokens

  • Please log in to reply
1 reply to this topic

#1 l3l00

l3l00

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 16 July 2013 - 12:11 AM

 Hey there, sorry if this is in the wrong section. Basically what I want to do is have a link via email when it comes to a product reminder that they purchased this expensive item I am selling, while the link will take them to this free for three times use video to watch as a thank you for still sticking with the purchase.

 

 I do not want this video to get out, like if the person goes to the url, they cannot copy and paste the url to all their friends to watch the video for free. So it does have a cap on it, also would like to monitor if the button was ever gone to, how much of the video was watched, etc.

 

Just want to get some ideas from everyone to get a better picture as to where I should start...



#2 gizmola

gizmola

    Advanced Member

  • Administrators
  • 3,967 posts
  • LocationLos Angeles, CA USA

Posted 23 July 2013 - 07:08 PM

This is a fairly standard type of request.

You will need a database table, where there is a row for each customer that gets inserted. This row can include the data purchased and their email, along with any other information you have on that that would be pertinent historically.

This same row can store the number of views, starting with 0.

The script that renders the video will lookup the correct row in the database using a url like this:

yoursite.com/showvideo?id=........

Where id will be a hash that is stored and indexed in each customer row. I would recommend an md5 or sha1 hash based on some random data. The insert script should take care of this, as well as storing the user and probably sending out the email.

When the script runs, it will verify the user, render out the player and stream the video. It's important that the video stream is also delivered programmatically via a script, so that people can not simply pull it off the server. In other words, it needs to be somewhere on the server that is not web accessible and should only be delivered as a source to the player if the access checks were added and passed. This 2nd delivery script should increment the number of views.

3 is a really small number, and I'd recommend you reconsider the delicate balance between pleasing your customers and being overly concerned about people who might want to take advantage. Is it worth upsetting one A quality customer who has a wonky browser and internet connection, just so you can stop a few people from watching a video associated with your product? I'd recommend being a lot more generous with views (10 at minimum) before you cut someone off, and just so you know, there will always be people who download your video.

I have to point this out, because these players are just code and the mechanics of delivering a video are complicated, and easily reverse engineered by people who know what they are doing.

I'd recommend using the longtail video player as it makes hooking up to the events system in Google analytics, which will allow you to track the percentage of video watched. See: http://www.longtailv...ogle-analytics/

Hope this helps you get started.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com