Install Pengo on Shopify
Add the Pengo chat widget to your Shopify store by pasting one snippet into your theme's theme.liquid file. Takes about five minutes.
On this page
Adding Pengo to Shopify takes one edit to your theme. You paste the snippet into theme.liquid, the layout file every storefront page uses, and the chat bubble appears across your store.
#Add the snippet to your theme
-
In your Shopify admin, go to Online Store › Themes.
-
Next to your current theme, click the … (actions) button and choose Edit code.
-
In the file list, open Layout › theme.liquid.
-
Find the closing
</body>tag near the end of the file and paste the snippet just above it.<!-- Pengo Widget --> <script> (function() { // A stub, so pengo('identify', …) and other calls work before the widget has loaded. window.pengo = window.pengo || function() { (window.pengo.q = window.pengo.q || []).push(arguments); }; window.pengo.propertyId = 'YOUR_PROPERTY_ID'; window.pengo.q = window.pengo.q || []; var script = document.createElement('script'); script.async = true; script.src = 'https://app.pengo.chat/embed.js?v=2'; var firstScript = document.getElementsByTagName('script')[0]; firstScript.parentNode.insertBefore(script, firstScript); })(); </script> -
Click Save.
-
Open your store in a new tab. The chat bubble appears in the corner.
#Connecting Shopify is a separate step
Installing the widget puts the chat on your store. It doesn’t connect Pengo to your Shopify data.
Pengo also has a Shopify connection that shows a visitor’s recent orders right in the inbox. Where it’s available for your workspace, you’ll find it under Settings Integrations Shopify . You don’t need it for the chat to work, and setting it up doesn’t install the widget for you.
#Check that it works
Open your store in a private window and look for the bubble, then confirm that Pengo has detected the install. Verify your installation walks through it, with a troubleshooting checklist if the bubble doesn’t show.
If your store uses a myshopify.com address and a custom domain, and you turn on allowed domains, add both. See domains and multiple websites.
#Other platforms
Common questions
Will the chat show on the checkout page?
No. Shopify's checkout doesn't use your theme's theme.liquid file, so the widget shows on your storefront pages but not during checkout.
I switched themes and the chat disappeared. Why?
The snippet lives in the theme you edited. Each theme has its own theme.liquid, so add the snippet to the new theme as well.
Was this guide helpful?
Your answer helps us improve it.
Sorry about that. or contact support, and we'll fix the guide.