Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Integrating with Google Analytics

This is the sample application for the Integrating with Google Analytics tutorial tutorial found in the Google App Engine Node.js Flexible Environment documentation.

Setup

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

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

  2. Create a Google Analytics Property and obtain the Tracking ID.

  3. Add your tracking ID to app.yaml.

  4. Install dependencies:

    With npm:

    npm install
    

    or with yarn:

    yarn install
    

Running locally

With npm:

GA_TRACKING_ID=YOUR_TRACKING_ID npm start

or with yarn:

GA_TRACKING_ID=YOUR_TRACKING_ID yarn start

Deploying to App Engine

With npm:

npm run deploy

or with yarn:

yarn run deploy

Running the tests

See Contributing.