Case notes
Consent, cookies and ad revenue: notes from building the Fringe’s ad stack
What we learned engineering the advertising layer behind edfringe.com, the route into the world’s largest arts festival.
By MOD Digital7 min read

Every August, edfringe.com becomes the way into the entire Edinburgh Festival Fringe programme. When we were asked to build its advertising infrastructure, there was a revenue opportunity sitting on top of no platform: no prioritised inventory, no programmatic backfill, no compliant consent stack and no documentation for the team who would run it next.
The work is described in the case study. These are the lessons we would pass on to any cultural organisation, publisher or public body that earns income from advertising.
Consent is an engineering problem, not a banner
A cookie banner is the visible part of consent. The hard part is making sure every advertising and analytics tag respects the choice a visitor makes, every time, including in the first second of a page load. We integrated a consent management platform with the IAB Europe Transparency and Consent Framework (TCF v2.2) and added override scripts for race conditions where ads could otherwise render before consent was established.
The test we apply is simple: if a regulator or auditor asked to see how consent is enforced on a given page, could we show them? If the answer depends on timing, it is not finished.
Do not let the framework and the ad tags fight
Modern sites built with React re-render parts of the page as visitors navigate. Advertising tags often assume the page is static. The result is slots that disappear, double up or report impressions that were never seen. We defined ad slots cleanly without depending on the live page structure, so they survived framework updates and tag-manager timing issues.
Check the firewall is not blocking the people who pay you
Security tools do their job by blocking automated traffic. Some of that traffic is the advertising platforms’ own crawlers, which need to read a page before they will bid on it. Part of the work was debugging firewall rules that had been suppressing those crawlers. Reviewing security settings and revenue together is now part of our launch checklist.
Serve what you have sold first
Direct partnerships and sponsors are usually the most valuable advertising a cultural organisation sells, and the most visible if they go wrong. We built a prioritisation layer that serves sold inventory first and fills remaining space programmatically. Partners get the placements they paid for, and unsold space still earns.
Document for the people who come next
Festival teams change, and infrastructure outlives the people who commissioned it. We handed over full technical documentation, diagnostic tooling and guidance for future changes. The measure of a good handover is whether a new supplier could pick the platform up without calling us.
The team built us something we’d been trying to get done for years. Quietly, properly, with the patience to fix every issue before handing it over.
Stefano Ragusa, Digital Marketing Lead, Edinburgh Festival Fringe
Where this applies
The same principles apply to any organisation that combines a public-facing mission with advertising or sponsorship income: festivals, venues, museums, publishers and destination websites. If your site carries advertising or partner placements, we are happy to review how consent, delivery and reporting work today.
