Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 411 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 411 Bytes

jsdom adding Piwik tracking code to HTML

This is an example of using jsdom to add Piwik tracking code to an HTML file.

Running it

  1. Install depencies $ npm install

  2. Launch the app from the Terminal:

    $ node index.js

The file sample_tracking.html based on sample.html will be created (or overwritten). It contains the Piwik tracking code as first script tag inside the body element.