Connect Data from Google Analytics to Tableau

You can get your Google Analytics data into Tableau to make more informed business decisions. This simple and quick guide gives you easy instructions on how you can extract your data from Google Analytics and then analyze it in Tableau. Our Google Analytics to Tableau connector allows you to access your Google Analytics data so you can easily manage various media objects, view metadata, and comments, and get reliable insights and metrics, such as reach, impressions, follower-like ratio, and likes. Integrate your Google Analytics with Tableau to turn your Google Analytics data into actionable insights.

Google Analytics (GA) is a free web analytics service. The application is great as it provides statistics and several basic analytical tools for marketing and search engine optimization (SEO) purposes. Google Analytics allows website owners to thoroughly analyze their visitors, with the main objective of interpreting and optimizing their website’s performance. The data offered by Google Analytics is designed particularly for marketing and webmasters. This data helps them gauge the quality of traffic they receive and the effectiveness and efficiency of their marketing efforts. Google Analytics inserts several lines of code in your website’s code for this purpose. You do not have to install any hardware or software in order to install it as the application is cloud based. Some of the features of GA are data visualization tools, custom reports, and integration with many other Google products, like Public Data Explorer and AdWords.

Tableau is a business intelligence platform and visualization tool that helps anyone see and better understand their data. People love using Tableau because it allows you to take raw data and turn it into charts, graphs, dashboards and reports that share insights and tell a story.

Extracting data

Before loading your data into Tableau, you will have to prep it first. If you don't already have a data structure in which to store the data you retrieve, you'll have to create a schema for your data tables. Then, for each value in the response, you'll need to identify a predefined datatype (INTEGER, DATETIME, etc.) and build a table that can receive them. Google Analytics' documentation should tell you what fields are provided by each endpoint, along with their corresponding datatypes.Complicating things is the fact that the records retrieved from the source may not always be "flat" – some of the objects may actually be lists. In these cases you'll likely have to create additional tables to capture the unpredictable cardinality in each record.

Preparing data

You can retrieve data programmatically through the Google Core Reporting API. It is available to all users who use the platform. By leveraging Improvado, you can easily and quickly integrate, connect, and see all your GA data flow into Tableau. Follow the API documentation, and you will enjoy access to endpoints, like impressions, CTRs, and CPC. The main gateway to your Google Analytics (GA) data is known as the Google Core Reporting API, which easily lets you make calls in order to retrieve data.

Loading data

If you would like to analyze your data in Tableau, you will have to convert it into a format that Tableau can read. You can import data from excel files or text files and PDFs, but the most suitable practice is to create a data warehouse that has all the data, and then to connect your data warehouse to Tableau. To import your data from an MS excel file, click on "Microsoft Excel" present under the connect tab. This will open a new dialog box so that you can easily navigate to your Excel file in the machine from which you would like to import your data. Now, click on the file and then click ‘Open.’ In case there is more than one sheet in your MS Excel workbook, all of these workbooks will be automatically imported, and they would be listed as sheets on the left-hand side panel of Tableau. Once you have loaded your data, Tableau offers an option to locally cache your data to expedite queries. There are almost no restrictions on how you import any type of data into Tableau. Tableau has many options to represent data in various views, applying filters, formatting, drill-downs, creating sets, performing forecasting, and generating trend lines. If you have used Pivot Tables in MS Excel, then the Tableau report building process will feel quite familiar. You will have to select the columns and rows desired in the resulting data set, and the aggregate functions used in order to populate the data cells.

Keeping data up to date

If you've made it this far, congrats! You probably have a written a script or program to extract your data and move it into Tableau. Now it's time to think about how you will keep this data up-to-date by loading new or updated data. Of course you can just replicate all your data each time you have updated records, but that would be extremely manual and time consuming. Luckily there is a better way. The key is to build your script so that it can sense incremental updates to your data. Thankfully, Google Analytics' API results include fields like "date" so that you can identify records that are new since your last update (or since the newest record you've copied). Once you've taken new data into account, you can set your script up as a cron job or continuous loop to keep pulling down new data as it appears.

The Easiest And Fastest Way To Do It

If all this sounds a bit overwhelming, don't worry -- there is an easier way to get this done! Thankfully, products like Improvado were developed to move data from Google Analytics to Tableau automatically. Using Improvado, you can easily combine the most crucial and relevant data from your social media ad campaign into a dashboard. You can then connect this data to Tableau.