Jump to content

Javascript tracking?


YourNameHere

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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".

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.