Tracking a Gif or Jpeg image

Posted on 2011-10-20
Last Modified: 2013-11-19

I need to place some advertising with an ad network, however the only format that they will accept is an image file (gif or JPEG) and a clickthru URL. However I want to make sure that I can see where my advertising is being placed and be able to count impressions.  I have a tracking pixel similar to this one:

<script type='text/javascript' src=''></script>

However because there is no way to give them a redirect tag (i.e. a doubleclick tag) I can't implement this.  It is no good trying to append this to the Click URL as I need to keep track of impressions - not clicks.

Is there a way that I can embed this pixel/code into the image, or another work around?

I'm really stuck and I don;t want to spend my money unless I can track, and I don't want to rely on or trust the stats of the network.

Question by:eezar21
    LVL 28

    Expert Comment

    Your best option is to give a URL to the image directly and set up web site monitoring tools to count the number of loads on that image. You "cannot" embed code into an image. That would be a HUGE security flaw. The reason I quoted cannot is because there was a flaw in JPEG files with IE that would allow javascript code to execute but it has since been patched.

    Author Comment

    Yeah, sadly the only option I have is to upload either a Gif, JPEG or PNG, and not a URL.

    LVL 28

    Accepted Solution

    Then what you are trying to do, cannot be done. Sorry.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    Read about why website design really matters in today's demanding market.
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    In this Micro Tutorial viewers will learn the basic shortcuts and functions in InDesign.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now