Page 1 of 2
User-analytic/statistics?
Posted: Sun Apr 14, 2013 1:08 pm
by DevBoyLars
Hi there,
is it possible to implement something, that helps me to track information about App-usage? Something like
http://www.uselumos.com ?
Re: User-analytic/statistics?
Posted: Tue Apr 16, 2013 11:43 pm
by DevBoyLars
No one can help?
Re: User-analytic/statistics?
Posted: Tue Apr 16, 2013 11:52 pm
by Simon
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
Re: User-analytic/statistics?
Posted: Tue Apr 16, 2013 11:58 pm
by DevBoyLars
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?
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 12:11 am
by Simon
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
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 12:18 am
by DevBoyLars
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.
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 12:28 am
by Simon
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
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 12:32 am
by DevBoyLars
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?
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 12:38 am
by Simon
Yes, but this is just 1 way of doing it (my way

). 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
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 12:48 am
by DevBoyLars
Is it hard to code the part, which transfers the data to my server?
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 12:56 am
by Simon
No, there are many examples of using CGI to upload a file.
Simon
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 1:00 am
by DevBoyLars
Could I also use LiveCode-Server instead of CGI?
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 1:08 am
by Simon
Yes you can.
Simon
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 1:21 am
by DevBoyLars
Thanks again
Can you tell me a point to start for upload a file from my App via CGI or LC-Server?
Re: User-analytic/statistics?
Posted: Wed Apr 17, 2013 1:42 am
by Simon
Look up:
libURLMultipartFormData
in the dictionary.
Simon