Google Analytics

Add the Google Analytics View ID for your wesite in your Cosmic JS Bucket. Read the blog article to learn how it was built.

Getting Started

git clone https://github.com/WaqasArshad777/google-analytics-app.git
cd google-analytics-app
npm install
npm run start

http://localhost:5000?bucket_slug=your-bucket-slug&read_key=bucket-read-key&write_key=bucket-write-key.

Installing the Extension

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:

  1. Zip the extension folder in the project.
  2. Go to Your Bucket > Extensions > Upload Extension and drop the zip file

Documentation

To build your own Cosmic JS Extension, read the Cosmic JS Extensions documentation.