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
Add the Anagram app block
- Open your theme editor. In Shopify, go to Online Store → Themes. Find the theme you want to use and click Edit theme. Choose a home page, product, collection, or page template from the dropdown at the top of the editor.
- Add the Anagram app block. In a section that supports apps, select Add block → Apps → Anagram. Drag the block to position it. If the section doesn’t support app blocks, choose Add section → Apps → Anagram instead.
- Paste your placement code. Copy the snippet from the Anagram launch dialog. In Shopify, select the Anagram block and paste the full snippet into Placement code snippet.
- Preview and save. Check the placement in your theme preview, then click Save. The placement appears on pages that use this template. Repeat these steps for any other supported templates where you want the placement.
Edit appearance and behavior in Anagram. Other Shopify block settings are ignored when a placement snippet is set.
anagram:open. The app block does not add a launcher. Follow the custom trigger instructions.
Use the code snippet instead
Select Code snippet in the launch dialog if you want a floating placement across your storefront, your theme doesn’t support app blocks, or you prefer to edit theme code. 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.
- If you used an app block, check that you saved the theme and that the page uses the template where you added the block.
- 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.