Hello,

Is there a way to make a background image/skin clickable and trackable via a pixel tracking url?

Right now I have the background image set up through css:

body {
background: url(IMAGE URL) no-repeat;
background-position:top center;
background-attachment:fixed;
}

Thanks,
George

Recommended Answers

Hi

Ad this to your code:

background-image:url(http://yourlink.com);
Jump to Post

All 3 Replies

thanks but that just calls the click through url for the image and displays blank

I've only got a partial answer for you since I've never used pixel tracking (guessing it's for tracking site traffic and stuff?). You could add a click event listener on the body element and then manually update the information for the pixel tracker based upon the mouse location, this would be similar to using an image map on a regular image but you would have to keep track of zones and determine what zone the mouse is in. Are you using the yahoo pixel tracking stuff?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.