minimal-analytics
minimal-analytics copied to clipboard
How to use minimal analytics CDN-script with GA4? without node
I tried using https://minimalanalytics.com/ on my website. I placed the script in the head and replaced the identifier. It didn't work; I got an error in the console.
Then, I found out that the current version of the script is located here: https://cdn.jsdelivr.net/npm/@minimal-analytics/ga4/dist/index.js. However, I couldn't find how to adapt it for a regular website without Node.js. Where should I insert the Track ID?
Could you please tell me if this solution still works?