Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from gaurav-nelson/gatrackchq
Browse files Browse the repository at this point in the history
added ga
  • Loading branch information
Gaurav Nelson committed Feb 9, 2018
2 parents 2e09c62 + 3145aa0 commit 0a19032
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
9 changes: 9 additions & 0 deletions asciidoc-link-check
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ var program = require('commander');
var request = require('request');
var url = require('url');
var path = require('path');
const uuidv4 = require('uuid/v4');
var thisuuid = uuidv4();

request({
uri: "https://www.google-analytics.com/collect",
method: "POST",
form: {"v": "1", "t": "event", "tid": "UA-106891751-2", "cid": thisuuid, "ec":"linkcheck", "ea":"main" }
});

var statusLabels = {
alive: chalk.green('✓'),
Expand Down Expand Up @@ -47,6 +55,7 @@ stream.on('data', function (chunk) {
}).on('end', function () {
console.log(chalk.cyan('\nFILE: ' + filenameOutput))
asciidocLinkCheck(asciidoc, opts, function (err, results) {

if (results.length === 0) {
console.log(chalk.yellow('No hyperlinks found!\n'))
}
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"link-check": "^4.3.3",
"lodash": "^4.17.5",
"progress": "^2.0.0",
"request": "^2.83.0"
"request": "^2.83.0",
"uuid": "^3.2.1"
}
}

0 comments on commit 0a19032

Please sign in to comment.