473,657 Members | 2,509 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="JavaS cript">
var axel = Math.random()+" ";
var a = axel * 10000000000000;
document.write( '<IMG
SRC="http://ad.doubleclick. net/activity;src=86 5004;type=plasm 176;cat=pro5047 0;ord=1;num='+
a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
</SCRIPT>
<NOSCRIPT>
<IMG SRC="http://ad.doubleclick. net/activity;src=86 5004;type=plasm 176;cat=pro5047 0;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 1608
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************ **********@k26g 2000oda.googleg roups.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$260 34$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.n et.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********@yah oo.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********@yah oo.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
1838
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; oldwindow.close(); } -->
121
10025
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 support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
18
2257
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 herself for this course. so I ask for your point of view. here's the piece of code: Memory management by client!! // Listing 9.4. Memory management by client rather than by server object
4
2192
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 implement all three techniques as programs. In these programs, as well as solving the problem, you will also measure how long the program takes to run. The programs are worth 80% of the total mark. The final 20% of the marks are awarded for a...
3
1326
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 (its the google analytics javascript which i have here) and then send the user to download either Install1.exe or Install2.exe depending on the value of 'type'.
16
1904
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 simpler answer, by all means show me the light! What I'm trying to do is refresh the page at a timed interval ( actually redirect the page... ) and I have a simple piece of code I got from the net that works, but I need to modify it a little...
10
1920
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
1737
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: A simple Web page may look like the following. <!-page directives--> <%@ Page Language="VB" %>
1
2374
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 language="JavaScript" type="text/javascript"> <!-- //Keyword search function function searchfocus() { searchform.Query.focus(); }
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.