Woopra Forums » General Discussion » How Do I...

Tracking Users Logged In

(10 posts)
  • Started 6 months ago by jamesproud
  • Latest reply from xwisdom
  • jamesproud
    Member

    Hey,

    I was watching the Woopra introduction video on Mashable earlier and I heard that you can identify users that are logged into your actual site.

    How do I do this and see the identify of users that are registered on my site?

    Thanks.

    Posted 6 months ago #
  • pmk
    Member

    Yes its possible.

    If you're using Wordpress or Vbulletin, there are plugins in download menu at the top of this page.

    otherwise you can use following:

    <script type="text/javascript">
    var woopra_id = '';
    var woopra_array = new Array();
    woopra_array['name'] = '';
    woopra_array['Email'] = '';
    woopra_array['avatar'] = '';
    </script>

    <script src="http://static.woopra.com/js/woopra.js"></script>

    If you use an open source CMS, you can try search for it. So far users have been working out "plugins" for phpbb2, phpbb3, myBB, wBB, Joomla(rokwoopra), and someone working on mambo aswell.

    However if youre using own cms, you can use above code

    Posted 6 months ago #
  • jamesproud
    Member

    Ah thank you very much. Regarding custom cms, the array options above, are there only those 3? Or is there further documentation explaining all available API calls?

    Posted 6 months ago #
  • pmk
    Member

    No prob :)

    We've only got these so far. I dont know if woopra plans to extend

    Posted 6 months ago #
  • jamesproud
    Member

    Thanks, the only possible extra field I could think that would be useful would be "user level". So I could show whether an admin or normal user is logged in. :)

    Posted 6 months ago #
  • Jad Y.
    Administrator

    FYI you can add any entry to the array object 'woopra_array', and you will be able to see the key,value pair of every visitor in your desktop application.

    <script type="text/javascript">
    var woopra_id = 'xxx...';
    var woopra_array = new Array();
    ...
    woopra_array['hair color'] = 'brown';
    </script>

    Posted 6 months ago #
  • jamesproud
    Member

    Thanks, will experiment now.

    Posted 6 months ago #
  • xwisdom
    Member

    Can I use the array object "woopra_array" to submit page names to the user navigation path if I were using AJAX to load the pages? For example:

    <script type="text/javascript">
    var woopra_id = 'xxx...';
    var woopra_array = new Array();
    ...
    woopra_array['page_name'] = 'user/guestbook';
    </script>

    What is the name of the key instead of 'page_name'?

    Posted 5 months ago #
  • pmk
    Member

    Xwisdom,

    from what I've understod, there isnt any specific "keys". Its just a matter of what you want it to show in your woopra client. Eg. you can put it this way:

    woopra_array['Hungry'] = '$user_hungry';

    That would spit out "Hungry: and the data called from db"

    So If I understood Yad correctly, we can put it anything in ['...'] , depends on what you want in your client before the $data_pullled_out

    Posted 5 months ago #
  • xwisdom
    Member

    pmk,

    yes, it seems to be that way. But there is a special key 'name' that will set live user's name in the list. For example:

    <script type="text/javascript">
    var woopra_id = 'xxx...';
    var woopra_array = new Array();
    ...
    woopra_array['name'] = 'Peter';
    </script>

    This will tag the visitor and he will show up as "Peter" instead of Visitor #35. So there should be a special key for setting the page name instead of using the URL.

    Posted 5 months ago #

RSS feed for this topic

Reply

You must log in to post.