diff --git a/.gitignore b/.gitignore index ca0f3c4f..8b349dbb 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ # production /build /public/umami.js +/public/snippet.js /lang-compiled /lang-formatted diff --git a/components/forms/TrackingCodeForm.js b/components/forms/TrackingCodeForm.js index a98b471d..36dda30e 100644 --- a/components/forms/TrackingCodeForm.js +++ b/components/forms/TrackingCodeForm.js @@ -17,12 +17,15 @@ export default function TrackingCodeForm({ values, onClose }) { />

+ {/* Run `npm run build-snippet, and copy paste here the content of public/snippet.js */} + {/* TODO: use webpack importing function to import the content of the file here ? */}