Google Analytics Extension


With the Cosmic JS Extension functionally, anyone can embed their own custom app inside the Cosmic Dashboard!

In this article I will show you how to configure and use this Google Analytics Extension to view Google Analytics insights directly in your Cosmic JS Bucket Dashboard. 

TL;DR

Go to the Google Analytics Extension page
View the full codebase on GitHub
Install the Extension in your Bucket in Your Bucket  > Extensions > Browse Extensions
View the Extension documentation for more information on building an Extension

The Extension we're building

We're integrating a simple Extension that allows you to view your Google Analytics data in your Cosmic JS Bucket. All you need to do is login with your Google Account and add your VIEW_ID.

Usage

  1. Go to your google analytics dashboard. Select the project which you want to use. Go to the admin settings > View Settings and copy the view ID.


  2. Click on the Analytics menu on the left nav in your cosmic dashboard. Authorize using your google account.


  3. Enter the View ID you copied above and submit.


  4. You will see your Analytics here :)

Was this article helpful?

Thank you! Your input helps us improve our articles and resources. If you have any other questions or comments, please contact support.

You may also like


Todo List app built using Svelte that utilizes the power of Cosmic JS.
This is a JAMstack app with the power of Cosmic JS. In JAmstack, Vue.js is used as Javascript part, Cosmic JS as API and Nuxt.js as Markup.
In this tutorial, I'm going to show you how to create a elegant Recipe App using Vue2, Vuex, Vuetify and Cosmicjs.
Cosmic JS makes it easy to deploy your websites and applications to the web. You can deploy an app from any git repository to the Cosmic App Server from any Bucket. Cosmic JS uses Dokku (Docker + Heroku-like deployment) to deploy your app from any GitHub, BitBucket or any other public repo.
Why should you migrate your CMS? What's the big deal about Cosmic? This article should answer some questions you have about cosmicJS and what the pros and cons are of using an API-driven Content Management System
Cosmic JS allows developers to deploy their codebases to the Cosmic JS App Server for staging, testing and demo purposes, and is now offering new production deployment options available with some of your favorite deployment services.