Snippets are blocks of code shared at the site level that can be added to your pages. Code that is not visual, such as Google Analytics, Facebook pixels, or custom CSS, should be placed into snippets. We recommend using multiple snippets for each block of code to keep things flexible and easy to find.
Creating a snippet
To create a new snippet, go to a page’s settings and click “Add snippet” found below the metadata.
In the “Add a snippet” modal, click “Create new snippet”.
Name your snippet and add your code. You can select if the code should be placed in the <head> or end of the closing <body>. If you’re unsure which to choose, please check with the code’s documentation. Lastly, select whether or not to automatically include this snippet when new pages are created.
Adding a snippet
Once snippets have been created, you can add one or more using the checkboxes. You can choose to either add the snippet(s) to a single page, or all pages in the site.
To remove a snippet from a page, click on the “X” found when hovering on a snippet card. Clicking on a snippet card will display the snippet details.
Modify a snippet by clicking “Edit snippet” in the snippet modal. These changes will be applied to all pages using this snippet. Deleting a snippet will remove it from all pages in a site.