Here's a simple step-by-step guide for adding tracking codes to your website's header.
Before you begin
Ensure you have the tracking codes from your chosen services like Facebook Pixel or ClickMagick. You'll also need administrative access to your WordPress website.
Install and activate the Insert Headers and Footers plugin
- From your WordPress dashboard, go to the Plugins section
- Click on Add New
- In the search bar, type Insert Headers and Footers by WPBeginner
- Find the plugin from the search results and click on Install Now
- Once installed, click on Activate
Adding tracking codes
Now that the plugin is active, you can insert your tracking codes:
- Navigate to Settings
- Select Insert Headers and Footers
- In the Scripts in Header box, paste your tracking code
- Click on Save to apply the changes.
Your tracking codes for services like Facebook Pixel and ClickMagick are now added to your site's header. As a result, these tools will now start tracking and analyzing the performance of your webpages.