I've been studying this matter for a little while and a lot of material is dating from a few years back. Most likely that would work, but I'm wondering what's your take on this today.
Goal: Users should embed something similar to Google Analytics on their websites, which I must use to retrieve and manipulate that information on my own server. Data example: name : "blabla", age : 23, etc.
Most likely JSON in the embed code would be involved (JSONP?), but how about doing it on the server-side so I can start manipulating the data with PHP?