What is this piece of javascript doing?

E

Eqbal

I have been asked to include this piece of code on certain pages so
people can track if a user is coming to that page after clicking a
banner ad. I do not understand how this works. Anyone can explain? I
don't want to put code on a page I am responsible for without
following how it works.

Thanks.

<div id="lyrDart">
<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Creation Date:10/09/03 -->
<SCRIPT language="JavaScript">
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<IMG
SRC="http://ad.doubleclick.net/activity;src=865004;type=plasm176;cat=pro50470;ord=1;num='+
a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
</SCRIPT>
<NOSCRIPT>
<IMG SRC="http://ad.doubleclick.net/activity;src=865004;type=plasm176;cat=pro50470;ord=1;num=1?"
WIDTH=1 HEIGHT=1 BORDER=0>
</NOSCRIPT>
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->
</div>
 
H

Hywel

Eqbal said:
I have been asked to include this piece of code on certain pages so
people can track if a user is coming to that page after clicking a
banner ad. I do not understand how this works. Anyone can explain? I
don't want to put code on a page I am responsible for without
following how it works.

It looks like it generates a random URL every time the image is loaded.
 
L

!lurk

What Hywel said, but it does that so the URL will not be cached. This
helps ensure that the number of impressions counted will be accurate.
 
H

Hywel

! said:
What Hywel said, but it does that so the URL will not be cached. This
helps ensure that the number of impressions counted will be accurate.

Yup - that's what I meant to say.
 
F

Fred Oz

If the user has images turned off in their browser, does DoubleClick
still count the hit?

Fred.
 
M

Michael Winter

[snip]
If the user has images turned off in their browser, does DoubleClick
still count the hit?

No. The request for the image will never be made so they'll never know the
page was visited by that user.

Mike
 
E

Eqbal

Since this script is always present on the page, how does the tracker
distinguish if the hit is from their banner ad and not just someone
navigating to the page by some other means?
 
M

Michael Winter

Since this script is always present on the page, how does the tracker
distinguish if the hit is from their banner ad and not just someone
navigating to the page by some other means?

I'm afraid I don't follow the last part of your question. Trackers
generally don't distinguish anything at all. They just count accesses.

Mike
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top