A
A
Andrew2020-04-02 12:48:34
Google Analytics
Andrew, 2020-04-02 12:48:34

How to display the count of post views and at the same time take the data from google analytics?

Good afternoon, tell me how to display the counter of page views.
Taking information from GA and in doing so avoiding the load on the site. Since there are a lot of posts and authors (8k) and will increase.
Perhaps there is some kind of crutch or tricky solution.
Either plugin)
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-04-02
@Kozack

Use Google api.
Of course, it depends on your case, but in theory you can connect the download of information via JS directly on the client and display the counter. So your server will not be involved in this process at all.
https://developers.google.com/analytics/devguides/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question