Measure number of times users connect with Twitter

51 Views Asked by At

I'm using a connect with twitter button on my site, no an OAuth, but I wanted a way to accurately judge how many people pressed connect. There is a way to have a custom connect with twitter button like this. so i was thinking the button might bring you to a url to record the visit and then redirect right back to the main page. I'm not sure how or even if this idea will even work. How would I go a bout doing this?

1

There are 1 best solutions below

4
On BEST ANSWER

as present on the twitter website a method like this one can enable custom signin

document.getElementById("signin-btn").onclick = function () {
      T.signIn();
    };

simply call a url from inside this method fto track the number of clicks to this button some thing like this.

document.getElementById("signin-btn").onclick = function () {
          T.signIn();
$.get("UR_LINK");
        };

now on the server side. because i dont know what tech ur r using psuedo code can be

On_Request()
{
clicked++;
saveTODataBaseClickedNumber(clicked);
}