diff --git a/package.json b/package.json
index 29717f5..ba0a318 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
- "lint": "tsdx lint",
+ "lint": "tsdx lint --fix",
"prepare": "tsdx build",
"size": "size-limit",
"analyze": "size-limit --why"
diff --git a/src/apis/ga.ts b/src/apis/ga.ts
index ad34a37..b53aece 100644
--- a/src/apis/ga.ts
+++ b/src/apis/ga.ts
@@ -1,12 +1,12 @@
-import { GoogleAnalyticsApi } from "../types";
+import { GoogleAnalyticsApi } from '../types';
export const googleAnalytics: GoogleAnalyticsApi = {
pageview: (url, id) => {
- (window as any)?.gtag?.("config", id, {
+ (window as any)?.gtag?.('config', id, {
page_path: url,
});
},
event: (name, params) => {
- (window as any)?.gtag?.("event", name, params);
+ (window as any)?.gtag?.('event', name, params);
},
};
diff --git a/src/components/GoogleAnalytics/index.tsx b/src/components/GoogleAnalytics/index.tsx
index 51cad3d..4ed1f77 100644
--- a/src/components/GoogleAnalytics/index.tsx
+++ b/src/components/GoogleAnalytics/index.tsx
@@ -1,9 +1,9 @@
-import React from "react";
-import Script from "next/script";
+import React from 'react';
+import Script from 'next/script';
-import { GoogleAnalyticsComponent } from "../../types";
+import { GoogleAnalyticsComponent } from '../../types';
-import { useGoogleAnalytics } from "../../hooks/useGoogleAnalytics";
+import { useGoogleAnalytics } from '../../hooks/useGoogleAnalytics';
export const GoogleAnalytics: GoogleAnalyticsComponent = ({ id }) => {
useGoogleAnalytics(id);
@@ -18,11 +18,11 @@ export const GoogleAnalytics: GoogleAnalyticsComponent = ({ id }) => {
return (
<>