Multiple agents on one site
Use one snippet and let each page show the right agent.
If you have more than one agent, for example one for your billing product and one for your main app, you can install a single snippet that shows the right agent on each page.
On any agent's Install tab, under Which agents, choose:
| Option | What it does |
|---|---|
| This agent everywhere | The snippet always shows this agent, on every page its Targeting allows. |
| Pick the agent by page | One snippet for all your agents. Each page shows the agent whose Targeting matches it. |
The second option uses your workspace ID instead of an agent ID:
Skavelo.init({ workspaceId: 'YOUR_WORKSPACE_ID' });How Skavelo picks the agent
On each page, Skavelo checks every agent's Targeting rules and allowed sites. If more than one agent matches, an agent aimed at specific pages wins over one that shows everywhere. In a single-page app, Skavelo checks again as users move between pages.
Example
Set your billing agent's Targeting to Only these pages, /billing/*, and leave your main agent on Every page. Billing pages show the billing agent, and every other page shows the main one.