Skip to content

SitewizAI/GA4-Agent

Repository files navigation

GA4 Agents Workshop Setup Instructions

Welcome to the GA4 Agents workshop! Follow the steps below to get your environment set up and ready to run.

Useful Links (at the top)

1. Authenticate Google Cloud

First, authenticate with Google Cloud to get your required access token.

gcloud auth application-default login
gcloud auth application-default print-access-token

2. Upload GA4 Agent to Langflow

To proceed, you'll need to upload the Simple GA4 Agent.json file to Langflow. Without this, the agents won’t work properly. You can either:

  • Upload the JSON to your own instance of Langflow (Preferred)
  • Duplicate the Langflow space: Langflow GA4 Agent

3. Set Up API Keys

Ensure you set up both the openai_api_key and bigquery_api_key in the appropriate fields. The bigquery_api_key can be obtained by running:

gcloud auth application-default login
gcloud auth application-default print-access-token

4. Explore the Agent Flows

Each Analyst Agent represents a large language model (LLM) that processes instructions, creates, and runs SQL queries on BigQuery. The model will understand and process the output and even suggest queries to run next.

Feel free to experiment with the prompts, edit the agents, and add more by:

  • Ungrouping an agent

  • Making your changes

  • Regrouping the agent

5. Run on Your Own BigQuery Dataset

You can also run the agents on your own BigQuery dataset instead of the public eCommerce one, enabling you to automate insights from your Google Analytics.

Additional Useful Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published