Norditco publishes several consumer products on their own hosts. Some of those hosts show a short marketing landing next to the product. When a landing carries Google AdSense, the engineering problem is not “how do we show an ad.” It is how to keep the ad system from loading until the visitor has answered, how to keep Reject as easy as Accept, and how to make the privacy page describe the system that actually runs.

This post is the product-landing companion to our earlier write-up on consent and privacy on the multi-product hub. The hub gates analytics through Consent Mode and Tag Manager. The landings described here gate a different vendor path: the AdSense client script and the display unit. The rules are the same. The mechanism is not.

This is an engineering description of what our code and public pages do. It is not legal advice.

Two systems, one company

On norditco.com we care about measurement tags. Defaults for Consent Mode run before the container. A banner offers Accept and Reject. The choice lives in localStorage on that origin. Policy routes document the behavior.

On product marketing hosts the optional third party is often advertising, not analytics. Two live examples:

  • Audio Player Pro is a Chrome extension marketing site. The landing may show AdSense. The extension that upgrades native <audio controls> players does not load AdSense on the pages where people play audio.
  • Midad is an Arabic book editor. The public landing may show AdSense. The editor under /app does not.

Those boundaries matter for trust. A visitor who installs the extension or opens the editor should not inherit a marketing-page ad stack. A visitor who Rejects ads on the landing should still get the product story, install links, and privacy text.

flowchart TB
    subgraph Hub["norditco.com"]
        H1[Consent Mode defaults]
        H2[Tag Manager]
        H3[Analytics gated by consent]
        H1 --> H2 --> H3
    end

    subgraph APP["audioplayerpro.norditco.com"]
        A1[Marketing landing]
        A2[AdSense script + unit]
        A3[Chrome extension]
        A1 -->|only after Accept| A2
        A3 -.->|never loads AdSense| X1[No ads path]
    end

    subgraph Midad["midad.norditco.com"]
        M1[Marketing landing]
        M2[AdSense script + unit]
        M3[Editor /app]
        M1 -->|only after Accept| M2
        M3 -.->|never loads AdSense| X2[No ads path]
    end

    Hub -. shared principles .-> APP
    Hub -. shared principles .-> Midad

We do not sync consent across these origins. Browser storage is per origin. A shared cross-site identifier would be convenient and would also be the wrong privacy shape for a system that exists to constrain optional storage. Each landing asks for itself.

What “gated” means in code

The important property is not that a banner exists. It is that the AdSense client never enters the document until Accept.

Both landings follow the same shape.

  1. A small first-party module reads and writes a versioned localStorage key. Values are only accepted or rejected. Anything else counts as no answer.
  2. A banner mounts on the marketing page. Accept and Reject are equal controls. The copy links to that product’s privacy page.
  3. A wrapper component mounts the banner always, and mounts the ad unit plus the AdSense client script only when the choice is accepted.
  4. On Reject, or before any choice, the page stays usable. No adsbygoogle.js. No display <ins class="adsbygoogle"> in the tree for that visit.
flowchart TD
    L[Marketing landing mounts] --> B{Stored choice?}
    B -- accepted --> S[Inject AdSense client]
    S --> U[Render display unit and push]
    B -- rejected --> P[Page only, no AdSense]
    B -- none --> H[Show banner]
    H --> C{Visitor}
    C -- Accept --> S
    C -- Reject --> P
    S --> W[Persist accepted]
    P --> R[Persist rejected when chosen]

Injection is deliberate and late. The client script is created in JavaScript after Accept, with an idempotent element id so a double mount does not load twice. The display unit’s push runs in an effect after the unit is in the DOM. Ad blockers and empty fills are treated as ordinary failure, not as a reason to bypass the gate.

Reject is not a soft hide. Soft-hiding a preloaded script still contacted the vendor. We keep the script off the page until Accept.

Product surfaces stay out of the ad path

Audio Player Pro

The marketing site and the extension are different programs. The landing can show ads after consent. The extension’s job is playback UI on third-party pages that already expose native audio controls. It does not inject AdSense there.

The privacy page states that split explicitly: marketing-site ads versus extension behavior. The footer line that ads may appear via Google AdSense is only honest if the privacy text and the gate agree. We aligned those three surfaces in the same release: banner, gated loader, privacy wording.

Midad

