This sample application shows how to integrate your Node.js application with Google Analytics on Google App Engine.
App Engine standard environment users: See tutorial Integrating with Google Analytics for more information on running and deploying this app.
App Engine flexible environment users: See tutorial Integrating with Google Analytics for more information on running and deploying this app.
Before you can run or deploy the sample, you need to do the following:
-
Refer to the appengine/README.md file for instructions on running and deploying.
-
Create a Google Analytics Property and obtain the Tracking ID.
-
Add your tracking ID to
app.yaml. -
Install dependencies:
npm install
GA_TRACKING_ID=YOUR_TRACKING_ID npm start
gcloud app deploy app.standard.yaml
gcloud app deploy app.flexible.yaml
gcloud app deploy app.flexible_os.yaml
See Contributing.