![]() |
VOOZH | about |
The CData Excel Add-In for Google Analytics provides formulas that can query Google Analytics data. The following three steps show how you can automate the following task: Search Google Analytics data for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as GoogleAnalyticsConnection1, or a connection string. The connection string consists of the required properties for connecting to Google Analytics data, separated by semicolons.
Google uses the OAuth authentication standard. To access Google APIs on behalf on individual users, you can use the embedded credentials or you can register your own OAuth app.
OAuth also enables you to use a service account to connect on behalf of users in a Google Apps domain. To authenticate with a service account, register an application to obtain the OAuth JWT values.
In addition to the OAuth values, set Profile to the profile you want to connect to. This can be set to either the Id or website URL for the Profile. If not specified, the first Profile returned will be used.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM Traffic WHERE Transactions = '"&B3&"'","Profile="&B1&";InitiateOAuth="&B2&";Provider=GoogleAnalytics",B4)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for Google Analytics to get started:
Download NowLearn more:
👁 Google Analytics IconThe Google Analytics Excel Add-In is a powerful tool that allows you to connect with live data from Google Analytics, directly from Microsoft Excel.
Use Excel to access all kinds of real-time site traffic and analysis data. Perfect for mass exports, Excel-based data analysis, and more!