User-analytic/statistics?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

User-analytic/statistics?

Post by DevBoyLars » Sun Apr 14, 2013 1:08 pm

Hi there,
is it possible to implement something, that helps me to track information about App-usage? Something like http://www.uselumos.com ?

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: User-analytic/statistics?

Post by DevBoyLars » Tue Apr 16, 2013 11:43 pm

No one can help?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: User-analytic/statistics?

Post by Simon » Tue Apr 16, 2013 11:52 pm

Yes, though I haven't gone through all the documentation of lumos.
There is no drag and drop plugin or an LC website interface, but you can roll your own. You will have to set up all the tracking yourself.

Want to know more?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: User-analytic/statistics?

Post by DevBoyLars » Tue Apr 16, 2013 11:58 pm

Hi Simon :)
It don't has to be Lumos. This was just an example :)

Yes, I'm interested to know more about it. I think it would be useful to see how often an App is used by an user.

I heard some people use Google-Analytics for it?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: User-analytic/statistics?

Post by Simon » Wed Apr 17, 2013 12:11 am

Hi Lars,
Again like the other post you will need to store a file on the device that is read on preOpenStack and written to on closeStack.

For example just for number of runs:
on preOpenStack you would check to see if the file was there then read it's contents into a var (say the number is 3) then just add 1 to that and on closeStack you would post the file to your server and write the file back to the device (now = 4).
Each file should have a unique name so that you can collect everyone's.
There is cgi stuff in there that you'd have to know about.
I do this all the time with my apps with a lot more info then number of runs.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: User-analytic/statistics?

Post by DevBoyLars » Wed Apr 17, 2013 12:18 am

So that means you collect this data for every single user in a single file on your server?

Isn't it possible that the App checks for internet-connection and if it's available the App sends a signal to Google-Analytics, so that I can look up there how often the App is used? Like visitors on a website.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: User-analytic/statistics?

Post by Simon » Wed Apr 17, 2013 12:28 am

No, I have seperate files for each user and combine them using LC. These are very small text files so easy to work with.

I think I see the way to use Google, but that just tells you 1 thing, I thought you were after much more detailed reports.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: User-analytic/statistics?

Post by DevBoyLars » Wed Apr 17, 2013 12:32 am

Thank you for your very good help :)

So this means, I've to store data in a special file on devices and every time the App gets an internet-connection, this file will pushed/send to my server.

For me I build a second App, which collects this files and read out the needed information.

Is this right?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: User-analytic/statistics?

Post by Simon » Wed Apr 17, 2013 12:38 am

Yes, but this is just 1 way of doing it (my way :D ). I'm sure there are many others.
You should think more along the lines of you only post the data when connected to the internet but always write the local file. Keeping track even when offline.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: User-analytic/statistics?

Post by DevBoyLars » Wed Apr 17, 2013 12:48 am

Is it hard to code the part, which transfers the data to my server?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: User-analytic/statistics?

Post by Simon » Wed Apr 17, 2013 12:56 am

No, there are many examples of using CGI to upload a file.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: User-analytic/statistics?

Post by DevBoyLars » Wed Apr 17, 2013 1:00 am

Could I also use LiveCode-Server instead of CGI?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: User-analytic/statistics?

Post by Simon » Wed Apr 17, 2013 1:08 am

Yes you can.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: User-analytic/statistics?

Post by DevBoyLars » Wed Apr 17, 2013 1:21 am

Thanks again :)

Can you tell me a point to start for upload a file from my App via CGI or LC-Server?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: User-analytic/statistics?

Post by Simon » Wed Apr 17, 2013 1:42 am

Look up:
libURLMultipartFormData
in the dictionary.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply