Platforms

Documents / Reference

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

WordEveryday meaningMeaning in CROForge
PlatformThe 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.
SnippetA short copy-paste of HTML or JS.Platform-specific install instructions that load workspace init.js.
Smart CodeThe 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_PLATFORMSA lookup table of display names → machine keys.Defined in lib/configurations.ts: html, nextjs, wordpress, drupal, shopify, wix, prestashop, joomla.
WEBSITE_PLATFORM.WEBA type tag for “this property is a website.”WEBSITE_PLATFORM.WEB = 'web' in lib/enums.ts. Used when registering properties under Configurations.
Next.jsA React framework for websites.Install key nextjs. Distinct from the CROForge frontend, which is also a Next.js app.
HTMLPlain 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).

LabelKey
HTMLhtml
Next.jsnextjs
WordPresswordpress
Drupaldrupal
Shopifyshopify
Wixwix
PrestaShopprestashop
Joomlajoomla

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, …).

Related reading