YourNameHere Posted August 24, 2010 Share Posted August 24, 2010 Hi, I am writing a piece of software that I would like to track who is using it. What I need is something similar to google tracking. Do I need to use jsonp? Or is there another way to avoid that, I would need to learn how to use json to do that. Basically, I want the script to post to my server to a php page that will insert all the gathered info into a database on my server. I know how to do the inserting and whatnot but how to deliver the info is the question. Quote Link to comment Share on other sites More sharing options...
Adam Posted August 24, 2010 Share Posted August 24, 2010 Are you asking for pre-written software that will track usage and report statistics back, or how to encode/send the data to your server yourself? Sorry I'm just a little unclear on what you're asking for.. FYI - JSON is actually very simple. All it is a data structure that, due to it being in plain-text, is easily interchangeable between machines. The only thing you really need to learn is the syntax, but as the name suggests (JavaScript Object Notation) JavaScript is already able to read it, and PHP has built-in functions to parse/encode it. Quote Link to comment Share on other sites More sharing options...
YourNameHere Posted August 24, 2010 Author Share Posted August 24, 2010 Are you asking for pre-written software that will track usage and report statistics back... No, I'm just asking for what technology is available to do it. I don't want to track tons of information. Just what domains actually use the software. So, yes, how to encode it and send back to the server and I am aware of json_encode()/decode() just never had a use for it. Should I take your response as you are for json? Quote Link to comment Share on other sites More sharing options...
Adam Posted August 25, 2010 Share Posted August 25, 2010 It depends upon the type of software really; how often it's used, how often you want to send the data, etc. Quote Link to comment Share on other sites More sharing options...
YourNameHere Posted August 26, 2010 Author Share Posted August 26, 2010 Ok, maybe "software" is misleading. It's a pre-build website. Similar to WordPress. When the "software" is installed, I would like it to send data back to my server about the domain it's published on. So really, it wouldnt be used a lot since it only sends the data once during the lifetime of the "software". Quote Link to comment Share on other sites More sharing options...
Adam Posted August 26, 2010 Share Posted August 26, 2010 In that case then, during the installation I'd just use cURL to post the data to a URL on your web site. I don't know if there's any legal side to this though, for instance the user having to give consent for you to capture details about their server? People will of course try to add in stuff like that but with malicious intent. Perhaps like on certain installations you have a check box that says "allow us to capture details about your set-up (...)" kind of thing? See if anybody else with a more legal mind has an opinion. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.