Skip to content

Instantly share code, notes, and snippets.

View garrettbear's full-sized avatar
🏗️
building

Garrett Bear garrettbear

🏗️
building
View GitHub Profile
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {