Blog Archives

Google Analytics API via STATISTICA Visual Basic

Google Analytics API via STATISTICA Visual Basic

This example macro will query the Google Analytics database and return various metrics/dimensions associated with external user visits to the user’s organizational website. To use this macro, the user’s organization must have an established Google Analytics account with a valid e-mail address and password available to the user. This example macro consists of one main procedure and seven (7) public and private sub-procedural functions.

This macro uses Public Function GetGAProfiles which was written by Mikael Thuneberg. Additional code was provided by Iliyan Gochev, StatSoft Bulgaria and RCoon, StatSoft.