This document provides a high level overview of the Google Analytics Embed API.


The Google Analytics Embed API is a JavaScript library that allows you to easily create and embed a dashboard on a 3rd party website in a matter of minutes. It gives you a set of pluggable components that can work together to build complex tools, making it both simple and powerful at the same time.

A dashboard built with the Embed API.

With the Embed API you get:

  • A one-click Google Analytics sign-in button, so you don't have to handle authorization yourself.
  • A built-in view (profile) selector, so you can easily compare data from multiple views at the same time.
  • Integration with Google charts to give you the same visualizations you see in the Google Analytics website.
  • Full access to run your own queries, allowing you to use third-party visualization tools like d3.js and chart.js.
  • The ability to build and package your own components, so you can easily reuse or share them with others.

Getting Started

The fastest way to get started with the Embed API is to read the developer guide, which walks you through the complete process of building a simple dashboard from scratch.

Next Steps

Once you understand how the API works, dive deeper by familiarizing yourself with the API reference. If you'd like to build your own components, check out the creating custom components developer guide. You can also find sample components on Github.