• Stars
    star
    238
  • Rank 169,306 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Chrome, Firefox & Opera devtools extension for debugging Google Analytics tracking code

Google Analytics Debugger Extension

Google Analytics Debugger in Chrome (above) and Firefox (below)

Google Analytics Debugger is a devtools extension for Chrome, Firefox and Opera that exposes tracking beacon data to developers so they can test their analytics implementations. The extension will capture tracking beacons from Classic/Traditional Analytics and Universal Analytics.

Google Analytics Debugger will log the following interactions and data:

  • Page views
  • Events
  • E-commerce transactions
  • User timings
  • Social interactions
  • Custom variables
  • Custom dimensions
  • Custom metrics
  • Content groups
  • Campaign tracking

Prerequisites

Requirements

  • NodeJS / NPM
  • Grunt CLI

Setup

npm install

Building

The easiest way to get started is to simply run:

grunt

This will build the core, the browser extensions and start a watch task. If you want to build components or extensions individually you can use:

grunt core                   // builds the core
grunt core chrome            // builds the chrome extension (requires core)
grunt core firefox           // builds the firefox extension (requires core)

Installing the extension for development

Chrome

First, make sure you've built the chrome extension. Browse to chrome://extensions, tick the 'Developer mode' option, click 'Load unpacked extension' and select the build/chrome folder. If all goes well, when you open/restart devtools you should see a 'GA Debugger' panel.

If you modify the core or chrome source code you'll need to rebuild the extension (the watch task will do this for you) and then restart devtools to see your changes.

Firefox

You can only develop and test add-ons using the Developer Editon of Firefox. Release versions of Firefox require add-ons to be digitally signed before they can be installed.

First, make sure you've built the Firefox add-on. Next, launch Firefox and browse to about:debugging. Click the 'Load Temporary Add-on' button, browse to your add-on's build folder and select the install.rdf file. If your add-on loads correctly, Google Analtics Debugger should appear in the extensions list. You can now open devtools and select the 'GA Debugger' tab.

If you modify the core or add-on source code you'll need to rebuild the extension (the watch task will do this for you) and click the 'Reload' button in the Add-on debugger menu to see your changes.

Opera

To install the extension in Opera, follow the steps above for Chrome.

Building distributable extensions

The dist task will package each extension into its distributable format, ready to be installed in the browser. You can run this task (once you have build the extensions) using:

grunt dist                    // create distributable extensions

Notes

The GA debugger repository contains GACore and the browser extensions. GACore is a library for inspecting Google Analytics tracking beacons and is used by all browser extensions. GACore can also stand alone if required.

More Repositories

1

selectivizr

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
JavaScript
1,715
star
2

ZzFXM

A super small music generator for use in size-limited JavaScript productions
JavaScript
382
star
3

3d-model-element

A custom element for rendering inline 3D models in a HTML document and allowing them to be transformed with CSS.
JavaScript
204
star
4

css-feature-toggle-devtools-extension

A devtools extension for toggling CSS features allowing developers to see how pages/apps render in browsers that don't support modern CSS features
JavaScript
157
star
5

fuse-devtools

A boilerplate for creating a devtools extension for multiple browsers from a single code base.
JavaScript
134
star
6

JQuery-Extended-Selectors

Extends jQuery to add support for CSS3 xxx-of-type selectors
134
star
7

cssvr

CSSVR is an experiment that simulates browser support for creating VR experiences using media queries and CSS transforms.
JavaScript
82
star
8

ComputedStyleObserver

Prototype implementation of a `computedStyle` observer for DOM elements
JavaScript
19
star
9

surrogate

This is a tiny JavaScript library targeted at modern web browsers and designed to mimic the common parts of jQuery's funtions and syntax using modern ECMAScript and DOM implementations
JavaScript
4
star
10

imagedata

A collection of packages for working with images in JavaScript environments that don't implement the ImageData interface.
JavaScript
2
star
11

zzfxm-songs

A collection of songs for use with ZzFXM
2
star
12

sculpt

JavaScript
2
star
13

stylescribe

Stylescribe is a CSS documentation generator. It's goal is to produce a reference document that can be used to quickly build web pages without having to dive into the inner workings of a projects CSS.
JavaScript
2
star
14

atari-chunked-blits

Testing the feasibility of automatically breaking HOG blits into smaller chunks, allowing large objects to be drawn without interfering with interrupts
Assembly
2
star
15

selection-element

A web component for selecting HTML elements or other web components.
JavaScript
1
star