473,394 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1580
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: tin | last post by:
<script language="Javascript"> <!-- function apri (theURL,winName,features){ window.open (theURL,winName,features); var a=null; oldwindow = window.self; oldwindow.opener = window.self;...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
18
by: __PPS__ | last post by:
Hello, I'm a university student and I'm preparing for my final today. I'm reading course notes, I found completely strange piece of code. It makes me laugh, I think the teacher needs to prepare...
4
by: naknak4 | last post by:
Introduction This assignment requires you to develop solutions to the given problem using several different approaches (which actually involves using three different STL containers). You will...
3
by: Oliver Marshall | last post by:
Hi chaps, I just need a widget of php if anyone has somethign similar to hand. I need to create a .php file that will take an input (&type=xxx or yyy), run a piece of javascript in the browser...
16
by: SirG | last post by:
I'm looking for an explanation of why one piece of code works and another does not. I have to warn you that this is the first piece of Javascript I've ever written, so if there is a better way or a...
10
by: Enkidu | last post by:
Beginner question, sorry! I am using indexers to access an array of StringBuilders in an instance of a class: Getting: value = board1; Setting: board1 = value1 ;
12
by: Marc | last post by:
Comming from JSP-HTML when I hear 'script' I think of JavaScript or perhaps VBScript. But I think in ASP.NET they mean something else? I am bit confused now. Reading a book I see the following:...
1
by: jerry101 | last post by:
hi, i stumbled accross a piece of coding in the between the <head> tags where you normally put your keywords etc and one website i saw had this piece of javascript there. <script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.