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:
- Go to Plugins → Add New
- Search for "Insert Headers and Footers" by WPCode
- 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:
- Go to Settings → Insert Headers and Footers (or Code Snippets → Header & Footer for WPCode)
- Paste your Clickyard tracking code in the "Scripts in Header" section
- 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:
- Go to Appearance → Theme File Editor
- 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.