Does accessing WordPress via REST API affect the site stats and analytics?

I made a few iOS Apps that access WordPress blogs via WP REST API and I’m wondering if the calls I’m making register in the site stats in the dashboard.
If I call the root posts endpoint to get the latest posts does it register as a page view? And if I call a posts/$postId endpoint does it register as a page view as well?


Solutions Collecting From Web of "Does accessing WordPress via REST API affect the site stats and analytics?"

This will depend on the type of plugin you use for counting page hits. In general stats are being counted on front end, either by inserting some image or JS which generates a server hit on the stats server that will be counted (google analytics, stats) or by counting the hit and storing it in the wordpress DB when the front end page is actually being generated.

The Rest API do not have easy means to add tracking JS and images, and do not follow the front end page generation code flow, so the answer to your question is 99.9% it will not be counted. Counting those types of requests will require some different strategy than the current plugins employ, but what is true for now might change in the future, although I assume that such tracking code will have different tracking for front page tracking and API tracking.