ichiki1023 / create-react-app-with-ga

This project is google analytics sample with create-react-app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Analytics sample with Create React App

This project is google analytics sample with create-react-app.

Using

  • Create React App
  • TypeScript
  • ESlint
  • Prettier

Setup

Install dependencies

yarn

Add environment variable

Add REACT_APP_GA_MEASUREMENT_ID that is google analytics tracking id to .env.local.

example:

REACT_APP_GA_MEASUREMENT_ID=G-XXXXXXXXXX

How to use

Call yarn start, and then access to http://localhost:3000

About

This project is google analytics sample with create-react-app.


Languages

Language:TypeScript 72.9%Language:HTML 13.4%Language:CSS 7.5%Language:JavaScript 6.2%