๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰
It just took me 2.5 years, but finally got my head around it to release v1.11 :)

https://github.com/idarek/minimal-analytics-4

#googleanalytics4 #ga4 #minimalanalytics #minimalanalytics4 #measurementprotocol #googleanalytics

๐Ÿ‡ฌ๐Ÿ‡ง ๐—–๐—ผ๐—บ๐—ฏ๐—ถ๐—ป๐—ถ๐—ป๐—ด ๐— ๐—ฒ๐˜๐—ต๐—ผ๐—ฑ๐˜€ ๐˜๐—ผ ๐—ฃ๐—ฟ๐—ฒ๐˜ƒ๐—ฒ๐—ป๐˜ ๐—”๐—ฑ๐—ฏ๐—น๐—ผ๐—ฐ๐—ธ๐—ฒ๐—ฟ๐˜€ ๐—ณ๐—ฟ๐—ผ๐—บ ๐—•๐—น๐—ผ๐—ฐ๐—ธ๐—ถ๐—ป๐—ด ๐—ฌ๐—ผ๐˜‚๐—ฟ ๐— ๐—ถ๐—ป๐—ถ๐—บ๐—ฎ๐—น ๐—š๐—ผ๐—ผ๐—ด๐—น๐—ฒ ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ ๐Ÿฐ ๐—ฆ๐—ป๐—ถ๐—ฝ๐—ฝ๐—ฒ๐˜
https://dariusz.wieckiewicz.org/en/combining-methods-adblockers-google-analytics/

#GoogleAnalytics
#Redirect200
#minimalanalytics
#AdBlockPlus
#DuckDuckGo
#JavaScript

Combining Methods to Prevent Adblockers from Blocking Your Minimal Google Analytics 4 Snippet

When I developed my Minimal Google Analytics 4 snippet, I thought about preventing it from being blocked by various AdBlockers. Along with AdBlock Plus, I am also using the DuckDuckGo Privacy Protection extension in Safari. I am using the DuckDuckGo browser on its own as well. DuckDuckGo, along with restrictive ad blockers, tends to block requests heading to the google-analytics.com domain. This is done on purpose, and I fully understand that. This is why I described mitigation techniques (Minimal Analytics 4 - masking (hiding) requests). This technique allows you to utilize Redirect 200 to mask requests to external domains under your domain. By implementing a redirect as follows: /g/collect https://www.google-analytics.com/g/collect 200 Instead of calling the address below in a script https://www.google-analytics.com/g/collect I am calling this https://www.example.com/g/collect Behind the scenes, thanks to Redirect 200, I am sending requests to Google Analytics that are not blocked by either AdBlock Plus or DuckDuckGo. This solution, however, has 2 major flaws.

Dariusz Wiฤ™ckiewicz ๐Ÿ‡ฌ๐Ÿ‡ง

๐—ฉ๐—ฒ๐—ฟ๐˜€๐—ถ๐—ผ๐—ป ๐Ÿญ.๐Ÿญ๐Ÿฌ ๐—ฅ๐—ฒ๐—น๐—ฒ๐—ฎ๐˜€๐—ฒ๐—ฑ

๐Ÿ‡ฌ๐Ÿ‡ง ๐—” ๐˜ƒ๐—ฒ๐—ฟ๐˜† ๐— ๐—ถ๐—ป๐—ถ๐—บ๐—ฎ๐—น ๐—š๐—ผ๐—ผ๐—ด๐—น๐—ฒ ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ ๐Ÿฐ ๐—ฆ๐—ป๐—ถ๐—ฝ๐—ฝ๐—ฒ๐˜

https://dariusz.wieckiewicz.org/en/minimal-google-analytics-4-snippet/

๐˜ˆ ๐˜ท๐˜ฆ๐˜ณ๐˜บ ๐˜ฎ๐˜ช๐˜ฏ๐˜ช๐˜ฎ๐˜ข๐˜ญ ๐˜จ๐˜ฐ๐˜ฐ๐˜จ๐˜ญ๐˜ฆ ๐˜ข๐˜ฏ๐˜ข๐˜ญ๐˜บ๐˜ต๐˜ช๐˜ค๐˜ด 4 ๐˜ด๐˜ฏ๐˜ช๐˜ฑ๐˜ฑ๐˜ฆ๐˜ต ๐˜ข๐˜ญ๐˜ญ๐˜ฐ๐˜ธ๐˜ช๐˜ฏ๐˜จ ๐˜บ๐˜ฐ๐˜ถ ๐˜ต๐˜ฐ ๐˜ณ๐˜ฆ๐˜ค๐˜ฐ๐˜ณ๐˜ฅ ๐˜ฑ๐˜ข๐˜จ๐˜ฆ ๐˜ท๐˜ช๐˜ฆ๐˜ธ๐˜ด, ๐˜ด๐˜ช๐˜ต๐˜ฆ ๐˜ด๐˜ฆ๐˜ข๐˜ณ๐˜ค๐˜ฉ๐˜ฆ๐˜ด, ๐˜ด๐˜ค๐˜ณ๐˜ฐ๐˜ญ๐˜ญ๐˜ด ๐˜ข๐˜ฏ๐˜ฅ ๐˜ง๐˜ช๐˜ญ๐˜ฆ ๐˜ฅ๐˜ฐ๐˜ธ๐˜ฏ๐˜ญ๐˜ฐ๐˜ข๐˜ฅ๐˜ด ๐˜ฐ๐˜ฏ ๐˜บ๐˜ฐ๐˜ถ๐˜ณ ๐˜ธ๐˜ฆ๐˜ฃ๐˜ด๐˜ช๐˜ต๐˜ฆ ๐˜ธ๐˜ช๐˜ต๐˜ฉ๐˜ฐ๐˜ถ๐˜ต ๐˜ญ๐˜ฐ๐˜ข๐˜ฅ๐˜ช๐˜ฏ๐˜จ ๐˜ฐ๐˜ง๐˜ง๐˜ช๐˜ค๐˜ช๐˜ข๐˜ญ, ๐˜ฉ๐˜ฆ๐˜ข๐˜ท๐˜บ ๐˜ต๐˜ณ๐˜ข๐˜ค๐˜ฌ๐˜ช๐˜ฏ๐˜จ ๐˜ญ๐˜ช๐˜ฃ๐˜ณ๐˜ข๐˜ณ๐˜บ.

#GoogleAnalytics
#GoogleAnalytics4
#minimalanalytics
#minimalanalytics4

A very Minimal Google Analytics 4 Snippet

A very minimal google analytics 4 snippet allowing you to record page views, site searches, scrolls and file downloads on your website without loading official, heavy tracking library.