✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
create gtag scripts
AykutSarac70ff69eb0df1
diff --git a/src/utils/gtag.ts b/src/utils/gtag.tsnew file mode 100644index 00000000..d43fea12--- /dev/null+++ b/src/utils/gtag.ts@@ -0,0 +1,18 @@+// @ts-nocheck+export const GA_TRACKING_ID = "G-JKZEHMJBMH";++// https://developers.google.com/analytics/devguides/collection/gtagjs/pages+export const pageview = (url: string) => {+ window.gtag("config", GA_TRACKING_ID, {+ page_path: url,+ });+};++// https://developers.google.com/analytics/devguides/collection/gtagjs/events+export const event = ({ action, category, label, value }) => {+ window.gtag("event", action, {+ event_category: category,+ event_label: label,+ value: value,+ });+};