Skip to content

Commit

Permalink
Merge pull request #7 from haensl/10
Browse files Browse the repository at this point in the history
#10: Fix ga stub.
  • Loading branch information
haensl authored Apr 26, 2024
2 parents 2b52de0 + 7a3a2d2 commit 7742b92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 7742b92

Please sign in to comment.