Installation

WordPress

Install Clickyard on your WordPress site using a plugin or by adding the script directly to your theme.

Choose Your Method

Plugin Method

This method uses the free "Insert Headers and Footers" plugin (or similar) to add the tracking code without editing theme files.

1 Install a Header/Footer Plugin

In your WordPress admin panel:

  1. Go to Plugins → Add New
  2. Search for "Insert Headers and Footers" by WPCode
  3. Click Install Now, then Activate

Alternative plugins: "Header Footer Code Manager", "Head, Footer and Post Injections", or any plugin that allows adding scripts to the header.

2 Get Your Tracking Code

Go to your Clickyard dashboard and copy your tracking code.

<script src="https://s.clickyard.ai/v1.js"></script>
<script>Clickyard.init({ id: 'YOUR-WEBSITE-ID' })</script>

3 Add the Code

In your WordPress admin:

  1. Go to Settings → Insert Headers and Footers (or Code Snippets → Header & Footer for WPCode)
  2. Paste your Clickyard tracking code in the "Scripts in Header" section
  3. Click Save

Done! The tracking script will now load on all pages of your WordPress site.

Manual Method

Warning: This method requires editing theme files. Create a backup before making changes. If you update your theme, you may need to re-add the code (use a child theme to prevent this).

1 Access Theme Editor

In your WordPress admin panel:

  1. Go to Appearance → Theme File Editor
  2. In the right sidebar, find and click on header.php

2 Add the Tracking Code

Find the closing </head> tag and paste the tracking code before it:

<!-- Clickyard Tracking -->
<script src="https://s.clickyard.ai/v1.js"></script>
<script>Clickyard.init({ id: 'YOUR-WEBSITE-ID' })</script>
</head>

3 Save Changes

Click "Update File" to save your changes.

Done! Visit your website and verify the script is loading.

WooCommerce Users

Tracking Purchases

For WooCommerce stores, we recommend setting up a Page Goal for your order confirmation page (typically /checkout/order-received/).

Alternatively, you can track purchases with custom events using WooCommerce hooks. See Custom Events for details.

Next Steps