Today, October 3rd, is a special day in Berlin: the Day of German Unity. It’s a public holiday that celebrates the reunification of Germany, when the former East Germany joined West Germany.
The Issue
Cloudflare chose the same day to release some features because it was their birthday week. Everything started when the analytics team noticed too many clicks on the affiliate links (it’s really good news, right?), but the conversion rate was way off. So they began investigating and communicated the issue to the tech team.
Investigation
In the backend team, the data flow and app logics were checked to ensure there were no issues. Everything appeared clear, so attention turned to the frontend. Based on product changes and the git log, no updates had been made to the codebase recently that could result in double-click or unwanted click issues. Debugging began to try to understand the problem.
Finding the Cause
After some time, one of our backend developers was able to replicate the scenario on his computer. Most of the devs could not reproduce it, so we started to investigate on the backend developer’s machine: it was a prefetch request coming from the root document. It was clear that there hadn’t been any prefetch configured for the affiliate links.
Finally, we discovered that the prefetch was triggered by Cloudflare. The reason for this was unclear, so we reviewed the Cloudflare blogs and settings. It turned out they had launched a beta feature called Speed Brain, which enables prefetch similar to next/navigations. In simple terms, when the user hovers the mouse over any link, it fetches the link content in the background to improve page performance. Great feature, but it was enabled for all free Cloudflare accounts, which created unintended issues.
Resolution
After disabling Speedbrain, the conversion rate and click count returned to normal.
Takeaway
Being aware of updates and changes from third-party services, like Cloudflare, can help anticipate potential impacts on your own systems