Skip to content

WordPress

You can add PageClerk to WordPress without editing your theme, using a header and footer plugin.

Section titled “Method 1: Header & footer plugin (recommended)”

This method survives theme updates because it does not modify theme files.

  1. In the WordPress admin, go to Plugins → Add New.

  2. Search for WPCode (or any “Insert Headers and Footers” plugin), then click Install Now and Activate.

  3. Open Code Snippets → Header & Footer.

  4. Paste your PageClerk snippet into the Footer box:

    <script>
    window.pageclerkConfig = {
    chatbotId: "YOUR_CHATBOT_ID"
    };
    </script>
    <script src="https://pageclerk.com/api/widget.js" defer></script>
  5. Click Save Changes. The assistant now appears on every page.

If you prefer not to use a plugin and have a child theme active, hook into the wp_footer action:

functions.php
// Add PageClerk widget to WordPress footer
add_action('wp_footer', function() {
?>
<script>
window.pageclerkConfig = {
chatbotId: "YOUR_CHATBOT_ID"
};
</script>
<script src="https://pageclerk.com/api/widget.js" defer></script>
<?php
});