all of the latest news and juciest gossip. geek cred. works in progress and completed stuff. i play well with others. everything you ever wanted to know. drop me a line.
RSS
advertising · development

Delayed tracking pixels

Wednesday, February 3rd, 2010 //0 comments

I ran in to a situation at work today where an advertiser, wanting to place a tracking pixel on a sponsored piece of Web content, only wanting to know about visitors who have been on the page containing the content for at least one minute. The advertising system we use doesn’t offer a solution for this out of the box and I didn’t think it would be terribly difficult to make happen, but was surprised to not find any quick how-to guides anywhere.

The code snippet below outputs markup to a visitors browser 60 seconds after the page they are viewing loads. It was tested in Doubleclick’s Dart for Publishers as a piece of custom creative targeted to a ad zone used exclusively by the piece of sponsored content:

<script languagage="Javascript">
/* %u - keep Dart from complaining about no url */
setTimeout("firePixels()", 60000); //60 second delay
function firePixels(){
	var tStage = document.getElementById('trackerstage');
	if (tStage){
		tStage.innerHTML = "<img src=\"http://www.100781.org/happles.jpg\">";
	}
}
</script>
<div id="trackerstage"></div>

This solution worked perfectly, after replacing my test image with the advertiser’s tracking pixel, of course. This is also simple enough that it should be able to work just as well when delivered by any advertising system. Have a similar solution or tip? Share!

Uncategorized

Latina.com 2010 Refresh

Sunday, January 24th, 2010 //0 comments

Latina.com underwent a bit of a refresh earlier this month. Cameron Moore, Latina’s Web Developer and I, along with the guys at Limachips put a ton of work in to the project over the past few months, and it was great seeing the newly refreshed layout go up smoothly.

Continue Reading…

development · projects · web apps

GiFEED – RSS to animated GIF PHP Script

Sunday, January 24th, 2010 //0 comments

GiFEED is a small PHP script that takes titles from an RSS feed and uses them to build an animated Gif file for use in email signatures, forum posts, and just about anything else that you can think of.

I originally put this together back in 2007 and completely forgot it even existed, but recently found it while going through some old files. I think this is the very first script I wrote in PHP, not too long after beginning at Latina. Beforehand, virtually everything I had been working on was based on Microsoft languages and tools. This was a way to start working with something new and now that I look at it a few years later, I think it’s still pretty sweet.

Granted, it isn’t the cleanest script in the world, but it does work and I think I’m going to rewrite it in the near future. Anyway, check it out and let me know if you use it for something.

about 100781.org
Ten Seven Eighty-One is the online playground of Matthew F. Fox, netadmin, designer, confectioner, music snob and all around geek. Read more
·ADVERTISEMENT·
September 2010
S M T W T F S
« Aug    
 1234
567891011
12131415161718
19202122232425
2627282930