Add prettier configuration

This commit is contained in:
Hazem Krimi
2023-07-01 00:38:49 +01:00
parent de22cafb12
commit 5e01140d6e
57 changed files with 1896 additions and 1718 deletions
+12 -11
View File
@@ -1,19 +1,20 @@
export const GOOGLE_ANALYTICS_KEY = process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_KEY;
export const GOOGLE_ANALYTICS_KEY =
process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_KEY;
export const pageview = (url: any) => {
// @ts-ignore
window.gtag('config', GOOGLE_ANALYTICS_KEY, {
page_path: url
});
// @ts-ignore
window.gtag('config', GOOGLE_ANALYTICS_KEY, {
page_path: url,
});
};
export const event = ({ action, category, label, value }: any) => {
// @ts-ignore
window.gtag('event', action, {
event_category: category,
event_label: label,
value: value
});
// @ts-ignore
window.gtag('event', action, {
event_category: category,
event_label: label,
value: value,
});
};
export const initAnalytics = () => `