Link to home
Start Free TrialLog in
Avatar of Sabrin
Sabrin

asked on

bookmark

hello,
is there a way for me to have a bookmark on a page that can be tracked?
I would like to know if there is a way for me to know how many people
clicked on the bookmark image on my page! is it possible?

function bookmark() {
     var url="http://site.com/"
     var title="title of website"
      
   if (window.sidebar) {
window.sidebar.addPanel(title,url,"");

} else if( document.all ) {
window.external.AddFavorite(url, title);

} else if( window.opera && window.print ) {
return true;
  }
}
Avatar of JamesCssl
JamesCssl
Flag of United States of America image

You could have it load an image when the user clicks, and cound how many times this image was loaded
You need an external storage like a database or a text file to update how many times it has been clicked.
Avatar of Sabrin
Sabrin

ASKER

the first option sounds good, JamesCssl could you please show me how to do it?
ASKER CERTIFIED SOLUTION
Avatar of JamesCssl
JamesCssl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial