Overview
The Custom Script Component enables you to insert custom JavaScript into QR Code landing pages.It supports two modes of integration:
- External scripts (e.g., Google Analytics, Facebook Pixel, chat widgets, etc.)
- Inline scripts (executed directly within the landing page)
⚠️ Note: Always ensure custom scripts follow Scanova’s security and content guidelines to prevent vulnerabilities such as XSS.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
| external | array<object> | No | A list of external JavaScript URLs to be loaded on the page (max 5). |
| script | string | No | Inline JavaScript code to be executed directly on the page. |
🧩 External Object
| Sub-Property | Type | Required | Description |
|---|---|---|---|
| url | string | ✅ Yes | HTTPS link to the external JavaScript file (.js). Must be a valid URI. |
Used In Categories
This component is used in the following QR Code categories:Example Schema
Notes
- You can include up to 5 external scripts via the
externalarray. - All external scripts must be **publicly accessible HTTPS URLs ending with **
.js. - Inline
scriptshould only include non-blocking JavaScript to maintain page load performance. - Scripts are sandboxed and validated for security — avoid DOM manipulation or unsafe global overrides.