document.referrer question for tracking hits and visits

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • goks

    document.referrer question for tracking hits and visits

    I'm using document.referr er method for tracking visits on my site. But it
    seems that, when someone finds my site with google, this method returns
    only:
    "google.com/search?q=xxxxx" (good)
    or
    "google.com/search?hl=en" (bad)
    or
    "google.com/search?sourceid =navclient" (bad)

    That meens, it returns only first parameter sent to google. "hl" defines
    language and is used very often. BUT I want to see key words also (variable
    "q").
    Has anyone noticed that... or have any idea for the solution?

    Thanks

    Goran




  • kaeli

    #2
    Re: document.referr er question for tracking hits and visits

    In article <c906v8$jp$1@ba gan.srce.hr>, jasamtaj001@yah oo.com
    enlightened us with...[color=blue]
    >
    > That meens, it returns only first parameter sent to google. "hl" defines
    > language and is used very often. BUT I want to see key words also (variable
    > "q").
    > Has anyone noticed that... or have any idea for the solution?
    >[/color]

    My web server has a control panel that tracks all of that and more.
    Check with your web host to see if they have a stats area.

    document.referr er is not reliable.

    --
    --
    ~kaeli~
    Press any key...NO, NO, NO, NOT THAT ONE!!!!!!



    Comment

    • Andrew Thompson

      #3
      Re: document.referr er question for tracking hits and visits

      On Tue, 25 May 2004 15:19:11 -0500, kaeli wrote:
      [color=blue]
      > In article, jasamtaj001@yah oo.com enlightened us with...[color=green]
      >>
      >> That meens, it returns only first parameter sent to google. "hl" defines
      >> language and is used very often. BUT I want to see key words also[/color][/color]
      ....[color=blue]
      > My web server has a control panel that tracks all of that and more.
      > Check with your web host to see if they have a stats area.
      >
      > document.referr er is not reliable.[/color]

      I thought that is where the server got
      the information for the logs ..they will
      be the same information won't they?

      --
      Andrew Thompson
      http://www.PhySci.org/ Open-source software suite
      http://www.PhySci.org/codes/ Web & IT Help
      http://www.1point1C.org/ Science & Technology

      Comment

      • kaeli

        #4
        Re: document.referr er question for tracking hits and visits

        In article <1noyy94y08z7c. noklp04u3oj3$.d lg@40tude.net>,
        SeeMySites@www. invalid enlightened us with...[color=blue][color=green]
        > >
        > > document.referr er is not reliable.[/color]
        >
        > I thought that is where the server got
        > the information for the logs ..they will
        > be the same information won't they?
        >
        >[/color]

        Yes and no. Users (well, script kiddie types with nothing better to do)
        can modify the referrer if you rely on script. They can't change what
        the server sent in the headers. The OP was talking about getting the
        values from javascript.

        I meant that statement as an aside, though. I was mostly adressing the
        fact that my host server tracks things like keywords used to get to your
        site. The OP said
        "That meens, it returns only first parameter sent to google. "hl"
        defines language and is used very often. BUT I want to see key words
        also (variable"q")."

        My server tracks keywords used from all the major search engines.
        Whether it uses referrer or not is a black box for me. I just get the
        stats. And I get tons of stats. A lot of paid hosts have stats as part
        of the package. It's nice.

        --
        --
        ~kaeli~
        If that phone was up your a$$, maybe you could drive a
        little better!



        Comment

        • Lee

          #5
          Re: document.referr er question for tracking hits and visits

          goks said:[color=blue]
          >
          >I'm using document.referr er method for tracking visits on my site. But it
          >seems that, when someone finds my site with google, this method returns
          >only:
          >"google.com/search?q=xxxxx" (good)
          >or
          >"google.com/search?hl=en" (bad)
          >or
          >"google.com/search?sourceid =navclient" (bad)[/color]

          Is that the full value of document.referr er, or do you do
          some processing to the string that might be inadvertently
          truncating it at the first ampersand?

          As pointed out, though, it's usually much simpler to do
          that sort of tracking with server logs and/or statistics.

          Comment

          • goks

            #6
            Re: document.referr er question for tracking hits and visits


            "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
            news:MPG.1b1d66 3dfe2bbfa8989e8 d@nntp.lucent.c om...[color=blue]
            > In article <c906v8$jp$1@ba gan.srce.hr>, jasamtaj001@yah oo.com
            > enlightened us with...[color=green]
            > >
            > > That meens, it returns only first parameter sent to google. "hl" defines
            > > language and is used very often. BUT I want to see key words also[/color][/color]
            (variable[color=blue][color=green]
            > > "q").
            > > Has anyone noticed that... or have any idea for the solution?
            > >[/color]
            >
            > My web server has a control panel that tracks all of that and more.
            > Check with your web host to see if they have a stats area.[/color]

            Nop. Free web space from my ISP. No ASP no CGI no writing no database...
            that's why I want to track it from the outside. Main reason is fun and
            learning :))
            [color=blue]
            >
            > document.referr er is not reliable.
            >
            > --
            > --
            > ~kaeli~
            > Press any key...NO, NO, NO, NOT THAT ONE!!!!!!
            > http://www.ipwebdesign.net/wildAtHeart
            > http://www.ipwebdesign.net/kaelisSpace
            >[/color]


            Comment

            • goks

              #7
              Re: document.referr er question for tracking hits and visits


              "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
              news:c90dmp026v 4@drn.newsguy.c om...[color=blue]
              > goks said:[color=green]
              > >
              > >I'm using document.referr er method for tracking visits on my site. But it
              > >seems that, when someone finds my site with google, this method returns
              > >only:
              > >"google.com/search?q=xxxxx" (good)
              > >or
              > >"google.com/search?hl=en" (bad)
              > >or
              > >"google.com/search?sourceid =navclient" (bad)[/color]
              >
              > Is that the full value of document.referr er, or do you do
              > some processing to the string that might be inadvertently
              > truncating it at the first ampersand?[/color]

              This is my javascript:
              <script language="JavaS cript" type="text/javascript">
              var sRefer = "refer=" + document.referr er;
              var sURL = "&url=" + document.URL;
              document.write( "<img src='xxx/counter.asp?" + sRefer + sURL + "' width=1
              height=1 border=0 alt=''>");
              </script>

              Inside ASP:
              var sRefer = "" + Request.QuerySt ring( 'refer' );
              var sPage = "" + Request.QuerySt ring ( 'url' );

              URL is always processed OK.
              [color=blue]
              > As pointed out, though, it's usually much simpler to do
              > that sort of tracking with server logs and/or statistics.[/color]

              The fact is that I have a free web space from my ISP, but it doesn't allow
              any active pages such as ASP or CGI. So I'm using other site with ASP and
              database support to track visits on my noASP site.


              Comment

              • goks

                #8
                Re: document.referr er question for tracking hits and visits


                "goks" <jasamtaj001@ya hoo.com> wrote in message
                news:c90m9a$5c6 $1@bagan.srce.h r...[color=blue]
                >
                > "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
                > news:c90dmp026v 4@drn.newsguy.c om...[color=green]
                > > goks said:[color=darkred]
                > > >
                > > >I'm using document.referr er method for tracking visits on my site. But[/color][/color][/color]
                it[color=blue][color=green][color=darkred]
                > > >seems that, when someone finds my site with google, this method returns
                > > >only:
                > > >"google.com/search?q=xxxxx" (good)
                > > >or
                > > >"google.com/search?hl=en" (bad)
                > > >or
                > > >"google.com/search?sourceid =navclient" (bad)[/color]
                > >
                > > Is that the full value of document.referr er, or do you do
                > > some processing to the string that might be inadvertently
                > > truncating it at the first ampersand?[/color][/color]

                Ha ha :)
                After I posted this I've figured it out... off course.... second ampersand
                is
                taken as another variable. I just have to replace it in variable "refer"
                with something else... like / :))
                Thanks
                [color=blue]
                > This is my javascript:
                > <script language="JavaS cript" type="text/javascript">
                > var sRefer = "refer=" + document.referr er;
                > var sURL = "&url=" + document.URL;
                > document.write( "<img src='xxx/counter.asp?" + sRefer + sURL + "' width=1
                > height=1 border=0 alt=''>");
                > </script>
                >
                > Inside ASP:
                > var sRefer = "" + Request.QuerySt ring( 'refer' );
                > var sPage = "" + Request.QuerySt ring ( 'url' );
                >
                > URL is always processed OK.
                >[color=green]
                > > As pointed out, though, it's usually much simpler to do
                > > that sort of tracking with server logs and/or statistics.[/color]
                >
                > The fact is that I have a free web space from my ISP, but it doesn't allow
                > any active pages such as ASP or CGI. So I'm using other site with ASP and
                > database support to track visits on my noASP site.
                >
                >[/color]



                Comment

                • Andrew Thompson

                  #9
                  Re: document.referr er question for tracking hits and visits

                  On Tue, 25 May 2004 15:53:40 -0500, kaeli wrote:
                  [color=blue]
                  > In article <1noyy94y08z7c. noklp04u3oj3$.d lg@40tude.net>,
                  > SeeMySites@www. invalid enlightened us with...[color=green][color=darkred]
                  >>>
                  >>> document.referr er is not reliable.[/color]
                  >>
                  >> I thought that is where the server got
                  >> the information for the logs[/color][/color]
                  ....[color=blue]
                  > Yes and no. Users (well, script kiddie types with nothing better to do)
                  > can modify the referrer if you rely on script.[/color]

                  I see what you mean now, thanks..

                  --
                  Andrew Thompson
                  http://www.PhySci.org/ Open-source software suite
                  http://www.PhySci.org/codes/ Web & IT Help
                  http://www.1point1C.org/ Science & Technology

                  Comment

                  • Thomas 'PointedEars' Lahn

                    #10
                    Re: document.referr er question for tracking hits and visits

                    kaeli wrote:[color=blue]
                    > My server tracks keywords used from all the major search engines.
                    > Whether it uses referrer or not is a black box for me.[/color]

                    I don't see any alternative to that.


                    PointedEars

                    Comment

                    Working...