Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Google Analytics Measurement Protocol on Google App Engine flexible environment

This sample demonstrates how to use the Google Analytics Measurement Protocol on Google App Engine flexible environment.

Setup

Before you can run or deploy the sample, you need to do the following:

  1. Create a Google Analytics Property and obtain the Tracking ID.
  2. Update the environment variables in app.yaml with your Tracking ID.

Running locally

Refer to the appengine/README.md file for instructions on running and deploying.

To run locally, set the environment variables via your shell before running the sample:

export GA_TRACKING_ID=<your-tracking-id>
bundle install
bundle exec ruby app.rb