Dashboard
Integrations

Integrations

Shopify

Add PolicifyAI policies to Shopify pages and inject them into your theme. Policies update automatically across your store whenever you regenerate them.

💡 One-click OAuth auto-publish to Shopify (connect once, no editing at all) is coming soon. The embed methods below work today.

Method 1: Shopify Pages (recommended)

1

Create a Shopify page

In your Shopify admin, go to Online Store → Pages → Add page. Name it "Privacy Policy", "Refund Policy", etc.

2

Switch to HTML editor

Click the <> button in the page content editor to switch to HTML mode.

3

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.

4

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.

1

Open theme editor

Go to Online Store → Themes → Edit code.

2

Locate theme.liquid

Open Layout/theme.liquid.

3

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 %}
💡 Use Liquid conditionals ({% 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 policyrefund-policy
Privacy policyprivacy-policy
Terms of serviceterms-of-service
Shipping policyshipping-policy
Contact information

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.