-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #280 from jeffeb3/fix/google-analytics
try to get google analytics working again
- Loading branch information
Showing
4 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
import ReactGA from "react-ga" | ||
import ReactGA from "react-ga4" | ||
|
||
ReactGA.initialize("UA-126702426-1", { | ||
debug: false, // Set to true to see debug info in the console | ||
}) | ||
ReactGA.pageview(window.location.pathname + window.location.search) | ||
ReactGA.initialize("UA-126702426-1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import "jest-canvas-mock" | ||
|
||
jest.mock("react-ga") | ||
jest.mock("react-ga4") |