471,338 Members | 1,019 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

What is this piece of javascript doing?

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>
Jul 23 '05 #1
9 1514
In article <6c**************************@posting.google.com >, Eqbal
says...
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.

--
Hywel

http://sponsorhywel.org.uk/
Jul 23 '05 #2
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.

Jul 23 '05 #3
In article <10**********************@k26g2000oda.googlegroups .com>, !
lurk says...
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.

--
Hywel

http://sponsorhywel.org.uk/
Jul 23 '05 #4
Hywel wrote:
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.


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

Fred.
Jul 23 '05 #5
In article <415e09ea$0$26034$5a62ac22@per-qv1-newsreader-
01.iinet.net.au>, Fred Oz says...
Hywel wrote:
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.


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


Perhaps. An image will still be displayed.

--
Hywel

http://sponsorhywel.org.uk/
Jul 23 '05 #6
On Sat, 02 Oct 2004 11:49:23 +1000, Fred Oz <oz****@iinet.net.au> wrote:

[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

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #7
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?
Jul 23 '05 #8
On 6 Oct 2004 12:48:00 -0700, Eqbal <za********@yahoo.com> wrote:
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

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #9
> On 6 Oct 2004 12:48:00 -0700, Eqbal <za********@yahoo.com> wrote:
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?


Perhaps the banner counting code isn't always inserted.

Robert
Jul 23 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by tin | last post: by
121 posts views Thread by typingcat | last post: by
18 posts views Thread by __PPS__ | last post: by
3 posts views Thread by Oliver Marshall | last post: by
16 posts views Thread by SirG | last post: by
10 posts views Thread by Enkidu | last post: by
12 posts views Thread by Marc | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.