How to capture website traffic API data using Google Analytics?

I have a website where most of the traffic comes from the API ( http://untiny.com/api/ ). I use Google Analytics to collect traffic data, however, the statistics do not include API traffic, because I could not include the Google Analytics JavaScript code in the API pages, and this will also affect the results of the API. (example: http://untiny.com/api/1.0/extract/?url=tinyurl.com/123 ).

The solution can execute javascript using the javascript engine. I searched stackoverflow and found javascript engines / interpreters for Java and C, but I could not find it for PHP except the old "J4P5" http://j4p5.sourceforge.net/index.php

Question: Does the javascript mechanism use a solution to this problem? or is there another reason to enable API traffic in Google Analytics?

+5
source share
4 answers

The simple problem with this in general is that any data you receive can be very misleading.

, , , . , , , , , . , , , ... .. .

, PHP, IP , , . , , API ( , , , , ).

+2

, Javascript, Google Analytics script, (, , API : API [ iframable-], , , javascript ).

(, Apache IIS Analog, Webalizer Awstats), - , API, useragent, request IP - API.

0

All Articles