Approach to use Google analytics API in LN database?

I would like to get data about activity on site using Google Analytics API. I already included code on web site. Now the question about the best approach how to get that data.

I found that google has JAVA API and JS API, who can advice how I should go? I’m new to this topic.