KNOWLEDGE BASE

Receiving error "Missing required context variable" when attempting to connect to Google Analytics


Published: 24 Feb 2016
Last Modified Date: 24 Aug 2022

Issue

When attempting to connect to Google Analytics from Tableau Desktop, you may receive the error:
 
"Missing required context variable"

Environment

  • Tableau Desktop 
  • Google Analytics

Resolution

If you are not using Google Analytics 4: 
  • Check for empty accounts, which means accounts without any info in PROPERTY or VIEW, in your Google Analytics Account.
If you are using Google Analytics 4:
  • Set up a new site where both Universal Analytics and GA4 run in parallel. 

Cause

This issue can have the following causes:
  • Missing "Property" or "View" field due to an empty account.
  • Google Analytics version 4 property is not currently supported.
Did this article resolve the issue?