Clear Pixel Tracking

Discussion in 'HTML' started by Chad, Nov 17, 2005.

  1. Chad

    Chad Guest

    I'm trying to implement Clear Pixel Tracking so that we can track which
    customers get to the confirmation page of an affiliate site. I'm
    supposed to deliver to them a URL with our domain that looks like this:

    <img src="https://www.mydomain.com.com/url?campaign=25&env=PRD" width=1
    height=1 border=0>

    That's fine, but my question is: what are the different methods I can
    use on our side to track the pixel hit? What do the marketing
    companies like doubleclick do to track a pixel hit almost instantly?

    Thanks!

    Chad
     
    Chad, Nov 17, 2005
    #1
    1. Advertising

  2. Chad

    Toby Inkster Guest

    Chad wrote:

    > <img src="https://www.mydomain.com.com/url?campaign=25&env=PRD" width=1
    > height=1 border=0>
    >
    > That's fine


    No it's not. Try:
    http://www.mydomain.com.com/url?campaign=25&amp;env=PRD
    ^^^^(1) ^^^^^(2)

    1. Many browsers will bring up a warning dialogue if a page contains a
    mixture of HTTP and HTTPS objects.

    2. Ampersands in HTML must be escaped.

    > but my question is: what are the different methods I can use on our
    > side to track the pixel hit?


    Easiest would be to make "url" some script in a language of your choice
    that increments a counter stored in a database somewhere, and then prints
    out a transaparent GIF (with the correct MIME type of course).

    You might be able to speed it up a little by storing your count in a flat
    file instead of a database, but then you'll need to worry about file
    locking: to make sure that simultaneous writes to the file don't break
    things. (With an SQL database, the SQL engine takes care of these little
    intricacies itself.)

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
     
    Toby Inkster, Nov 17, 2005
    #2
    1. Advertising

  3. Chad

    Wÿrm Guest

    "Chad" <> kirjoitti
    viestissä:...

    <snip>

    > That's fine, but my question is: what are the different methods I can
    > use on our side to track the pixel hit?


    Tracking hits to 1x1 pixel is not really that reliable at all. Some software
    firewalls have option to "remove web bugs" (for example ZoneAlarm pro) so it
    would strip your 1x1 pixel images happily off and you would not see any hit
    from those at all.
     
    Wÿrm, Nov 17, 2005
    #3
  4. Chad

    Chad Guest

    Yes I can easily write a small script to handle the hit. That's what I
    was looking for. No need for flat file, mysql will work fine.

    The URL issues are minor that was just a quick example I typed up.

    Thanks for your help,
    Chad
     
    Chad, Nov 22, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sangeeta

    Pixel Width of Char in Web App

    Sangeeta, Aug 14, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    1,101
    Jerry III
    Aug 15, 2003
  2. Kirk Graves

    point to pixel conversion

    Kirk Graves, Mar 4, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    19,196
    Kirk Graves
    Mar 4, 2004
  3. David

    Response.Clear() doesn't clear

    David, Jan 31, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    1,067
    Mark Fitzpatrick
    Jan 31, 2008
  4. André Wagner

    Fastest pixel by pixel operation

    André Wagner, Mar 17, 2008, in forum: Java
    Replies:
    12
    Views:
    1,058
    Larry A Barowski
    Mar 19, 2008
  5. InvalidLastName

    Unrecognized element 'add' after <clear></clear>

    InvalidLastName, Feb 26, 2007, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    1,008
    Steven Cheng[MSFT]
    Mar 6, 2007
Loading...

Share This Page