DocsoPWAInstall Prompt & Analytics
Features

Install Prompt & Analytics

oPWAorravo.com/docs/opwa/install-prompt-analytics

Install Prompt

Trigger modes (5 options)

ModeBehavior
ImmediatelyShow on page load
After delayShow after N seconds
After scrollShow after X% scroll depth
After page viewsShow after N page views (localStorage counter)
Exit intentShow when cursor leaves top of viewport

Customization

  • Banner text: customise headline + CTA button label
  • Position: top / bottom banner, or centered modal
  • Dismiss persistence: remember dismissal for X days

iOS Instructions

iOS Safari doesn't support the standard install prompt. oPWA detects iOS and shows a custom card with step-by-step "Share → Add to Home Screen" instructions. Automatically hidden if already installed (window.matchMedia('(display-mode: standalone)')).

Background Sync

Forms on the page are intercepted and their data stored in IndexedDB. On reconnect (after the user goes back online), stored form submissions are replayed automatically via the Background Sync API.

Configure in oPWA → Service Worker → Background Sync — enable/disable per form selector.

Analytics

Beacon-based analytics via POST /wp-json/opwa/v1/analytics/beacon:

MetricHow tracked
Page viewsNavigator beacon on each navigation
SW coverage% of page loads served by SW (from SW postMessage)
Cache hit rateHit/miss reported per request
PWA installsappinstalled event
Push opt-in rateSubscribe / total visitors

Analytics data stored in wp_opwa_analytics, visualized in oPWA → Analytics tab.

Install Prompt & Analytics — oPWA Docs — Orravo