diff --git a/CHANGELOG.md b/CHANGELOG.md index a8d348b..fcebbbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.1.1 +* [#10: Fix `ga` stub.](https://github.com/haensl/google-analytics/issues/10) + ## 1.1.0 * [#5: Add `install` method.](https://github.com/haensl/google-analytics/issues/5) * Update dependencies. diff --git a/index.js b/index.js index 567f1b5..443a1fb 100644 --- a/index.js +++ b/index.js @@ -37,8 +37,8 @@ export const install = () => { } if (!window.gtag) { - window.gtag = function(...args) { - window.dataLayer.push(args); + window.gtag = function() { + window.dataLayer.push(arguments); // eslint-disable-line }; } diff --git a/package.json b/package.json index ad26080..3285d4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@haensl/google-analytics", - "version": "1.1.0", + "version": "1.1.1", "description": "Google Analytics 4 service abstraction for gtag and measurement protocol.", "module": "index.js", "type": "module",