Jump to:

22992 Posts in 11842 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Tracking activity

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 699 Views
  • Lazarus404
    Avatar
    Community Member
    71 Posts

    Tracking activity Link to this post

    Hey guys,

    I want to track link clicks by user in my site. Essentially, all users will be logged in and will be provided with links to files to download and pages to visit. I need to log all actions by the user so that the data can be analysed at a later date. What's the best or preferred way to do this?

    Thanks,
    Lee

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Tracking activity Link to this post

    I'd recommend google analytics.

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: Tracking activity Link to this post

    +1 what Swaiba said. Or pretty much any other analytics tracking package.

  • Lazarus404
    Avatar
    Community Member
    71 Posts

    Re: Tracking activity Link to this post

    The problem is, I need to be able to track the users name, what files that particular person downloaded and when... I'm not sure Google Analytics supports that... Does it?

    Thanks,
    Lee

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Tracking activity Link to this post

    No it doesn't, how many users are you talking?

    I've only ever seen aggregated tracking, not really user specific.

    You could put a hook into page::init to store the page and member id, then for a download send the users to a page that sends the file. I think it would drive me crazy trying to track all user activity - even logging it almost crashed a server once due to the amount I was trying to record. Bottom line - choose what specifically needs tracking and add in custom hooks for it.

  • Lazarus404
    Avatar
    Community Member
    71 Posts

    Re: Tracking activity Link to this post

    It should only be about 30 users, and several hundred files. I think I may have found something that fits :-

    http://www.silverstripe.org/all-other-modules/show/15260

    Just need to work it into my app

    Thanks,
    Lee

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: Tracking activity Link to this post

    Google Analytics has the ability for you to add custom tracking parameters. You'd just need to modify your tracking JS code in the footer to include the values you want which would be generated by some code snippets that retrieve the information you need from the SS system. In fact I think it'd be relatively easy to add tracking for usernames by using Member::currentUser()

    699 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.