This is the sample application for the Integrating with Google Analytics tutorial tutorial found in the Google App Engine Node.js Flexible Environment documentation.
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:
With
npm:npm installor with
yarn:yarn install
With npm:
GA_TRACKING_ID=YOUR_TRACKING_ID npm start
or with yarn:
GA_TRACKING_ID=YOUR_TRACKING_ID yarn start
With npm:
npm run deploy
or with yarn:
yarn run deploy
See Contributing.