<head> section is straightforward. Follow the steps below.
Step 1: Open the Code Editor
1
Go to Online Store > Themes
From your Shopify admin, navigate to Online Store → Themes
2
Edit Code
Find your current theme and click Actions → Edit Code
Step 2: Add Your Code
Copy the Pockla script:1
Find theme.liquid
In the left sidebar, find theme.liquid under the Layout folder
2
Search for <head>
Press CMD+F (Mac) or CTRL+F (Windows) and search for
<head>3
Paste the script
Paste the Pockla script on the line directly after
<head>4
Save
Click Save in the top right
Shopify may display a warning about loading the script synchronously. This is expected—our anti-flicker functionality requires synchronous loading. You can add
async or defer, but this may cause a flash of unpersonalized content.Frequently Asked Questions
How big is the Pockla script?
How big is the Pockla script?
Less than 4KB when gzipped—extremely lightweight. It won’t significantly impact your store’s load time.
Where is the script served from?
Where is the script served from?
The script is served via a global CDN, ensuring fast delivery regardless of your customers’ location.
Will this affect my store's performance?
Will this affect my store's performance?
No. The script is highly optimized. At less than 4KB gzipped, the overhead is negligible.For additional performance tuning, you can add
defer or async attributes, but this may disable anti-flicker and cause a flash of default content.Is my data safe?
Is my data safe?
Yes. Pockla is designed with security and privacy in mind. The script only loads personalization features you’ve configured.
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 theme.liquid for the best experience.
Can I remove the script later?
Can I remove the script later?
Yes. Go back to theme.liquid, delete the Pockla script line, and click Save.
Need Help?
Contact Support
Get help with Shopify installation