Skip to main content
Once a placement is configured, click Launch on your Anagram home page, or Copy snippet on the placement. If you haven’t started a plan or free trial, Anagram asks you to start one before showing the installation instructions. For projects connected to Shopify, the Launch your placement dialog opens on Shopify app block. Use that tab to add the placement through the theme editor, or select Code snippet for manual installation. Projects without Shopify see the code snippet instructions only. Both methods use the same placement snippet:
Each placement has its own snippet. The snippet never changes after you paste it; everything you edit later in Anagram, from suggestions to style to the form factor itself, flows through automatically. The one exception worth knowing: if you switch a placement between a floating form factor and an embedded one, you may want to move the snippet, since embedded widgets render exactly where the snippet sits.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
When available, the add Anagram to your current theme’s product template link in the launch dialog opens that template with the block added. Paste your placement snippet, preview it, and save as above.
Edit appearance and behavior in Anagram. Other Shopify block settings are ignored when a placement snippet is set.
For Custom trigger, also connect your site’s button to dispatch 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):
  1. In Shopify admin, go to Online Store → Themes.
  2. On your live theme, click the ⋯ menu, then Edit code.
  3. Open theme.liquid under Layout.
  4. Paste the snippet on its own line just above </body>, near the bottom of the file.
  5. Click Save.
For an embedded placement on a specific page, add a Custom Liquid section in the theme editor where you want the widget, and paste the snippet there.

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.
Still not showing? The troubleshooting page has the full checklist.

Taking it down

If you used an app block, remove the Anagram block in Shopify’s theme editor and click Save. Repeat for each template where you added it. For a code-based installation, remove the snippet from your theme. Deleting the placement in Anagram also stops it from rendering. To bring back a deleted placement, create a new one and install its new snippet.