Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Tracking outbound link clicks

Options
  • 12-08-2009 5:59pm
    #1
    Closed Accounts Posts: 12,382 ✭✭✭✭


    Hello

    I want to implement a javascript solution to tracking outbound clicks.

    For example, I would rewrite my URLs as follows:

    [PHP]<a href="http://www.external-website.com/whatever.html&quot; onclick="some function to record the click">click me</a>[/PHP]

    When someone clicks on the link, the URL will be saved in a database.

    I know you can use Google Analytics for something similar, but I want to use a non-Google solution.

    Have any of you implemented something like this before, or do you know of a script I can use?

    Thanks. :)


Comments

  • Registered Users Posts: 569 ✭✭✭none


    Seems like a good candidate for an asynchronous AJAX call.


Advertisement