Where to paste it
It depends on the form factor:- Center bar and Floating button float above the page, so the snippet can go almost anywhere. The convention is just before the closing
</body>tag, which applies it site-wide. - Custom trigger also floats above the page, but stays closed until your site dispatches
anagram:open. Put the snippet before</body>, then connect your own button as shown on the Placements page. - Embedded panel and Embedded inline render exactly where the snippet sits, so paste it at the precise spot on the page where the widget should appear.
On Shopify
For a site-wide placement (center bar, floating button, or custom trigger):- In Shopify admin, go to Online Store → Themes.
- On your live theme, click the ⋯ menu, then Edit code.
- Open
theme.liquidunder Layout. - Paste the snippet on its own line just above
</body>, near the bottom of the file. - Click Save.
Checking it worked
Open your storefront in a regular browser window and you should see the placement. If you don’t:- Give it a few minutes. Placement settings are cached briefly, so a just-created placement can take a moment to appear.
- Make sure the placement still exists in Anagram. A deleted placement’s snippet renders nothing.
- For center bars with Reveal after one page scroll turned on, scroll down. It’s working; it’s waiting.