Integrating Docket with WordPress, Webflow, and Shopify
Last updated: August 11, 2026
Install a Docket Marketing Agent in a CMS by adding the exact script generated in the agent's Deploy tab to an approved site-wide or page-specific custom-code location.
Before You Start
Confirm your CMS plan and role allow custom JavaScript.
Configure the agent's allowed domains and page-targeting behavior.
Use a staging site or unpublished theme when available.
Identify who owns production changes and rollback.
Copy the Current Script
Open Marketing Agent Configuration.
Select the agent.
Open Deploy.
Expand Add widget to your domain or page.
Select Copy Script.
Do not reuse a script copied from another agent or an older document. The Deploy tab is the source of truth for the current agent.
WordPress
Use one custom-code method approved by your WordPress administrator:
Open the site's approved header/footer code manager, custom-code plugin, or child theme.
Add the Docket script to the site header or the template used by the intended pages.
Save or publish the change.
Clear WordPress, plugin, and CDN caches that could retain the old page output.
Avoid editing a parent theme directly when theme updates would overwrite the change.
Webflow
Open the site's custom-code settings.
Add the Docket script to the site-wide head code or the intended page's head code.
Save the change and publish the site.
Test the published staging and custom domains separately when both are in use.
Custom code may not execute inside the visual designer. Validate the published site.
Shopify
Duplicate the active theme or use the store's approved development theme.
Open the storefront theme code or approved custom-code integration.
Add the Docket script to the shared storefront layout or an intended template.
Save and preview the theme before publishing it.
Use Docket's page-targeting controls when the script is installed site-wide but the widget should appear only on selected storefront pages.
Verify the CMS Installation
Open the published test page in a private browser window.
Confirm the Docket script loads once.
Confirm the intended agent appears on allowed pages and stays hidden on excluded pages.
Complete a short text interaction and test any voice, CTA, meeting, slide, or video behavior the agent uses.
Repeat at desktop and mobile widths.
Troubleshooting
Problem | What to check |
|---|---|
Widget does not appear | Confirm the current script is present in rendered page source and the domain is allowed in Docket. |
Old behavior remains | Clear CMS and CDN caches, then test in a private browser window. |
Script is removed after a theme change | Move the installation to an approved persistent custom-code method or child/development theme. |
Widget appears on the wrong pages | Review Docket page targeting and the CMS template where the script was added. |
Browser blocks the script | Review Content Security Policy and consent-manager rules with the web administrator. |