Skip to content

luk14236/google-analytics-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ga-integration.ipynb

This notebook contains integration code for Google Analytics 4 (GA4) using Python.

Requirements

  • Python 3.x
  • Libraries:
    • beautifulsoup4==4.11.1
    • cachetools==5.2.0
    • certifi==2022.9.24
    • charset-normalizer==2.1.1
    • google-analytics-data==0.14.2
    • google-api-core==2.10.2
    • google-auth==2.13.0
    • googleapis-common-protos==1.56.4
    • grpcio==1.50.0
    • grpcio-status==1.50.0
    • hvac==1.0.2
    • idna==3.4
    • proto-plus==1.22.1
    • protobuf==4.21.9
    • pyasn1==0.4.8
    • pyasn1-modules==0.2.8
    • pyhcl==0.4.4
    • python-dotenv==0.21.0
    • requests==2.28.1
    • rsa==4.9
    • six==1.16.0
    • soupsieve==2.3.2.post1
    • urllib3==1.26.12

To install the required libraries, run: !pip install beautifulsoup4==4.11.1 cachetools==5.2.0 certifi==2022.9.24 charset-normalizer==2.1.1 google-analytics-data==0.14.2 google-api-core==2.10.2 google-auth==2.13.0 googleapis-common-protos==1.56.4 grpcio==1.50.0 grpcio-status==1.50.0 hvac==1.0.2 idna==3.4 proto-plus==1.22.1 protobuf==4.21.9 pyasn1==0.4.8 pyasn1-modules==0.2.8 pyhcl==0.4.4 python-dotenv==0.21.0 requests==2.28.1 rsa==4.9 six==1.16.0 soupsieve==2.3.2.post1 urllib3==1.26.12

Usage

  1. Setup Credentials: Replace [credentials].json with your Google Analytics credentials file.
  2. Setup Base URL: Replace [BASE_URL] with the base URL of your API endpoint.
  3. Setup GA Property ID: Replace [GA_PROPERTY_ID] with your Google Analytics property ID.
  4. Run the Notebook: Execute the notebook cell by cell.

Overview

This notebook demonstrates how to integrate with the Google Analytics 4 (GA4) API using Python. It provides functions to call API endpoints, fetch data from Google Analytics, and process the results.

How it Works

  • The notebook defines functions to interact with the Google Analytics API.
  • It fetches data from the GA4 property using the provided credentials and property ID.
  • The fetched data is processed and stored for further analysis.

About

This notebook contains integration code for Google Analytics 4 (GA4) using Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors