Consulting

Page 1 of 2 1 2 LastLast
Results 1 to 20 of 29

Thread: Get Web Stats with Webalizer and Analyze

  1. #1
    Site Admin
    The Princess
    VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location

    Get Web Stats with Webalizer and Analyze

    Almost every day, I am looking at our web stats. The Webalizer software lists 250 referring URLs. I would like to grab all 250, remove any URLs containing the string "vbaexpress", and sort the remaining rows alphabetically by URL. Anyone care to take this on? It would be GREAT if I could more easily see where our traffic is coming from.

    Whoever decides to help gets the required info to get to the web stats.
    Don't worry. It may not look it, but there ARE non-vbax URLs.
    ~Anne Troy

  2. #2
    VBAX Regular
    Joined
    May 2004
    Location
    Seattle, WA
    Posts
    24
    Location
    Dreamboat,

    Are you trying to automate the entire process?
    So you click a button in Excel, it goes and downloads the web stats, then strips out the "vbaexpress" sites, the it sorts by name.

    For the "vbaexpress" lines, it is good enough to delete the row in Excel?
    Do you want referrer line for non-vbaexpress sites to be cleaned up in any way?

  3. #3
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    That would be VERY cool, yes.
    Yes, just delete vbaexpress lines.
    Nope. Don't need referrer lines cleaned up.
    ~Anne Troy

  4. #4
    VBAX Regular
    Joined
    May 2004
    Location
    Seattle, WA
    Posts
    24
    Location
    I will give it a quick shot for you. The only potential problem might be automating the pwd. You might have to enter that yourself. Depending on how the pwd is done, one would have to use SendKeys which I am not a big fan of.

  5. #5
    Knowledge Base Approver VBAX Expert brettdj's Avatar
    Joined
    May 2004
    Location
    Melbourne
    Posts
    649
    Location
    Parsing it with RegExp should be straightforward, can u please send me the necessary info

    Cheers

    Dave

  6. #6
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    xXLDev already finished this little project for me.
    I've asked him to load it here, but... ?
    ~Anne Troy

  7. #7
    BoardCoder
    Licensed Coder VBAX Expert mark007's Avatar
    Joined
    May 2004
    Location
    Leeds, UK
    Posts
    622
    Location
    I'd be intrigued as to who our referrers are after vbaexpress has been stripped out. Can you publish the standings?

    "Computers are useless. They can only give you answers." - Pablo Picasso
    Mark Rowlinson FIA | The Code Net

  8. #8
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Sure.
    ~Anne Troy

  9. #9
    VBAX Regular
    Joined
    May 2004
    Location
    Seattle, WA
    Posts
    24
    Location
    Dreamboat,

    Sorry. I did not understand that you wanted to post the file. Thanks for doing it for me.

  10. #10
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    No problem, Cesar! Thank YOU.
    ~Anne Troy

  11. #11
    Knowledge Base Approver VBAX Expert brettdj's Avatar
    Joined
    May 2004
    Location
    Melbourne
    Posts
    649
    Location
    dang - you have to be quick around here.

    Must challenge you to a game of Pacman sometime

  12. #12
    Knowledge Base Approver VBAX Expert brettdj's Avatar
    Joined
    May 2004
    Location
    Melbourne
    Posts
    649
    Location
    Getting a time out error as per attached jpg - anyone else ?

  13. #13
    Just A Dude VBAX Tutor Scottie P's Avatar
    Joined
    May 2004
    Location
    Remote from 18901 USA
    Posts
    263
    Location
    Yes, but I thought that perhaps it was just my machine (had 4 apps and about 6 windows open at the time). Since I am recently at only 50% capacity on memory (I mean the machine!) I thought that 'it' was the cause...
    Life is Visual: Presence is Perception...
    How we see the world is how we respond to it. ~* Peace *~

  14. #14
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Hm. Not me.
    Are you prompted to enter the username/password?
    ~Anne Troy

  15. #15
    Knowledge Base Approver VBAX Expert brettdj's Avatar
    Joined
    May 2004
    Location
    Melbourne
    Posts
    649
    Location
    No

  16. #16
    VBAX Regular
    Joined
    May 2004
    Location
    Seattle, WA
    Posts
    24
    Location
    Brett, you should be prompted for a user name and password.

    Dreamboat, I assume that the program is still working for you.

  17. #17
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Works divine for me.
    ~Anne Troy

  18. #18
    VBAX Regular NateO's Avatar
    Joined
    Jun 2004
    Location
    Minneapolis, MN
    Posts
    90
    Location

    Autofilter

    Anne, you might want to replace:


    Private Sub RemoveVBAExpress()
         Dim irow As Integer
    irow = 6
         While (Cells(irow, 4).Value <> "")
       If (InStr(1, Cells(irow, 4).Value, "vbaexpress") > 0) Then
          Rows(irow).Delete
       Else
          irow = irow + 1
       End If
    Wend
    End Sub
    With

    Private Sub RemoveVBAExpress2()
     ' Macro recorded by Nate Oliver
     Application.ScreenUpdating = False
     With Worksheets(1)
        .Range("D6:D65536").AutoFilter Field:=1, _
        Criteria1:="=*vbaexpress*"
        On Error Resume Next
        .Range("D7:D65536").SpecialCells(xlVisible).EntireRow.Delete
        On Error GoTo 0
        If CBool(InStrB(.Range("d6").Value, "vbaexpress")) Then _
            .Range("d6").EntireRow.Delete
            .AutoFilterMode = False
    End With
     Application.ScreenUpdating = True
     End Sub
    The filter should perform much better than the loop, especially as the range in question grows in terms of row count.
    Regards,
    Nate Oliver

  19. #19
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Well...whatever that did, it sure doesn't flash like it used to.
    ~Anne Troy

  20. #20
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Now, y'all seem to be enjoying this so much... it might be REALLY cool if I could run it, and see in red text or fill or something, any NEW referrers from the previous run.

    This uses software called Webalizer. I could go into our host's forum and post this as a download for them to use on their own site.
    ~Anne Troy

Posting Permissions

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