Unfortunately it doesn't work yet.
I didn't mention it because I wasn't sure whether if was going to work or not, but the Google Analytics Tool interferes with the final output, so it doesn't get recognised as valid JSONP.
Also would it be possible for you to send out an HTTP header for declaring the content type of the document?
Code: Select all
header('Content-type: application/x-javascript');
Solution 1
Simply take out Google Analytics when type=jsonp
Solution 2
Since JSONP is actually javascript, you could simply avoid printing the <script></script> tags and just leave the google analytics code there, it will be executed with the JSONP code with no problems.