Integrations
Shopify
Add PolicifyAI policies to Shopify pages and inject them into your theme. Policies update automatically across your store whenever you regenerate them.
Method 1: Shopify Pages (recommended)
Create a Shopify page
In your Shopify admin, go to Online Store → Pages → Add page. Name it "Privacy Policy", "Refund Policy", etc.
Switch to HTML editor
Click the <> button in the page content editor to switch to HTML mode.
Paste the embed code
Copy your pre-filled snippet from PolicifyAI → Dashboard → Integrations and paste it in, setting data-policy to the policy this page shows.
Save and assign
Save the page. Then go to Settings → Policies and assign the page URLs to the relevant policy slots.
<!-- Paste into the HTML view of a Shopify page --> <script src="https://policifyai.com/embed.js" data-site-key="YOUR_SITE_KEY" data-policy="privacy-policy" async> </script>
Method 2: theme.liquid injection
For advanced use, you can add policies directly to your theme template. This is useful for injecting policies into specific layout areas.
Open theme editor
Go to Online Store → Themes → Edit code.
Locate theme.liquid
Open Layout/theme.liquid.
Add before closing body tag
Paste the embed script before </body>.
<!-- In theme.liquid, before </body> -->
{% if template == 'page.privacy-policy' %}
<script
src="https://policifyai.com/embed.js"
data-site-key="YOUR_SITE_KEY"
data-policy="privacy-policy"
async>
</script>
{% endif %}{% if template == '...' %}) to only load the embed on the relevant page for best performance.Checkout compliance
Shopify Plus stores can add policy links to the checkout via checkout.liquid. Standard stores can add links to the footer via Theme settings → Footer. The policy pages you create above serve as the linked destinations.
Policy slots in Shopify
refund-policyprivacy-policyterms-of-serviceshipping-policy—Troubleshooting
Script not rendering
Shopify's page editor may strip script tags in rich text mode. Always use the HTML source (<>) view.
Policy shows as blank
Verify the site key matches Dashboard → Integrations, that data-policy names a policy you have generated, and that the policy is published in your PolicifyAI dashboard.
CSP errors in console
Add policifyai.com to your Content Security Policy. Contact Shopify support if your theme enforces strict CSP.