Hire Me!
Hire me for quality PHP, Python (Pylons), MySQL, Sqlite3, CSS, (X)HTML, Python and more coding projects. I have great feedback, you can look at my code on this site. I am fast and my code lasts. Currently No Openings for Coding Projects
If you have marketing, SEO or coding questions or concerns I also do some consulting. I only take clients that I think I can give a plenty of actionable steps to. Feedback has been really good. Send me a link to your site and info about your marketing strategy thus far and I will see if we are a good fit.
Hit me up on Skype: thrilling_victory
Premium Scripts
Working up to the Re-launch of CCenter. All current users will get a free upgrade!-
Recent Posts
- How to Make One Thousand Two Hundred Ninety Seven Dollars and Thirty Six Cents with DFHU
- How to Find High Quality and Affordable Programmers.
- When Should You Use a Web Framework Such as CakePHP, Pylons, etc…?
- Five More Free High PageRank/TrustRank DoFollow Links
- Catch More Juice With Link Circumcision
- The Ultimate Real Official Cheatsheet for Running Your User Generated Content Site.
- DFHU Quick Tip: Fighting Spam With User Exeperience Metrics
- DFHU Quick Tip: Save the Juice for Periodic Content
- A Mind For Converting Readers To Organic Linkers
- DFHU Quick Tip: Teaching Your Affiliates Through Keyword Bounty Hunting
- Trading Books and Stamps for Sophisticated, High-Yield Customers.
- Boiled Alive: Beating the Addition to Distraction, Confusion and Lack of Motivation.
- dfhuTip: Five Free High PR, High Trust Rank, DoFollow Links
- Kissing the Anvil for Four and Sixty Six Hours a Week
- (ab)using Apache’s `ab` Command to “multi-thread” PHP Files
I’m On Twitter
Pages
Categories
Archives
-
Thanks Commenters!
- Jerrold Gastelo on RSS Generator For Importing to Wordpress
- Raleigh Pest Control on Boiled Alive: Beating the Addition to Distraction, Confusion and Lack of Motivation.
- Victory on How to Find High Quality and Affordable Programmers.
- Nick on How to Find High Quality and Affordable Programmers.
- Underfloor Heating on When Should You Use a Web Framework Such as CakePHP, Pylons, etc…?
- Victory on The Ultimate Real Official Cheatsheet for Running Your User Generated Content Site.
- Josh-SEO Consultant on The Ultimate Real Official Cheatsheet for Running Your User Generated Content Site.
- Karl Foxley on The Ultimate Real Official Cheatsheet for Running Your User Generated Content Site.
Where You Been Web Analytics
What would you do if you had access to all your visitors browser history? You would know if they have already visited your affiliate programs landing page, your competitors, other sites in your campaign. You may be able to make an educated guess about their age, sex, level of affluence, ethnicity and interests. You could redirect, greet or sell differently to each visitor depending on where they have been.
Well with this free (BSD License) whereyoubeen script you can do pretty much that. Well more specifically you can get an answer YES or NO to if they visited a given page in a list of URLS your provided.
Where You Been
Is a collection of scripts that I have created to test a list of user provided URLs to see if they are in the visitors browser history the save them to a database.
Javascript (jQuery) is used to check the rendered color of links in a hidden DOM object to compare if they are the
a:visitedcolor or just the normalacolor.A
jQuery.ajax()call is made toPOSTthe array of visited links to a PHP script which then dumps them into a SQLite database.A simple stats script is also provided, which shows the frequency of users who have visited each of pages in your list given that they have visited at least one of the pages in your list.
Download WhereYouBeen
You can download the whereyoubeen tool ready to go right here. Note that it requires PHP5.2 with PDO/Sqlite support. PDO/SQLite comes standard with current binary builds of PHP. If you think your host isn’t running PHP5 try adding the following to your
.htaccessfileAddHandler application/x-httpd-php5 .php.Now lets look at how we can invoke the script in an php file to be show to surfers.
Calling Where You been. (index.php)
Thats pretty much it. You can edit
wyb-sites-to-check.txtto customize what EXACT URLS to check. The stats can be shown inwyb_stats.php.Onto The Code
Now for those that are interested, lets look at some of the files that make up the whereyoubeen tools.
The header, drags all the links to check into the javascript, and then calls the whereyoubeen been javascript function.
WYB Header (wyb_header.inc.php)
Running this on the
(index.php)above will give something like:Actualized (index.php)
NOTE: that this will not show every visit, but only on 1 visit per day. This is accomplished with a SQLite queue which is created using a
TRIGGER. The following shows the database schema. Running this script also clears out any data in the database.The Database Schema (wyb_makedb.php)
I didn’t comment this much, because SQL (being a functional language and all) is pretty easy to read directly. When you are testing a new setup, you can run this script inbetween visits to clean out the user data (so
wyb_header.inc.phpwill fire off). Otherwise, you could usesqlite3command line client to delete manually.Manually deleting user data with SQLite
The code for getting
wyb_urls_get.inc.phpand savingwyb_urls_save.inc.phpare not really that interesting, they are well commented and if you have questions you can post them in the comments.Now looks look at the javascript, remember that this requires jQuery.
Pseudo-Searching Browser History (js/whereyoubeen.js)
The highlights of the script are to create visited and unvisited links, to calibrate for color. The rendered color is a tell-tale sign of weather a users has visited a given page or not.
The script then uses an
AJAXto send the data to PHP which in turn sends it off to the SQLite database.I really need feedback from you.
If you are technical I would love for you to point out any bugs or issues you see. I also like to chat about coding styles and idioms so feel free to post that flavor of discussion too.
If you are not technical then let me know if you had any problems setting up the script and any cleaver ideas of how to use this very juicy information.
There are countless mods and possibilities for these tools, I would love to hear your ideas on what this could be used for. If its simple enough i might implement it for free and put it on here, if its more involved we can work out a fair price for private coding work.
This is given with a BSD license so you can use it in your commercial projects and distribute it on your website (I just ask for link back to me dfhu.org).