<head> section can be done in several ways. Choose the method that works best for you.
The Snippet
Method 1: Using a Plugin (Recommended)
The easiest way is to use a header/footer plugin.Install a Plugin
Install and activate one of these plugins:
- Insert Headers and Footers (by WPBeginner)
- WPCode (formerly Insert Headers and Footers)
- Header Footer Code Manager
Add the Snippet
Go to the plugin’s settings (usually under Settings or Tools)Paste the Pockla snippet in the Header section:
Method 2: Theme Editor
Add the snippet directly to your theme’s header file.Open Theme Editor
Go to Appearance → Theme File Editor(On older WordPress versions: Appearance → Editor)
Add the Snippet
Find the
<head> tag and paste the Pockla snippet at the very top, right after the opening tag:Method 3: functions.php
Add the snippet programmatically via your theme’s functions file.Add the Code
Add this code at the end of the file:The
1 priority ensures it loads early in the <head>.Frequently Asked Questions
Which method should I use?
Which method should I use?
- Plugin method – Best for most users. Survives theme updates.
- Theme editor – Quick but temporary. Lost on theme updates.
- functions.php – Good for developers. Use a child theme.
Will this affect my site's performance?
Will this affect my site's performance?
No. The snippet is tiny and only loads an external script when a visitor arrives via a Pockla link. Regular visitors see zero additional overhead.
Is it compatible with caching plugins?
Is it compatible with caching plugins?
Yes. The Pockla snippet works with all major caching plugins (WP Rocket, W3 Total Cache, etc.). You may need to clear your cache after installation.
Can I use Google Tag Manager instead?
Can I use Google Tag Manager instead?
We don’t recommend GTM for Pockla. GTM loads scripts with a delay, causing flicker. Install directly in the header for the best experience.
Can I remove the snippet later?
Can I remove the snippet later?
Yes. Remove it from wherever you added it (plugin settings, header.php, or functions.php).
Need Help?
Contact Support
Get help with WordPress installation