0

There are few links and how can we count the number of times these links are visited?

For example :

www.example.com?eventname=event A    
www.example.com?eventname=event B

Now how to count both visited links and not count the link www.example.com. It should count only above two links.

Thanks in Advance.

wazz
  • 4,953
  • 5
  • 20
  • 34
Dipak Parmar
  • 139
  • 2
  • 6

1 Answers1

1

In the target page add these lines of code

   <script> 
    function count()
    {
    // do counting here 
    }

</script>
    <body onload="count()">

I would suggest you to expand your knowledge and try learning JavaScript and its libraries.

Skeptical Ant
  • 384
  • 5
  • 19