Add the Google Analytics View ID for your wesite in your Cosmic JS Bucket. Read the blog article to learn how it was built.
git clone https://github.com/WaqasArshad777/google-analytics-app.git
cd google-analytics-app
npm install
npm run start
To add this Extension to your Bucket simply install it from Your Bucket > Extensions > Browse Extensions and find this Extension.
Or you can upload the build as a zip file to your Bucket:
- Zip the extension folder in the project.
- Go to Your Bucket > Extensions > Upload Extension and drop the zip file
To build your own Cosmic JS Extension, read the Cosmic JS Extensions documentation.