Because the Frisbii Media checkout and SSO run inside an iframe, standard page-tracking tools (Google Analytics, Matomo, etc.) cannot see activity inside the iframe directly. Frisbii Media emits a plenigo.WebAnalyticsLoad JavaScript event on the parent page every time a new page loads inside the iframe. You can forward these events to your analytics tool.
Listening to the event
document.addEventListener("plenigo.WebAnalyticsLoad", function(e) {
console.group("ANALYTICS");
console.info("Event:", e);
console.info("Detail:", e.detail);
console.groupEnd();
});
The e.detail object contains the page name that was loaded inside the iframe (e.g. defaultPaymentSelectForm). Forward this to your analytics system as a virtual page view.
Page name reference
Checkout pages
Page name | Description |
|---|---|
| Select an existing address |
| Enter an address |
| Processing screen for age check |
| Enter data for age check |
| Show cross-selling form |
| Show connect form |
| Show existing payment method submit form |
| Show payment selection form |
| Show payment submit form |
| Execute payment redirect (for redirect-based payment methods) |
| Show payment success form |
| Show payment voucher form |
| Show waiting page for successful payment |
| Show form to enter a purchase order indicator |
| Country is blocked for purchase |
| Configuration failure page |
| Emergency mode enabled page |
| Checkout must not be used under this domain |
| No offers available for sale |
| Not found page |
| Payment method failed page |
| Sales for this specific offer have been stopped |
| Product is already bought |
| Purchase finished page |
| Session is outdated |
| Too many requests |
| Error page |
SSO pages
Page name | Description |
|---|---|
| Login form |
| Additional data requested (e.g. username, terms acceptance) |
| First name and last name requested |
| Two-factor authentication code step |
| Login success page |
| Too many active sessions |
| Password forgotten — email entry form |
| Password forgotten — verification code step |
| Password forgotten — two-factor code step |
| Password forgotten — enter new password step |
| Registration form |
| Registration form with merge identifier (connect feature) |
| Registration — email verification code step |
| Configuration failed page |
| Emergency mode enabled page |
| SDK must not be used under this domain |
| Not found page |
| Error page |
Example: forwarding to Google Analytics
document.addEventListener("plenigo.WebAnalyticsLoad", function(e) {
if (typeof gtag !== "undefined") {
gtag('event', 'page_view', {
page_title: e.detail.page,
page_location: window.location.href + '#' + e.detail.page
});
}
});