What is this piece of javascript doing?

Discussion in 'Javascript' started by Eqbal, Oct 1, 2004.

  1. Eqbal

    Eqbal Guest

    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>
     
    Eqbal, Oct 1, 2004
    #1
    1. Advertising

  2. Eqbal

    Hywel Guest

    In article <>, 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/
     
    Hywel, Oct 1, 2004
    #2
    1. Advertising

  3. Eqbal

    !lurk Guest

    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.
     
    !lurk, Oct 1, 2004
    #3
  4. Eqbal

    Hywel Guest

    In article <>, !
    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/
     
    Hywel, Oct 1, 2004
    #4
  5. Eqbal

    Fred Oz Guest

    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.
     
    Fred Oz, Oct 2, 2004
    #5
  6. Eqbal

    Hywel Guest

    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/
     
    Hywel, Oct 2, 2004
    #6
  7. On Sat, 02 Oct 2004 11:49:23 +1000, Fred Oz <> 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.
     
    Michael Winter, Oct 2, 2004
    #7
  8. Eqbal

    Eqbal Guest

    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?
     
    Eqbal, Oct 6, 2004
    #8
  9. On 6 Oct 2004 12:48:00 -0700, Eqbal <> 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.
     
    Michael Winter, Oct 7, 2004
    #9
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Samuel Lee
    Replies:
    1
    Views:
    660
    Benjie Fallar
    Jul 25, 2003
  2. bas jaburg

    How long is a piece of string?

    bas jaburg, Feb 26, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    334
    bas jaburg
    Feb 27, 2004
  3. Patrick Plattes

    Download a file piece by piece

    Patrick Plattes, Nov 30, 2006, in forum: Ruby
    Replies:
    2
    Views:
    237
    Patrick Plattes
    Nov 30, 2006
  4. bdwise
    Replies:
    1
    Views:
    108
    Lasse Reichstein Nielsen
    Nov 5, 2003
  5. sasperilla
    Replies:
    2
    Views:
    122
    sasperilla
    Feb 22, 2006
Loading...

Share This Page