with a ? (question mark) just after any link you can set a query string
when u open that link in browser so on address bar it will show www.example.com/linkfolder/link.html?ln=1
and u can set any function on calling of that query like this
window.location.search.substring(1);