How to Use Tableau to Track your Web Traffic in Google Analytics

We offer private, customized training for 3 or more people at your site or online.

After you have created your content, published your blog posts, and created your ads to reach your target audience, what is left to do? How do you know if any of that was effective? How can you find out if your content is reaching your audience successfully? These are the questions many companies must answer today.  It is not enough to spend money to create an ad campaign or put content on your website; you also need to identify metrics that tie your actions or content to business outcomes.

One way to monitor the traffic or users to your website is through Google Analytics. If you already own a Google Analytics account, or any other tool for monitoring your web traffic, then you are probably aware of how easy it is to feel overwhelmed by all the data and reports to which you have access. Google Analytics alone gives you the option to select from over 20 or more different segments and dimensions, categories, and metrics. However, is this vast volume of data at all meaningful to your business?

In this tutorial, you will learn how to:

  • Use Tableau to connect to your data in Google Analytics to pull just the information that is useful to your goals or objectives.
  • Build meaningful charts that tie to your goals or objectives. 

The best approach to analyzing your website traffic data is to start by evaluating your site performance. In this tutorial, some of the metrics you will analyze include:

  • Sessions
  • Session Duration
  • Percent of New Sessions
  • Bounce rate
  • Goal Conversions
  • New users
  • Pageviews
  • Unique pageviews

You can download a 14-day copy of Tableau Desktop as a trial if you wish to work along with this tutorial and do not yet have Tableau.

Accessing Google Analytics Data

  1. Launch your Tableau Desktop tool and under the connect pane, select "Google Analytics."
  2. Tableau desktop application window.

    Tableau will automatically launch your default browser and present you with your Google account login page.

  3. Enter the Google account credentials linked to your website to allow Tableau to connect to data in your Google Analytics account.
  4. Google Analytics Sign-In Window

  5. You will be prompted to allow Tableau to connect to your Google Account data. Select Allow.
  6. Connect Tableau to your Google Account

Selecting the Desired Data

You should now see a window that looks as shown below:

Google Analytics Vault

This new window presents you with steps to pull the data you want to analyze within Tableau.

  1. Select your Account, Property, and Profile using the drop-down menus at the top left. This is useful when you have multiple accounts or profiles linked to your Google account.

  2. Filter the date range of your data based on the pre-defined filter list from the drop-down menu or specify the date range you want for your data.
    1. The Segment drop-down has pre-set filters where you can select the segment of users you want to analyze. These segments are created in Google Analytics.  Some come standard from Google, others you create yourself.  These get pulled into Tableau.

  3. Select the dimensions and measures you want to use in your analysis.
    1. For our purposes, we'll look at the same metrics we mentioned previously.

    Select the dimentions and measures you want to use.

  4. Click Sheet 1 at the bottom left to begin editing within Tableau.

  5. Drag your Date dimension to the Column shelf and drag your Sessions measure to the Row shelf in your Tableau canvas.

  6. Change the drop-down menu on Marks at the left from Automatic to Area.


  7. Change Marks from Automatic to Area

  8. By default, the date level-of-detail will be set to the year level. Hover on the date field and click on the drop-down arrow. Select Week Number.
  9. Select week number for level of detail.

  10. Now, right-click your metric axis and select Add Reference Line.
  11. Add Reference Line

  12. In the window that pops up, select the Average option from Value and change the Label to Value.
  13. Select Average option and change label to Value.


    Your chart should now look like this:

    Area Chart

  14. Now that you have the area chart set up, let's include a line chart to make our chart pop. This step is so that our chart will have both the solid line at the top and the shaded in area below, which makes it look nicer. In your measure shelf, drag your Sessions metric again and bring it into the view as shown below.
  15. Multiple Sessions metric displayed.


    You will now notice two charts on your canvas. On the Marks card you will notice that there are two instances of the Sessions metric displayed there as well.

    Multiples

  16. Select the second metric on Marks and in the chart options, select Line.
  17. Chart Options

  18. Right-click the second Sessions measure in the Rows shelf and select Dual Axis.
  19. Dual Axis


    Pay attention to your axes after using this feature. You will notice that they do not match after performing the dual axis.

    Unmatched Axes after dual axis.

    You need to make sure both axes match; otherwise, your analysis will be incorrect.

  20. Right-click the right axis of the chart and select Synchronise Axis.
  21. Sychronise Axis

  22. Your final view should now look as shown below. Rename your Sheet Name from the default "Sheet 1" to "Visits."
  23. Final View

    Rename Sheet

    Now that you have built the chart, you may also want to add a KPI that gives you some additional information to the chart. For this example, we want to compute the overall number of sessions or visits-to-date. To do that, use a Level of Detail calculation.

  24. Open the Calculated field editor by selecting the drop-down arrow in the right-side of your data pane (i.e., where you have you dimensions & measures).
  25. Open the Calculated field editor.

  26. Type in the formula below. Notice the calculation is wrapped in curly brackets { }; this the level of detail calculation mentioned earlier. Using this allows us to show the overall number of Sessions regardless of whether a filter is applied to your chart or not. Note that not all the computations will work the same as below.
  27. Type in the formula.

  28. Give the calculation a title. E.g., Overall Sessions. Click OK.

  29. You can find your new calculation in the Measures pane at the bottom left.
  30. Measures Pane

  31. Drag the Overall Sessions field and place that on the Details shelf, as shown below.
  32. Drag Overall Sessions to Details shelf.

    By default, your chart title will display the name of your Sheet. To change this:

  33. Double-click the title of your chart to bring up the Edit Title menu. Clear out the default title.

  34. On the right-hand side, click the little arrow on the right-hand side and select the Overall Sessions field.
  35. Select Overall Sessions

  36. You can use the options on the Title Edit menu to format the text the way you want.
  37. Edit the Title

  38. Repeat these steps for all other metrics you want to analyze.

