Anyway to Track Usage of Theme or plugin?

Discussion in 'WordPress' started by mike4uuu, May 9, 2011.

  1. #1
    I'm working on a simple WordPress theme and when it's ready I'll release it to the public. What I was wondering is if there's any solutions to tracking how many people are using my theme?

    Any ideas would help.

    I know ,plugin are available to monitor how many times it is *downloaded* but I want something that tells me how many are actually using it and where .

    Thanks
     
    mike4uuu, May 9, 2011 IP
  2. lelkoun

    lelkoun Active Member

    Messages:
    288
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I use register_activation_hook() and my own update function (that is triggered when the plugin is updated) to send me user's blog URL and a version of the plugin:

    @file_get_contents("http://my-website.com/plugin-users.php?&status=activate&url=" . get_option('siteurl') . "&version=" . my_plugin_version());
    PHP:
    I also use register_deactivation_hook() to remove URL addresses of blogs where my plugin was deactivated.
     
    Last edited: May 10, 2011
    lelkoun, May 10, 2011 IP
    bekar09 likes this.
  3. mike4uuu

    mike4uuu Active Member

    Messages:
    832
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Can this be implemented on themes !
     
    mike4uuu, May 10, 2011 IP
  4. bekar09

    bekar09 Active Member

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #4
    excellent. i never knew of this hook.
     
    bekar09, May 11, 2011 IP