Platforms
Supported platforms (reference)
This page lists the platform keys the frontend uses when showing Smart Code install snippets, plus the website platform enum used when you register a property under Configurations. A platform is “what the customer’s site is built with” (plain HTML, WordPress, Shopify, and so on). CROForge does not run a different experiment engine per platform—the same Smart Code idea applies; only the copy-paste install instructions change.
Doc ID: ref.platforms. Audience: both.
Words used on this page
| Word | Everyday meaning | Meaning in CROForge |
|---|---|---|
| Platform | The product or CMS the website is built on. | A key in SMART_CODE_PLATFORMS used to pick the install snippet in Configurations → website/app Smart Code tab. |
| Snippet | A short copy-paste of HTML or JS. | Platform-specific install instructions that load workspace init.js. |
| Smart Code | The script that runs experiments on the live site. | Same runtime for all keys; labels (HTML, Next.js, WordPress, …) only change how you paste it. |
| SMART_CODE_PLATFORMS | A lookup table of display names → machine keys. | Defined in lib/configurations.ts: html, nextjs, wordpress, drupal, shopify, wix, prestashop, joomla. |
| WEBSITE_PLATFORM.WEB | A type tag for “this property is a website.” | WEBSITE_PLATFORM.WEB = 'web' in lib/enums.ts. Used when registering properties under Configurations. |
| Next.js | A React framework for websites. | Install key nextjs. Distinct from the CROForge frontend, which is also a Next.js app. |
| HTML | Plain web pages without a CMS. | Install key html. Typical <script> tag in the document head. |
Screenshot filename
Suggested screenshot filename: install-platforms.png or websites-apps.png. Capture the Smart Code tab with the platform picker. Insert the real image from the WordPress Media Library in place of this note.
Smart Code platform keys (SMART_CODE_PLATFORMS)
Constant object in lib/configurations.ts. The Label column is what people see; the Key column is the string stored in code (HTML: 'html', and so on).
| Label | Key |
|---|---|
| HTML | html |
| Next.js | nextjs |
| WordPress | wordpress |
| Drupal | drupal |
| Shopify | shopify |
| Wix | wix |
| PrestaShop | prestashop |
| Joomla | joomla |
Website platform enum
WEBSITE_PLATFORM.WEB = 'web' — used when registering properties under Configurations. This is not the same as the Smart Code platform key: a property is typed as web; the snippet picker then uses SMART_CODE_PLATFORMS (html, wordpress, …).