I've inherited a web application that's been built with React and already uses the Firebase SDK. I have been asked to add Firebase Analytics to the project, but I can't find any documentation to describe how you do it in a React web application.
I can see the following are defined in the package.json file;
"filestack-js": "^3.14.0",
"filestack-react": "^3.1.0",
"firebase": "^7.14.2",
"firebase-tools": "^8.4.1",
and there's some Firebase configuration in the .env files of the project, to which I've added the FIREBASE_MEASUREMENT_ID, see below;
REACT_APP_HTML_TITLE="sdfsdfsdf"
REACT_APP_FIREBASE_API_KEY="Asdfsdfsdf"
REACT_APP_FIREBASE_AUTH_DOMAIN="sdfsdfsdf"
REACT_APP_FIREBASE_DATABASE_URL="sdfsdfsdf"
REACT_APP_FIREBASE_PROJECT_ID="sdfsdfsdf"
REACT_APP_FIREBASE_STORAGE_BUCKET="sdfsdfsdf"
REACT_APP_FIREBASE_MESSAGING_SENDER_ID="sdfsdfsdf"
REACT_APP_FIREBASE_APP_ID="sdfsdf"
REACT_APP_FIREBASE_MEASUREMENT_ID="G-sdfsdfsdf"
Is there anything I need to do, or should the Firebase SDK automatically handle setting up Analytics in the app?