Configuration Options

Learn about all available parameters to customize your Plaros embeds.

Base URL Structure

All Plaros embeds use this URL pattern:

https://play.plaros.com/v1/embed/{tenantSlug}/playbooks?{parameters}

Required Parameters

zonePath (required)

The zone path from your Plaros dashboard that contains the playbooks you want to embed.

?zonePath=learning-hub

How to find your zone path:

  1. Go to your Plaros dashboard

  2. Navigate to Zones

  3. Copy the path from your desired zone

Optional Parameters

Playbook Selection

playbookId (optional)

Display a specific playbook instead of random selection.

Default behavior: When omitted, a random playbook from the zone is selected for each visitor.

User Identification

userId (optional)

Identify users for personalized experiences and analytics.

Anonymous users: When omitted, anonymous user IDs are automatically generated.

Analytics & Debugging

analytics (optional)

Enable or disable analytics tracking.

  • Type: boolean

  • Default: true

  • Values: true, false

debug (optional)

Enable debug mode for development and troubleshooting.

  • Type: boolean

  • Default: false

  • Values: true, false

⚠️ Important: Always disable debug mode in production environments.

Theme Customization

primaryColor (optional)

Override the primary theme color.

  • Type: string (hex color without #)

  • Default: Your tenant's default primary color

secondaryColor (optional)

Override the secondary theme color.

  • Type: string (hex color without #)

  • Default: Your tenant's default secondary color

themeMode (optional)

Force a specific theme mode.

  • Type: string

  • Default: User's system preference

  • Values: light, dark

Complete Parameter Reference

Parameter
Type
Default
Description

zonePath

string

required

Zone path containing playbooks

playbookId

string

random

Specific playbook ID to display

userId

string

auto-generated

User identifier for analytics

analytics

boolean

true

Enable/disable analytics tracking

debug

boolean

false

Enable debug mode with console logs

primaryColor

string

tenant default

Primary theme color (hex without #)

secondaryColor

string

tenant default

Secondary theme color (hex without #)

themeMode

string

user preference

Force theme mode: light or dark

Example URLs

Basic Embed

Specific Playbook with User Tracking

Custom Themed Embed

Development/Debug Mode

Building URLs Programmatically

JavaScript Example

Parameter Validation

Color Values

  • Must be valid hex colors (3 or 6 characters)

  • Do not include the # symbol in URL parameters

  • Examples: FF6B35, 004E89, F00, 0A8

Theme Mode Values

  • Only light and dark are supported

  • Case sensitive (use lowercase)

Boolean Values

  • Use string representations: 'true' or 'false'

  • Any non-'true' value is treated as false

Next Steps

  • Learn about Custom Theming for advanced branding options

  • See Integration Examples for framework-specific implementations

  • Check Troubleshooting if you encounter issues with parameters