As someone who is doing exactly as you are describing we initially
tracked everything internally, this caused us to have massive amounts
of data....no need for it really.  Then switched to omniture who have
a dog of an api.  We;ve since ditched omniture and now we push
everything through to Google analytics, who also have some nice stuff
for pushing custom variables for actions, etc.

We now pull information daily from GA and display it to the user.
It's free, works well and my manager is happy with it.  There are also
some nice ruby libraries for dealing with GA through ruby.

Jonathan

On Thu, Sep 23, 2010 at 11:18 AM, Daniel N <[email protected]> wrote:
> If everything is being served from one app, then sure, I just assumed that
> they were disparate apps.  In the case of a single rails app, a quick
> middleware might be the go.  I don't think it'd be hard.
> Having it as a seperate app just means that it has no impact on the main
> service, but unless you're having trouble, and you're able to have it all in
> one app then I'd just pop it in the same one.
>
> As Julio said though, if there's something out there that already does it,
> that's prolly the go.
> Cheers
> Daniel
>
> On 23 September 2010 11:11, Joshua Partogi <[email protected]> wrote:
>>
>> Hi Daniel,
>>
>> Thank you for the advise. Just out of curiosity, is there any reason
>> why creating another service for this is more preferable than tracking
>> it inside the app itself?
>>
>> Cheers,
>> Joshua.
>>
>> On Thu, Sep 23, 2010 at 10:11 AM, Daniel N <[email protected]> wrote:
>> > If I just wanted a count (or some other metric) that I could provide as
>> > a
>> > SaaS I think I'd just make a small Sinatra / Cramp service that served a
>> > trivial javascript file.
>> > When the browser makes the request to the tracking service to get the
>> > javascript file, you set a cookie to track them, read any info you need
>> > from
>> > the headers and process (find geo location etc).
>> > The reason I suggest Cramp (or node if you want something tiny and
>> > fast), is
>> > because you can serve the javascript lightning fast, and then using an
>> > "next
>> > tick" callback, you can do the further processing, like storing in the
>> > db,
>> > fetching the geo location etc after the response has been sent to the
>> > client.
>> > Anywho... Just a thought.
>> > Daniel
>> > On 23 September 2010 10:07, Joshua Partogi <[email protected]> wrote:
>> >>
>> >> Hi Keith,
>> >>
>> >> Thanks for that. I had a thought of that, but would this fit in a SaaS
>> >> application where you want to track visitors per subdomain?
>> >>
>> >> Cheers,
>> >> Joshua.
>> >>
>> >> On Thu, Sep 23, 2010 at 10:03 AM, Keith Pitt <[email protected]> wrote:
>> >> > Using http://www.google.com/analytics/ would be a good fit for this.
>> >> > Keith
>> >> > Keith Pitt
>> >> > Web: http://www.keithpitt.com
>> >> > Twitter: @keithpitt
>> >> > Skype: keithpitt
>> >> > Phone: +61 432 713 987
>> >> >
>> >> >
>> >> > On Wed, Sep 22, 2010 at 9:41 PM, Joshua Partogi <[email protected]>
>> >> > wrote:
>> >> >>
>> >> >> Hi all,
>> >> >>
>> >> >> Is there any gems to track unique visitors in rails? If not, what is
>> >> >> the best approach to do this is rails?
>> >> >>
>> >> >> Thanks heaps for the insights.
>> >> >>
>> >> >>
>> >> >> Cheers,
>> >> >> Joshua.
>> >> >>
>> >> >> --
>> >> >> http://twitter.com/scrum8
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> >> Groups
>> >> >> "Ruby or Rails Oceania" group.
>> >> >> To post to this group, send email to [email protected].
>> >> >> To unsubscribe from this group, send email to
>> >> >> [email protected].
>> >> >> For more options, visit this group at
>> >> >> http://groups.google.com/group/rails-oceania?hl=en.
>> >> >>
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "Ruby or Rails Oceania" group.
>> >> > To post to this group, send email to [email protected].
>> >> > To unsubscribe from this group, send email to
>> >> > [email protected].
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/rails-oceania?hl=en.
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> http://twitter.com/scrum8
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Ruby or Rails Oceania" group.
>> >> To post to this group, send email to [email protected].
>> >> To unsubscribe from this group, send email to
>> >> [email protected].
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/rails-oceania?hl=en.
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Ruby or Rails Oceania" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/rails-oceania?hl=en.
>> >
>>
>>
>>
>> --
>> http://twitter.com/scrum8
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to