Update Google Analytics tracker config

Removes the following fields from the tracker
config:
- `name`, which was erroring due to it
  including a `.`
- `displayFeaturesTask` which seems to be
  deprecated

Also refactors the `create` command to put all
fields into the options parameter, as shown in the
developer docs:

https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers
This commit is contained in:
Tom Byers
2020-01-22 11:45:10 +00:00
parent 1cd96d7e2f
commit 0885dde2c1
2 changed files with 7 additions and 4 deletions

View File

@@ -24,9 +24,8 @@
trackingId: trackingId,
cookieDomain: 'auto',
anonymizeIp: true,
displayFeaturesTask: null,
allowAdFeatures: false,
transport: 'beacon',
name: 'GOVUK.analytics',
expires: 365
});