Skip to main content
Skip table of contents

Content Snippets

Standalone reusable code pieces, also known as Snippets, have forever been the source of added functionalities for coders across all spheres. Reducing the time it takes to type in repetitive information while coding, snippets also help you to not add an unnecessary layer of complexity to the workflow. The Zeta Marketing Platform has its own reusable content snippets that you can use across multiple templates to make changes to content in one location and have those changes reflected across all templates in which the snippet is referenced.

There are two types of content snippets:

  • HTML Snippets are built using raw code with significant flexibility to fine-tune exactly what you want.

  • Visual Snippets are single rows from Visual Editor that utilize the full drag-and-drop capabilities of that tool, no code required.

Using Snippets

1. From the menu on the left, navigate to Content > Snippets.

image-20260218-054714.png

2. To view existing snippets, click on the name of the snippet to open it in its respective editor.

3. Clicking on the row of a snippet opens to an About This Snippet panel with more information about the snippet.

image-20260218-054754.png

4. You can filter and search your snippets to narrow down to the ones you need.

image-20260218-054815.png

5. To use a snippet, you can copy and paste the merge tag into any email template. Merge tags ensure content is consistent, and updating a snippet will automatically update all references.

image-20260218-054840.png

6. You can also insert a snippet into an email template without a reference, which will duplicate the content of the snippet but break the connection to the original snippet, so future changes do not affect the content in this particular email template.

image-20260218-054908.png
image-20260218-054915.png

7. As the snippet is saved in the Snippets library, you can select multiple snippets from the list and apply bulk actions of archiving, sharing, renaming, and deleting them altogether.

image-20260218-054934.png

Renaming the snippet will not update its references in other campaigns.


Creating Snippets

On the Snippets listing page, click on Create Snippet on the top-right and choose the editor that best fits your use case.

image-20260218-055001.png

HTML Snippets

1. Type in the code for the snippet in the HTML editor or click on the snippets icon to paste content from an existing snippet or insert a reference to it.

image-20260218-055100.png

2. Use the navigation to move the code editor to the left-hand side or below the preview.

3. Some special links are also available for use in the code or content.

4. When you’re done, click Save.

image-20260218-055135.png
  • Add a name for the snippet; the name will be the same as used in the merge tag created by the platform. This field is restricted to 50 characters, and the only special characters allowed are hyphens and dashes. 

  • The description should narrate what purpose the snippet serves. This field is limited to 200 characters.

5. Upon saving the snippet, you can click on the (info) icon to open the About This Snippet panel. Here, you can rename the snippet, update the description, add tags, or share the snippet with another account.

image-20260218-055202.png

Visual Snippets

1. Visual Snippets is a single-row version of the Visual Editor, so all content blocks and rows are available.

image-20260218-055222.png

2. To add multiple content blocks, add more columns to the row.

image-20260218-055239.png

3. Rows have more settings, like card styles and column background colors to help you fine-tune your content.

4. When you’re done, click Save.

image-20260218-055303.png
  • Add a name for the snippet; the name will be the same as used in the merge tag created by the platform. This field is restricted to 50 characters, and the only special characters allowed are hyphens and dashes. 

  • The description should narrate what purpose the snippet serves. This field is limited to 200 characters.

5. Upon saving the snippet, you can click on the (info) icon to open the About This Snippet panel. Here, you can rename the snippet, update the description, add tags, or share the snippet with another account.

image-20260218-055328.png

The Visual Snippets editor does not have a settings tab because Visual Snippets inherit settings from the templates that they’re inserted into.


Sharing Snippets

To simplify testing across development and production accounts, you can share a snippet either as a copy or a linked copy to accounts within the same family structure.

On the Snippets page, select a snippet and click Share from the snippet menu.

image-20250523-194800.png
  • Share Snippet Copy: Create a duplicate of the snippet across accounts, with no link back to the original snippet.

  • Share Linked Snippet: Make the snippet available to be used in multiple accounts, where all content is controlled by the original snippet. You cannot make changes to a linked snippet in the accounts that are linked.

Share access with users & teams is a separate feature from snippets sharing. Learn more about Selective Access.

Share Snippet Copy

1. Clicking Share copy of snippet across accounts will allow you to configure a new snippet name and select the accounts you want to share this new snippet with. You can optionally add tags or a notification to your teammates.

image-20250523-195021.png

2. Confirm your selected accounts.

image-20260218-055455.png

3. Once shared, go to one of the accounts you just selected. Since there is no link between this snippet and its duplicates—and there’s no limit to the number of times you can share a copy of a snippet—there is no list of accounts for you to reference.

4. For snippets created in the HTML Editor, the code is evaluated and will identify certain links and properties that can be updated to match the destination account. For those created in the Visual Editor, you’ll be given a list you need to manually check and update. All relevant items will be listed on the right-hand panel and can be revisited with the yellow warning icon in the top nav.

image-20260218-055519.png

Share Linked Snippet

1. Clicking Share linked snippets across accounts will allow you to give permission to certain accounts to use the snippet linked from the original account. Since you’re sharing a single entity, you cannot edit the name of the linked snippet. You can optionally add tags or a notification to your teammates.

image-20250523-195149.png

2. Confirm your selected accounts.

image-20250523-195229.png

3. Once shared, you’ll see an active list of accounts that have access to this linked snippet. You can edit this list by unlinking or sharing to another account at any time; it will be automatically shown if you click Share linked snippets across accounts for this snippet again.

image-20250523-195358.png

4. When you go to an account with a linked snippet, you’ll see an icon indicating that it’s linked in the Linked Accounts column. Since you can’t edit it, it cannot be opened in the linked account, but it can be inserted into a campaign template using codeless personalization or ZML. To make edits, return to the original account and update the original snippet. Once saved, its edits will be reflected across all accounts that are linked to the snippet.

image-20250523-195534.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.