mfirzedge martech demo

24.5903° N · 46.3337° Eprototype

7,386 km away. On your screen in a blink. Qiddiya City, delivered from the edge nearest you.

A one-page reference build for a destination marketing stack: content authored in AEM, shipped as static HTML on Cloudflare, with experiments decided at the edge and every interaction tracked. Each claim can be checked in the inspector at the bottom of the page.

Visitor location, simulated here:

The brief

Built to be opened

“A key objective is to eliminate black-box delivery, retain critical MarTech technical knowledge within Qiddiya, and ensure Qiddiya remains in control of its MarTech platforms, integrations and release processes.”

Role description, Senior Expert – MarTech

So nothing on this page is sealed. It has five layers, and you can open and check each one yourself.

  1. 01DeliveryLoad speed, measured in your browser
  2. 02WiringOne request traced through every layer
  3. 03ContentA document in, static HTML out
  4. 04DecisionsHow a visitor gets variant A or B
  5. 05DataEach event, its schema and its consent rule

Performance

Measured in your browser, right now

The numbers on the right come from this page load on this device, read from the browser's own performance APIs. The dials on the left are the budget every deploy has to meet.

Lighthouse budget

target
100Performance
100Accessibility
100Best practices
100SEO

These are targets, not results. In the build, CI runs Lighthouse on every deploy, fails below the budget, and writes the real scores here.

This page load

live
First paint—good ≤ 1.8 s
Largest paint—good ≤ 2.5 s
Layout shift—good ≤ 0.1
Interaction—good ≤ 200 ms
First byte—good ≤ 800 ms
Requests—including map tiles
Own script—excluding the map library
DOM nodes—Lighthouse warns at 800

Architecture

One request, traced through the stack

Five layers, each with one job. Replay a visit to see which layer does the work at each step, or replay a publish to see how a marketer's edit reaches visitors without an engineer.

  1. The request leaves the browser

    GET / over HTTP/3 to the nearest Cloudflare data centre.

    Browser → Edge
  2. The Worker decides before the first byte

    It reads geo and the visitor cookie, assigns variant A or B, and rewrites the hero in the HTML stream.

    Edge
  3. HTML comes from cache

    It was built from AEM content at deploy. No origin call and no database on the hot path.

    Static
  4. The browser paints

    Text and layout first. The map library loads on first interaction, so it never blocks the paint.

    Browser
  5. An interaction becomes an event

    The data layer emits an XDM-shaped event. Consent decides whether it leaves the page.

    Browser
  6. The collector checks it

    POST /collect on the same edge validates the schema and campaign tags, then writes to D1.

    Edge → Insight
  7. The dashboard reads it

    Funnel, experiment result and data-quality alerts come from the same store.

    Insight
The role asks forIn this demoWith Adobe licences it becomes
AEM / AEMaaCS, shared componentsAEM Edge Delivery Services: documents and blocksAEMaaCS with Cloud Manager pipelines
Adobe Tags, Web SDK, data layerAdobe Client Data Layer, XDM-shaped events, own /collectWeb SDK sending to the Adobe Edge Network
Target: experiments, personalisationVariant assigned in a Worker before the HTML leavesTarget server-side decisioning
CJA: reportingD1 event store and a small dashboardCustomer Journey Analytics
AEP: profiles, consentConsent-gated anonymous events, no personal dataExperience Platform profiles and audiences
CI/CD, automated testing, observabilityLighthouse budgets, Playwright tests that assert tracking, edge logs and alertsThe same, plus Cloud Manager quality gates

Content · AEM Edge Delivery

Authored in a document, shipped as static HTML

The marketing team edits a table in a document. The build turns each row into a card. Point at a row to find its card, or flip the cards to see the markup AEM delivers.

What the marketer writesmock

Attractions

Cards
Six Flags Qiddiya CityTheme park
AquarabiaWater park
Speed Park TrackMotorsport circuit
What ships

Six Flags Qiddiya City

Theme park

24.5903, 46.3337

Aquarabia

Water park

24.5870, 46.3238

Speed Park Track

Motorsport circuit

24.5808, 46.3300

Experimentation

The variant is chosen before the page leaves the edge

The headline at the top of this page is an A/B test. You were assigned a variant on arrival. Switch it here and scroll up to see the other one.

assigned in the browser for now
A7,386 km away. On your screen in a blink.showing
BQiddiya City, delivered from the edge nearest you.showing

Decided in the browser

The testing script has to download and run first. Visitors can see the original headline before it swaps, and the swap can shift the layout.

Decided at the edge

The Worker rewrites the HTML as it streams. The browser only ever receives one headline, so there is nothing to flash or shift.

Analytics · consent

Every interaction is specified, counted and consent-gated

This table is the tracking spec for this page. The last column counts how many times each event has fired since you arrived. Turn consent off and watch the inspector block them.

EventFires whenKey fieldsFired
page.viewThe page loadsvariant, theme0
section.viewA section reaches the middle of the screensection0
map.flight.startThe camera leaves the visitor's cityorigin, km0
map.flight.endThe camera arrives and the pin dropsorigin, durationMs0
map.poi.selectA landmark is chosenpoi0
experiment.exposureA variant is shownexperiment, variant0
experiment.switchThe variant is changed by handfrom, to0
content.block.renderAn AEM block is on the pageblock, items0
cta.clickA button is pressedid0
theme.changeThe theme is switchedtheme0
consent.updateThe consent switch changesanalytics0
webvitals.reportThree seconds after loadfcp, lcp, cls, ttfb0

Who built this

Muhammad Faris Zaini

I have built digital products for more than ten years. I started as a front-end engineer, moved through UX design and full-stack engineering, and now lead a front-end engineering team. I work across web and native mobile apps.

That mix is why I built this page the way I did: fast by default, measured in the open, and simple for a marketing team to run without asking an engineer.

How it was made. I built this page with an AI coding assistant. I set the brief, made the design and architecture decisions, and reviewed every part in the browser. The assistant wrote most of the code. Ten years of building products is what lets me direct it and tell when the result is wrong.

  1. Front-end engineerWhere I started: interfaces, performance, the browser
  2. UX designerResearch and design, so the product fits the people using it
  3. Full-stack engineerWeb and native mobile apps, from database to screen
  4. Lead front-end engineerLeading and managing a team, and still building