Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > What is this piece of javascript doing?

Reply
Thread Tools

What is this piece of javascript doing?

 
 
Eqbal
Guest
Posts: n/a
 
      10-01-2004
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>
 
Reply With Quote
 
 
 
 
Hywel
Guest
Posts: n/a
 
      10-01-2004
In article <(E-Mail Removed) >, 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/
 
Reply With Quote
 
 
 
 
!lurk
Guest
Posts: n/a
 
      10-01-2004
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.

 
Reply With Quote
 
Hywel
Guest
Posts: n/a
 
      10-01-2004
In article <(E-Mail Removed) .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/
 
Reply With Quote
 
Fred Oz
Guest
Posts: n/a
 
      10-02-2004
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.
 
Reply With Quote
 
Hywel
Guest
Posts: n/a
 
      10-02-2004
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/
 
Reply With Quote
 
Michael Winter
Guest
Posts: n/a
 
      10-02-2004
On Sat, 02 Oct 2004 11:49:23 +1000, Fred Oz <(E-Mail Removed)> 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.
 
Reply With Quote
 
Eqbal
Guest
Posts: n/a
 
      10-06-2004
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?
 
Reply With Quote
 
Michael Winter
Guest
Posts: n/a
 
      10-07-2004
On 6 Oct 2004 12:48:00 -0700, Eqbal <(E-Mail Removed)> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Download a file piece by piece Patrick Plattes Ruby 2 11-30-2006 07:48 PM
Getting the coordinates of a piece of text with Javascript? sasperilla Javascript 2 02-22-2006 06:06 PM
Airlink101 PCI cards, AVOID!! Piece of Garbage!! lasurfer25@yahoo.com Wireless Networking 0 07-22-2005 02:44 AM
Thunderbird - What a piece of **** coyote2@donotemail.com Firefox 24 03-07-2005 11:09 AM
How to Specify CSS for a JavaScript Piece? bdwise Javascript 1 11-05-2003 10:59 PM



Advertisments