From 5833d82cedafcac0503ba95d552af995a578f5cc Mon Sep 17 00:00:00 2001 From: Matthias Isler Date: Thu, 2 Aug 2018 16:22:10 +0200 Subject: [PATCH] Added option to set TrackingID --- README.md | 4 ++-- dist/ga-legacy-cookie-parser.min.js | 2 +- dist/ga-legacy-cookie-parser.pack.js | 2 +- package.json | 2 +- src/ga-legacy-cookie-parser.js | 12 +++++++----- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3a50a8e..59ac315 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ library, it replicates the tracking functionality of Google Analytics. # Constructor -* `new GAParser([domains], limitRelevant = true)` +* `new GAParser([domains], trackingId = 'UA-XXXYYYZZZ-1', limitRelevant = true)` Returns a new instance. `domains` must be an array of all domains you want to include in tracking. @@ -54,7 +54,7 @@ Adds a hidden input to the specified form containing a JSON string with parsed i ``` - +