Skip to main content

URL Targeting

URL targeting controls where your Candu content appears inside your application. You can target by domain, path, or query parameters.

Flora Sanders avatar
Written by Flora Sanders
Updated this week

Use URL Templating to personalize links themselves. Use URL Targeting decide when content shows up.

Targeting UI

  1. Placement tab in the toolbox

    Text editor interface showing URL variable implementation examples in heading and paragraph styles. URL template example demonstrates user trait and pathname variables usage.
  2. Edit placement rules

  3. Add a new placement with wildcard

    Placement settings interface showing wildcard URL configuration for content embedding, with placement URL field highlighted by purple arrow.

Wildcard URLs

Wildcard URLs allow you to load your Candu content dynamically, depending on the page URL.

You can simply replace the variable parts of a URL with an asterisk (*), also known as a wildcard. By adding in an *, you are telling Candu that you want the URL matching to allow that part of the URL to be variable.

When replacing the 'userid' and 'org' portions of the above example URL with an , the URL will appear as follows: https://candu.ai/workspaces/*

Setting up Wildcard URLs

The process is the same as adding a standard URL apart from the format of the URLs entered.

Targeting Options

  • Exact URL match: Match the full string.

  • Path match: Match one or more path segments, for example /app/integrations.

  • Subdomain match: Separate test from production.

  • Query parameter match: Show content when specific parameters are present

Best Practices for URL Targeting

  • Start with narrow matches. Expand only when you need broader coverage.

  • Use subdomain targeting to keep test and production separate.

  • Avoid over‑targeting query parameters. Apps often change them.

Troubleshooting URL Targeting

  • Content is not showing: Verify the domain, for example test versus production. Check that you matched the correct path segment.

  • Candu not installed: Confirm the SDK snippet is installed with Candu’s Chrome Extension

Quick Reference

  • Templating: Personalizes URL fields using {{ }} variables. Works in text, links and components actions. Looking to customize the target of a link within your Candu content? Learn about URL Templating.

  • Targeting: Controls where content appears. Does not accept variables.

Did this answer your question?