Snippets

Snippets make it easy to re-use content across multiple emails in your campaign and embed custom HTML into your emails to match the branding of other emails your company sends.



Basic Snippets

Out of the box, Churn Buster includes Basic Snippets related to the customer, their payment, and the sender (your company).

1. Capture Snippets

These snippets are used to share links with customers where they can update their payment information. They are intelligent, changing based on where the customer is stored (Stripe, Braintree, etc), and based on your Capture settings.

Note: Some companies prefer to link to a different customer account page rather than the Capture page.

  • {{capture.link}} → Update Your Card Now (linked to your Capture page)
  • {{capture.link | text: "Update Card"}} → Update Card (linked to your Capture Page)
  • {{capture.url}} → https://example.com/update-billing.html?secure=customer-specific&parameters=go-here (We don't recommend using this tag, since the secure links we generate are fairly long, though it is handy when using Custom Snippets to create Capture Buttons instead of Capture Links.)

2. Sender Snippets

These snippets describe the sender of the email. They are handy for including in your email signatures, or for greetings like: "Hi, I'm {{sender.first_name}}  and I handle support issues at {{sender.company_name}}."

  • {{sender.email}} → support@coolcompany.com
  • {{sender.display_name}} → Cool Company Support
  • {{sender.company_name}} → Cool Company
  • {{sender.first_name}} → Sarah
  • {{sender.last_name}} → Jones

Note: These values can be customized, specific to each email, from the Campaign Editor.

3. Campaign Snippets

These snippets describe the current campaign the customer is in. Be aware that it's possible the campaign amount is different from the customer's subscription amount, so including these can be confusing for customers in edge cases.

Though they are also handy if you wanted to, for example, include a phone number in emails sent to customers paying greater than $500/mo.

  • {{campaign.started_at}} → 2019-05-14T17:11:07Z (ISO8601 timestamp, can be modified using Liquid Filters)
  • {{campaign.started_at | date: "%B %e, %Y" }} → May 14, 2019 (Liquid Date Filter docs)
  • {{campaign.amount_in_cents}} → 50000
  • {{campaign.currency}} → USD
  • {{campaign.formatted_amount}} → $500.00

4. Customer Snippets

These snippets describe the customer receiving the email. They are handy for including in greetings, like "Hi {{customer.first_name | default: "there"}},".

These snippets work for all customers, regardless of which billing system you're integrated with:

  • {{customer.email}} → sarah@example.com
  • {{customer.properties.x}} → You can set any custom properties you like using the Churn Buster API. Contact support@churnbuster.io if you'd like to start sending custom properties to Churn Buster, that can be injected into customer emails.
  • {{customer.source}} → stripe (where is this customer's data stored - possible values include: stripe , braintree , recharge , in_house , etc)
  • {{customer.source_id}} → cus_98aysd98fhio23h498 (the ID of the customer from Stripe, etc.)

IF THE CUSTOMER IS STORED IN STRIPE...

These additional snippets are auto-synced with Stripe:

  • {{customer.properties.stripe.customer.description}} → Whatever you have stored in Stripe for the Customer's Description
  • {{customer.properties.stripe.customer.metadata.x}} → Whatever you have stored in Stripe for the Customer's x  Metadata field

IF THE CUSTOMER IS STORED IN RECHARGE...

These additional snippets are auto-synced with Recharge:

  • {{customer.properties.recharge.hash}} → 8176904a2ad4294c283b2c1
  • {{customer.properties.first_name}} → Sarah
  • {{customer.properties.last_name}} → Jones


Custom Snippets

You can also create your own Custom Snippets for advanced customization using HTML and Liquid.

How Churn Buster Customers Have Used Snippets:

  • Create a signature snippet that's re-used in your emails (see instructions below)
  • Add an HTML <img> tag to your signature to include your avatar or company logo (see example below)
  • Personalize emails with a custom greeting

How to Create a Custom Snippet:

  1. Go to the Snippets page in your account
  2. Click New Snippet
  3. For the Tag Name, enter something simple like "signature" (this will be what you use to embed the Snippet in your emails - ie {{snippets.signature}} )
  4. For the Snippet HTML, you can enter any HTML or text you like. You can include Basic Snippets like {{capture.url}}  or {{sender.company_name}}. And you can also use Liquid Tags & Filters to customize any snippets you use (e.g. "Hi {{sender.first_name | default: "there"}},").


Example: Add a logo

First, create a Custom Snippet.

This will create a short string of text that can be easily inserted into email templates.

  1. Host your logo file, and record the URL where it can be found.
  2. Click here to add a new snippet in Churn Buster.
  3. In the Tag Name field, type in "logo"
  4. In the Snippet HTML field, type in the following, replacing URL_GOES_HERE with the URL from Step 1: <img src="URL_GOES_HERE" alt="ALTERNATIVE_TEXT" height=80>

Next, add the snippet to your emails.

  1. Click here to edit your campaign.
  2. Choose an email to edit.
  3. Add {{snippets.logo}} where you'd like the logo to be inserted.
  4. Click Save!


Example: Add a Capture button

First, create a Custom Snippet.

This will create a short string of text that can be easily inserted into email templates.

  1. Click here to add a new snippet in Churn Buster.
  2. In the Tag Name field, type in "capture_button"
  3. In the Snippet HTML field, add the following: <p style="margin:0;"><a href="{{capture.url}}" style="display:inline-block;padding:12px 30px;border-radius:30px;text-decoration:none !important;background:#333333;color:white !important;font-size:16px;line-height:18px;font-family:Arial, Helvetica, sans-serif;font-weight:bold;text-align:center;">Update Your Card Now</a></p>

Next, add the snippet to your emails.

  1. Click here to edit your campaign.
  2. Choose an email to edit.
  3. Add {{snippets.capture_button}} where you'd like the logo to be inserted.
  4. Click Save!



How to Preview Snippets in Customer Emails

Send a test email from the email editor to preview the template in your inbox. Test emails do not populate customer-specific data.

To preview snippets for a specific customer, go to an Active Campaign and click into an upcoming email. The dynamic messaging will appear in the email preview.