Published unlisted
Edited
Nov 13, 2018
9 stars
Insert cell
Insert cell
Insert cell
ga = {
const ga = await require("https://www.google-analytics.com/analytics.js").catch(() => window.ga);
ga("create", "UA-XXXXX-Y", "auto");
ga("send", "pageview", html`<a href>`.pathname);
return ga;
}
Insert cell
Insert cell
gtag = {
await require("https://www.googletagmanager.com/gtag/js?id=UA-XXXXXX-XX").catch(() => {});
const dataLayer = window.dataLayer = window.dataLayer || [];
return function() { dataLayer.push(arguments); };
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more