Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder Coastal Web's Avatar
    Join Date
    Oct 2004
    Posts
    225
    Thanks
    12
    Thanked 3 Times in 3 Posts

    Cool how many people bookmark your page?

    Hello everyone, l just had a question or wish to stir up a discussion.

    Recently when checking out my websites statistics (via awestats) it has an attribute for "estimated bookmarks"
    and shows a percentage of users that bookmark my site.

    I was just curious if there is a php, or perl script that can record how many people bookmark my page.

    any help would be greatly appreciated!

    Samantha Gram

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Location
    UK
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm guessing awstats looks at the logs and counts how many times favicon.ico is downloaded, but I think this method is outdated as most browsers these days download this to display in the address bar. I think it's impossible to calculate this as it's all done with on the client side without any information being sent to the server

  • #3
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yea not possible I'm afraid.

    The only way to do it would be to have a link 'bookmark this page' etc - then when they click it, do something with a php script to alert you they've bookmarked it, and then redirect them to the javascript which would bookmark the page.

    A very messy solution though - user would need javascript enabled, and they would need to click the link to alert you, not just add to the favourites from the menu; and if they clicked the link then refused to add the page - you would still be alerted.

    Perhaps (although not really a good idea) you could add a simple poll to the page asking users if they've bookmarked?

    I realise you are starting a discussion not asking how to do it though, and I have no idea how the stats page can estimate bookmarkings!
    Last edited by mark87; 11-26-2005 at 04:25 PM.

  • #4
    Regular Coder Coastal Web's Avatar
    Join Date
    Oct 2004
    Posts
    225
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Ahhh, the favicon.. that makes perfectly good sense. Thanks for the replies both of you! I had figured one way to do it would be to create a "click here to bookmark" this page link and then record the info into a database with php, and cough up the javascript:window.external.AddFavorite() function but this like you'd suggested is messy and probably wouldn't be used all to often when someone did decide to bookmark me.

    I thought l had read in the past that there is a way to get a list of someone's favorites/bookmarks via javascript in the past... exploit perhaps(?)... if that were the case l'd be able to write a script that would thumb through the users bookmarks looking for my domain. But again this is a pretty dirty tactic that l wouldn't like someone pulling on me.

    Thanks for kicking around your ideas with me guys.

    Samantha Gram

  • #5
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There was an exploit if I remember correctly, yes; but it's patched now I suspect.

    Favicon is downloaded whenever a person views the page anyway so it wouldn't be able to tell you how many people bookmark the page.

  • #6
    New Coder
    Join Date
    May 2005
    Posts
    94
    Thanks
    4
    Thanked 0 Times in 0 Posts
    I'd have thought the easiest way of finding this out is to view your "Referrals", it shows where people have come from. Of course, it'll also show people that appear to have come from no-where, those are the people that have bookmarked you, and also those coming from links in emails, irc etc. But it's probably the best estimate possible.

  • #7
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Referrals from nowhere also include anyone with the referrer field turned off in their browser or firewall. It also includes anyone using IE who comes from a secure page. Also anyone who types the address of the page into their address bar.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #8
    New Coder
    Join Date
    Nov 2005
    Location
    Amsterdam, The Netherlands
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Perhaps it would be a possibility to record keys with javascript (and send it to a form which sends it to php > db) when someone presses CTRL-D (bookmark)
    CodeTeacher (Programming Forum)
    http://www.codeteacher.com

  • #9
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by codeteacher
    Perhaps it would be a possibility to record keys with javascript (and send it to a form which sends it to php > db) when someone presses CTRL-D (bookmark)
    How many people do you know who actually bookmark pages like that?

    ...As said, there's little ways to see who possibly bookmarks, but none of them are fail-proof.


  •  

    Posting Permissions

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