Midad’s editor stores books and images in IndexedDB in the visitor’s browser. Optional Google Drive sync starts only after the writer clicks to connect. The landing’s AdSense choice is a separate local preference. Accepting ads on the landing does not change editor storage. Rejecting ads does not disable offline writing.

The static privacy page on the Midad host documents IndexedDB, Drive opt-in, and the landing consent banner in the same place. That keeps crawlers and people on one dated document instead of a marketing claim that the code cannot support.

Storage model

Each landing uses its own versioned key, for example a product-prefixed …_cookie_consent_v1 string. The version suffix is how we change the question later. If the meaning of Accept changes, we bump the version, old answers stop matching, and the banner returns. We never reinterpret an old string under a new policy.

Reads and writes sit in try/catch. Private mode and blocked storage fail toward asking again, not toward assuming yes. The choice is not sent to Norditco as a cookie. It is a local record of a decision about whether this origin may load AdSense.

Clearing site data for that host clears the record. We have not yet added a permanent “cookie settings” control on these landings. That is a known gap shared with the hub banner story, and it should be fixed the same way: a visible control that clears the key and re-shows the dialog.

Honest documentation as a release requirement

Consent UI without matching privacy text is a trust bug. Privacy text that denies advertising cookies while the footer loads AdSense is the same bug from the other direction.

For these landings we treat three artifacts as one change set:

  1. The gate (no script before Accept).
  2. The banner copy (what Accept and Reject do).
  3. The privacy page (marketing ads, product without ads, localStorage choice).

If one of those three is missing from a diff, the release is incomplete.

How this differs from hub Consent Mode

| Concern | Hub (norditco.com) | Product landings (APP, Midad) | | --- | --- | --- | | Optional vendor | Analytics via Tag Manager | AdSense client + display unit | | Default posture | Consent Mode defaults before the container | No AdSense script until Accept | | Reject behavior | Consent update to denied; tags respect storage signals | Script and unit never mount | | Product binary / app | Not applicable | Extension and editor stay ad-free | | Shared across hosts | No | No |

Both systems share the checklist from the hub essay: optional third parties stay off until agreement, Reject is as easy as Accept, the product still works, the choice is local, and policy pages are public and dated.

What we check

These checks are boring on purpose.

  • Fresh profile, no stored key: banner visible, no AdSense client request in the network panel.
  • Accept, then reload: banner hidden, client loads, unit present.
  • Reject, then reload: banner hidden, still no AdSense client.
  • Privacy page mentions the banner and the Accept/Reject behavior.
  • Extension or editor path: no AdSense client on those surfaces.
  • Version bump of the storage key: returning visitors see the banner again.

We also keep marketing claims about “local only” and “offline” tied to code review for Midad (IndexedDB, production service worker registration, Drive only after connect). Ads consent is orthogonal to those claims, but the privacy page covers both so a single document stays coherent.

Limitations

Cookie settings. The hub footer, Audio Player Pro, and Midad landings include a Cookie settings control that clears the local key and reloads so the banner asks again.

SSR versus client banner. The gate runs in the client tree. The first HTML response does not need to include AdSense for the gate to hold, because the script is not in the document until Accept. Banner visibility still depends on hydration for the dialog itself.

Publisher configuration lives outside the repo. AdSense account and site verification are operator concerns. The application only controls whether the public client script may run on a given visit.

Legal review remains a human step. Engineering can keep code and pages aligned. Counsel decides whether the wording and regional posture meet the obligations that apply to you.

Principles we keep

  1. Do not load the vendor until Accept. Hiding a preloaded script is not a gate.
  2. Keep product binaries and editors off the ad path. Marketing consent is not product consent.
  3. One wrapper owns the gate. Banner plus conditional script plus unit, not three independent mounts.
  4. Version the storage key. Change the question, re-prompt.
  5. Ship privacy text with the gate. Three artifacts, one release.
  6. Share rules across products, not identifiers. Coherence without cross-site IDs.

The visible banner is the smallest part of the work. Ordering, storage, product boundaries, and matching documentation are what make the answer mean something.

Related reading on this site: Consent and Privacy Engineering on a Multi-Product Hub, Discovery Mesh, and the live surfaces at Audio Player Pro, Audio Player Pro privacy, Midad, and Midad privacy.