HAR Viewer is a web application that allows visualizing HTTP Archive logs (HARs)
JavaScript PHP CSS HTML ActionScript Batchfile
Latest commit 21c3513 Aug 21, 2016 @gitgrimbo gitgrimbo Use modern Google Universal Analytics tracking code
From Google themselves: "ga.js is a legacy library".

Replace `ga.php` with `analytics.include`. `analytics.include` contains the
modern script to include Google Analytics.

https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs

These changes also move the analytics from a PHP include to a build-time
step, providing a pathway for the HAR Viewer app to move from PHP to plain
HTML.

README.md

Stable URL (v2.0.17, 21 March 2016) - http://www.softwareishard.com/har/viewer/

Up-to-date master - http://gitgrimbo.github.io/harviewer/master/ (and https)

HAR Viewer

License

HAR Viewer is free and open source software distributed under the BSD License.

Components

Build Tools

Testing

Development

Linting

HAR Viewer uses ESLint for linting. It will be installed when you run npm install from the project root.

To show lint errors only:

npm run eslint

To show lint errors and warnings:

npm run eslint-full

Build

The HAR Viewer build process uses Ant as its build tool. To see a list of available tasks, use ant -p at the command line.

A build can be performed in one of three ways.

1) Node.js

This is the default and preferred method. Node.js must be installed. To start a build, go to the project directory and execute the following command:

ant build

(Indicative build time - about 9 seconds. Node.js v6.0.0)

2) Java 8 with Nashorn

To build using the jjs command, Java 8 must be installed. Execute the following command:

ant -Drjs.runner=nashorn build

(Indicative build time - about 1 minute 37 seconds. nashorn 1.8.0_92)

3) Pre-Java 8 with Rhino

To build using Java 7 or earlier, execute the following command:

ant -Drjs.runner=java build

You will have to set the optimize build configuration value to "closure", for example:

optimize: "closure",

(Indicative build time - about 42 seconds)

Version and Google Analytics

Certain build properties can be overridden at the command line. For example, to provide the VERSION and GOOGLE-ANALYTICS-PROFILE values:

ant build -DVERSION=3.0.0 -DGOOGLE-ANALYTICS-PROFILE=TRACKING_ID_HERE