We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb790d commit 83973ddCopy full SHA for 83973dd
src/utils/analytics.js
@@ -1,13 +1,9 @@
1
-import Analytics from "analytics";
2
-import googleAnalyticsPlugin from "@analytics/google-analytics";
3
-
4
-const analytics = Analytics({
5
- debug: process.env.NODE_ENV !== "production",
6
- plugins: [
7
- googleAnalyticsPlugin({
8
- trackingId: "UA-195006-22",
9
- }),
10
- ],
11
-});
+const analytics = {
+ track(...args) {
+ if (typeof window !== "undefined" && window.plausible) {
+ window.plausible.apply(this, [...args]);
+ }
+ },
+};
12
13
export default analytics;
0 commit comments