30th August, 2025

“Beating Gemini” might be a bit of a stretch, but I promise this gets interesting.
Crossing the Bridge
Every software engineer comes to a certain point in their career. The point where they stop centering adiv
and start being an “engineer”. When they start hacking together solutions under tight constraints based on their understanding of the available tools and their creative thinking.
Sound familiar?
Before I continue, if you’re on your desktop, open the network requests tab right now and refresh this page. If you search for requests from api.
, you should see some requests that look like this.

The Backstory
Past a certain point of me working on my portfolio, I realized it was time to integrate analytics. So I looked up the Mintlify documentation, and sure enough, their Posthog integration was seamless. There was just one problem though. You see, the reason why you haven’t seen an ad since you installed your ad blocker is because ad blockers are really good at what they do. So much so that they block analytics on the client because of the domain. Bear in mind, Next JS comes with a solution built into this, and the brilliant engineers at Posthog have guides on how to solve this using re-writes.

