Paste one snippet before </body>. Takes under 60 seconds.
Best for non-developers. The WPCode plugin lets you inject code into your site footer without touching any theme files — and it survives theme updates.
Your tracking snippet
<script>(function(){var i=document.createElement('img');i.width=1;i.height=1;i.style.display='none';i.alt='';i.src='https://aeofix.com/api/bot-pixel?page='+encodeURIComponent(location.pathname)+'&site=YOUR_SITE_ID';document.body.appendChild(i);})();</script>
Note: Replace YOUR_SITE_ID with your actual Site ID from the dashboard snippet banner. If you've rotated your key, use the exact snippet from your dashboard — it already includes &key=xxx.
Works for classic themes that include a footer.php file. Not recommended for block themes (WordPress 6.x+) — use Method 1 or Method 4 instead.
</body> tag near the end of the file.</body>.Warning: Always edit a child theme, not the parent theme. Parent theme updates will overwrite any changes you make to footer.php.
The cleanest developer-friendly approach. Add the following function to your child theme's functions.php. The wp_footer hook fires just before </body> on every page.
function aeofix_bot_tracker() {
?>
<script>(function(){var i=document.createElement('img');i.width=1;i.height=1;i.style.display='none';i.alt='';i.src='https://aeofix.com/api/bot-pixel?page='+encodeURIComponent(location.pathname)+'&site=YOUR_SITE_ID';document.body.appendChild(i);})();</script>
<?php
}
add_action( 'wp_footer', 'aeofix_bot_tracker' );
Note: Replace YOUR_SITE_ID with the Site ID shown in your AEOfix dashboard. If you've rotated your API key, use the full snippet from the dashboard snippet banner instead.
If you are using a block theme such as Twenty Twenty-Three, Twenty Twenty-Four, or Twenty Twenty-Five, the Theme Editor does not expose footer.php. Use one of the two options below.
Option A — WPCode Plugin (simplest)
The WPCode plugin (Method 1 above) works perfectly with block themes. It is the recommended approach for non-developers on WordPress 6.x+.
Option B — Site Editor HTML Block
After saving your chosen method, confirm the snippet is firing correctly:
bot-pixel in the filter bar. You should see a request returning 200.Note: If you do not see any requests immediately, hard-reload the page with Ctrl+Shift+R. Bot visit data will also appear in your AEOfix dashboard within 24 hours.