Skip to content
Add Google Analytics insights for your website in your Cosmic JS Dashboard
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
extension
public/js
routes
views
.babelrc
.gitignore
README.md
app-server.js
app.js
extension.zip
npm-debug.log
package-lock.json
package.json

README.md

Google Analytics

Cosmic JS Extension that adds Google Analytics insights for your website directly in your Cosmic JS Dashboard. Simply add the Google Analytics View ID for your website in your Cosmic JS Bucket.  Read the blog article to learn how it was built.

Getting Started

git clone https://github.com/cosmicjs/google-analytics-extension
cd google-analytics-extension
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.

You can’t perform that action at this time.