Skip to main content
Adding the Pockla snippet to your Shopify store’s <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 StoreThemes
2

Edit Code

Find your current theme and click ActionsEdit Code

Step 2: Add the Snippet

Copy the Pockla snippet:
<script>var p=new URLSearchParams(location.search).get('pklid');if(p)document.write('<script src="https://embed.pockla.io/'+p+'.js"><\/script>');</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 snippet

Paste the Pockla snippet at the very top of <head>, on the first line after the opening tag
<head>
  <script>var p=new URLSearchParams(location.search).get('pklid');if(p)document.write('<script src="https://embed.pockla.io/'+p+'.js"><\/script>');</script>
  
  <!-- Rest of your head content -->
4

Save

Click Save in the top right
Be careful not to delete any existing code—even a single bracket can break your theme.

Frequently Asked Questions

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.
Yes. Pockla is designed with security and privacy in mind. The snippet only loads personalization features you’ve configured.
We don’t recommend GTM for Pockla. GTM loads scripts with a delay, causing flicker. Install directly in theme.liquid for the best experience.
Yes. Go back to theme.liquid, delete the Pockla snippet, and click Save.

Need Help?

Contact Support

Get help with Shopify installation