Now that you have completed all your charts, it's time to bring them together into a cohesive dashboard that allows you to see your site at-a-glance. See the example below:Analytics Dashboard

Building Your Dashboard

On the top menu option, select Dashboard > New Dashboard to launch a new Dashboard canvas.

New Dashboard

You can also click on the bottom of the Tableau workbook to achieve the same result.

Steps

  1. Click on the Horizontal Layout container from the Objects section and drag it onto your dashboard canvas.
  2. Horizontal Layout container

  3. From the Sheets section, drag your first Sheet (in this example, Visits) and place it into the container.
  4. Drag first sheet into container.

  5. Drag the next sheet and drop it to the right of the Visits sheet. Make sure it is being placed within the layout container. Take note of how the second sheet is highlighted to the right. This tells you that it is within the layout container.
  6. Drag the next sheet into the container.

  7. Introduce the third sheet into the layout container. You view should look like the screenshot below.
  8. Add third sheet.

    Now we want to make sure all the charts or sheets within this layout container are sized correctly.

  9. Click on any of the three sheets. You will see an arrow appear at the top right of the sheet. In the drop-down menu, Select Layout Container.
  10. Select Layout Container

  11. Once the layout container is selected, click on the arrow on the right and in the drop-down menu select Distribute Contents Evenly.
  12. Distribute Contents Evenly

  13. Drag another Horizontal Container from the Objects section at the bottom left and place it underneath the first one, as shown below.
  14. Drag another Horizontal Container

  15. Repeat steps 2 to 6 using the next group of sheets.

  16. Introduce another container and repeat the above steps again until you have all your sheets arranged as shown in the screenshot below.
  17. Repeat steps until all all sheets are included. 

  18. At the bottom of your Objects section, select Show dashboard title.
  19. Show Dashboarrd Title

    Dashboard

    You will notice a container pops up at the top of your dashboard displaying the default dashboard title. Just like the sheet, the default dashboard name will also be the name that displays at the top.

  20. Double click the title and rename it to Web Analytics Dashboard. You can also double-click the default name (i.e. Dashboard 1) at the bottom of your page and rename it there.

Now that you have built your dashboard, it is time to analyze it for insights and then make improvements based upon your findings. Happy analyzing!


Author: Lawer Akrofi, who holds a master's degree in Business Administration with a concentration in IT Management as well as a bachelors in Economics. Lawer has over three years of experience in visualization and dashboard development and spends his free time contributing to Tableau community projects such as #MakeoverMonday and #DataforaCause. 

Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan