- Convert MDX CodeBlock components to standard markdown code fences - Add rehype-mdx-code-props to pass filename meta to code components - Custom pre/code MDX components map fences to CodeBlock - Add brand color badges (product + category) matching /learn layout - Match prose styling: orange inline code, orange links, white strong - Remove brand color background glow (not in /learn)
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
---
|
|
title: "Shopify"
|
|
description: "Add Pulse privacy-first analytics to your Shopify store via the theme editor."
|
|
category: "ecommerce"
|
|
brandColor: "#7AB55C"
|
|
officialUrl: "https://shopify.dev/docs"
|
|
relatedIds: ["woocommerce", "bigcommerce", "prestashop"]
|
|
date: "2026-03-28"
|
|
---
|
|
|
|
Add the Pulse script via the Shopify theme editor — no app needed.
|
|
|
|
---
|
|
|
|
## Method 1: Edit theme code
|
|
|
|
Go to **Online Store -> Themes -> Edit code** and open `layout/theme.liquid`. Add the Pulse script before the closing `</head>` tag.
|
|
|
|
```liquid filename="layout/theme.liquid"
|
|
<!-- Add before </head> -->
|
|
<script
|
|
defer
|
|
data-domain="your-site.com"
|
|
src="https://pulse.ciphera.net/script.js"
|
|
></script>
|
|
```
|
|
|
|
## Method 2: Shopify Plus — Customer Events
|
|
|
|
If you're on Shopify Plus, you can add the Pulse script via **Settings -> Customer Events -> Custom Pixels**.
|
|
|
|
Use your custom domain or `.myshopify.com` domain as the `data-domain` value.
|
|
|
|
For more details, see the [Shopify theme docs](https://shopify.dev/docs/storefronts/themes/architecture/layouts).
|