Demo mode — how it works under the hood
The network administrator's view of demo accounts — the seven server-level settings, the read-only shares every demo signup receives, how the trial window is computed from the creation date (and what the lock does and does not block), and how the live demo page and its domain allowlist behave.
Demo mode turns an installation into a self-guided trial: visitors sign up, land in a real account pre-loaded with read-only example data, watch ads serve on a live page, and see a lock screen when their window runs out. What demo users experience is covered in Demo accounts; this page explains the machinery for the network administrator running it.
Example. A prospect registers at 10:00 on 1 November on an installation with the default 15 active days. The account is created in the demo role and immediately receives Can View shares to the two configured demo advertisers and the one demo site. The welcome overlay reads 15 day(s); at 10:00 on 16 November — 15 × 24 hours later, whether or not the prospect ever logged in — the account UI shows the expiry overlay instead, while the account itself, its shares and any REST calls the demo role allows keep working until an administrator deactivates it.
How it works
Demo behaviour is configured at server level by Epom support, in the ad-serving configuration (not in the admin UI). Seven settings define the whole feature:
| Setting | What it does | Default |
|---|---|---|
| Demo mode switch | Master toggle. Off = none of the behaviour below exists. | off |
| Demo role | The role whose members are treated as demo accounts while demo mode is on. Detection is purely role membership — nothing is stamped on the user. | — |
| Active days | Trial length, counted from the user’s creation date. | 15 |
| Demo advertisers and demo sites (two settings) | Entity IDs shared read-only with every new user created in the demo role while demo mode is on. | — |
| Demo page URL | The live example page opened by the ribbon’s See live button. | — |
| Demo page allowed domains | Allowlist of request-origin domains for ad requests; empty = allow all. | empty |
What happens to one account, in order:
- Signup. A demo user is an ordinary user whose role is the demo role — on
self-registration the role comes from the registration request, so it has to be a role with
the Sign-up permission. When demo mode is on, every new user created in the demo role
gets Can View shares to each configured demo advertiser and demo site, however the account
is created: the signed REST registration call
(
POST /rest-api/register-user/{key}/{hash}/{timestamp}), the network sign-up call (/user-sign-up), the built-in sign-up form, or an administrator adding the user. Users in any other role get none. A configured ID that no longer exists, or was deleted, is skipped and does not fail the registration. Those shares are ordinary entity shares; nothing else marks the account as demo. - Every page load. While demo mode is on and the user is in the demo role, every page shows the demo ribbon (Demo badge, Quick Start Guide and API Reference links, See live, Get full access) and the support chat. The welcome overlay with the remaining-days counter reappears once per browser session. With demo mode off, the demo role on its own shows none of this.
- Expiry. There is no stored expiry date. On every check the platform computes creation date + active days and compares it with now; the counter shows the whole days left. Expired accounts can still authenticate, and the account UI then covers the screen with an overlay that cannot be dismissed and whose links (contact sales, book a call) end the session. That lock shows every time the app loads, not once per session. It is a feature of the account UI only: the server reports the account as inactive but refuses nothing, so an expired user’s REST calls (where the role allows them) and entity shares keep working until an administrator deactivates the user.
- See live. The button opens the configured demo page URL in a new tab — a real page carrying real ad tags from the demo setup, so a prospect can watch the whole chain serve end to end. It simply doesn’t render when no demo page URL is configured.
- The allowlist. When demo mode is on and the allowed domains list is non-empty, the ad
server answers the ad-request endpoints (banner, iframe, API, native, VAST, VMAP, async
retrieve and the header-bidding bid endpoint) only when the domain of the request’s
Originheader is on the list — anything else gets a 403 with no body. The match is on the exact host, case-sensitive and without the port, so a subdomain needs its own entry. Keep the demo page’s own domain (and any other page you embed demo tags on) in the list.
The demo page URL also changes what a placement’s Preview button does. While demo mode is on
and a demo page URL is set, Preview on a Site, Native or Video placement redirects to the demo
page with that placement’s tag appended (bannerCode, nativeApiUrl or videoVastTag) instead
of opening the ad server’s own preview page — for every user of the installation, not only demo
users.
Common situations
- A prospect converts. Move the user out of the demo role: all demo behaviour — ribbon, overlay, countdown, lock — lifts at once. The shares created at signup stay unless you remove them.
- You lengthen the trial from 15 to 30 days. Because expiry is computed on every check, every account created in the last 30 days is active again, including ones that had already seen the lock. Shortening it to 7 days expires every account older than a week immediately.
- You move an old account into the demo role. The window is applied against its original creation date, so an account created six months ago is expired the moment it lands in the role. Moving a user in also adds no shares; they are created only with the account.
- You change the demo advertiser list. Only new signups get shares to the new entities; existing demo users keep the shares created for them at registration. Deleting a demo advertiser or site leaves existing demo accounts without example data.
- The demo page shows no ads after you add an allowlist. A plain
<script src>or<img>tag sends noOriginheader, and the allowlist refuses a request with none — so tags that load that way are blocked even from a listed domain. Only cross-originfetch/XHR calls carry the header; players and server-to-server callers often omit it. - A prospect whose trial expired registers again. Each signup gets its own fresh window — another e-mail address means another 15 days. Prevent that at the signup level if it matters: the Hide sign-up box in white-label settings only removes the link from the sign-in page, so route sign-up through your own page with Sign-up URL to control repeat registrations.
Misconceptions and gotchas
- “The countdown starts at first login.” It starts at account creation. A prospect who registers on Monday morning and first logs in on Friday afternoon sees 11 day(s) on the welcome overlay, not 15.
- “Expiry locks the account.” It locks the account UI. REST calls the demo role allows, and the entity shares, keep working until an administrator deactivates the user.
- “Demo users can only look.” Demo entities are protected only by the Can View share level. If the demo role’s matrix grants create rights, demo users can build their own test entities next to the read-only examples — intended sandbox behaviour, but it means the demo account accumulates junk; clean it periodically. Everything else about them (feature depth, cards, tabs) is governed by the demo role’s permission matrix like any other role.
- “The allowlist is per demo user.” It is enforced by the demo installation’s ad serving globally. Demo mode with an allowlist belongs on a dedicated demo installation — on a production network it would reject legitimate traffic from every publisher domain not on the list.
- “Preview still opens the ad server’s preview page.” Not while a demo page URL is set: for Site, Native and Video placements it redirects to the demo page for every user of the installation.
Where to configure it
Setup checklist for a demo installation:
- Create the demo role and trim its permission matrix to the feature set you want to show (Users and roles).
- Build the example advertisers/campaigns/banners and sites/zones/placements, link them, and confirm they serve.
- Ask Epom support or your account manager to configure the demo settings above (role ID, entity IDs, days, demo page, allowlist).
- Host the demo page with tags from the example placements; verify See live shows ads.
- Register a test account through the signed REST call and walk the full journey — welcome overlay, the shared demo entities (with edit controls disabled), See live, and (after shortening the window) the expiry overlay.
| You want to | Go to |
|---|---|
| The demo user’s own view of all this | Demo accounts — the user’s view |
| How the Can View shares behave | Sharing and permission model, Share sites and advertisers |
| Hide or redirect sign-up | White-label settings |