A simple React application that retrieves a Client ID from local storage and sets the Google Analytics Client ID to that value. If a value was not previously set, one is generated. This is done to ensure consistent tracking of a user between sessions.
To test setting the Client ID used by Google Analytics in the local storage of the browser.
This is a react web application.
- Ensure
gitandnodeare installed. - Clone this project with
git clone git@github.com:thirionjwf/ga-client-id.git. - Install pre-requisites (run
npm install). - Start the web server (run
npm start).