mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Add prettier configuration
This commit is contained in:
+12
-11
@@ -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 = () => `
|
||||
|
||||
Reference in New Issue
Block a user