Skip to content

A real-time log-based Matomo tracker for sites hosted on App Engine

Notifications You must be signed in to change notification settings

ScottEvtuch/matomo-appengine-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matomo Tracking for AppEngine Logs

This repo contains a Python script intended to be used as a Google Cloud Function for log-based tracking of a site hosted in Google App Engine. The functionality should be similar to using Matomo's log analytics tool on a traditional site hosted on an Apache server, for example.

Usage

Configuration

The only required configuration is to update the config.json with your Matomo information:

"MATOMO_URL": "https://analytics.example.com/matomo.php",
"AUTH_TOKEN": "your_api_key",
"SITE_ID": 0,

Cloud Build

A cloudbuild.yaml file is included that will set up all of the required Google Cloud Platform configuration. All that is required is to grant the Cloud Build service account the following IAM roles:

  • Cloud Build Service Account
  • Cloud Functions Developer
  • Service Account User
  • Logs Configuration Writer
  • Pub/Sub Admin

About

A real-time log-based Matomo tracker for sites hosted on App Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages