Closed Thread
Results 1 to 5 of 5

Thread: PHP Web Analytics Script

  1. #1
    adzeds is offline Newbie
    Join Date
    Oct 2009
    Location
    Bristol, UK
    Posts
    27
    Rep Power
    0

    PHP Web Analytics Script

    Ok. Here is the deal:
    I am trying to capture my website statistics using a PHP script so that I can access the mySQL database using a desktop app to analyze the stats!

    I am creating my PHP script now to record the data.

    I know how to collect:
    access_time
    ip address
    referrer
    search engine domain
    search engine query
    page accessed

    How do I collect?:
    avg time on site
    avg pages per visit
    traffic type (referral,search engine,direct)

    I am including a PHP script into a site to collect the data.

    Hope someone can help!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Jaan Guest

    Re: PHP Web Analytics Script

    hm.. you can get a traffic type like..

    If referral is "google", "bing" or whatever.. then traffic type is "search engine".
    if referral is not search engine then it's just "referral"
    if there is no referral then it's direct..

    I believe it goes like this.. but um.. average times I don't know :/

  4. #3
    adzeds is offline Newbie
    Join Date
    Oct 2009
    Location
    Bristol, UK
    Posts
    27
    Rep Power
    0

    Re: PHP Web Analytics Script

    Thanks for the advice!

    Just need to work out how to calculate time on site!

  5. #4
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: PHP Web Analytics Script

    Time on site youd calculate by one page to another.

    User1, page1, 1:00
    User1, page2, 1:02
    User1, page3, 4:06
    The first two would be one visit since the time between pages is 2 minutes, but the last is it's own visit since it's hours away. I'd make the max time like 5-10 minutes.

  6. #5
    Jaan Guest

    Re: PHP Web Analytics Script

    I believe you can do something with sessions.. hmm

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP Web Analytics
    By adzeds in forum PHP Development
    Replies: 5
    Last Post: 11-04-2009, 08:35 AM
  2. Analytics Slow!!!!
    By NeedHelp in forum Marketing
    Replies: 1
    Last Post: 11-06-2006, 04:27 PM
  3. Google Analytics
    By Blaze in forum Marketing
    Replies: 8
    Last Post: 10-04-2006, 05:06 PM
  4. Google Analytics
    By Crane in forum Search Engine Optimization
    Replies: 15
    Last Post: 07-22-2006, 12:22 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts