Skip to content

Instantly share code, notes, and snippets.

View jhpacker's full-sized avatar

Jason Packer jhpacker

  • https://www.quantable.com
  • Columbus, OH
View GitHub Profile
@jhpacker
jhpacker / get_ga_resources.js
Last active June 6, 2018 15:25 — forked from duncanmorris/get_ga_resources.js
Using PhantomJS to monitor Google Analytics - full code
// initialise various variables
var page = require('webpage').create(),
system = require('system'),
address;
// how long should we wait for the page to load before we exit
// in ms
var WAIT_TIME = 5000;
// if the page hasn't loaded after this long, something is probably wrong.