Retainful Knowledge Base
  • Retainful Knowledge Base
  • Installation
    • WooCommerce
    • Shopify
    • Setting up a Sending Domain
  • Automations
    • Welcome Email Series
    • Abandoned Cart Recovery Emails
    • Thank you Email Series
    • Win Back Emails
    • Product Review Request Email
    • Order Follow Up Emails
    • Product Specific Follow Up Emails
    • Automation Workflow Settings
      • Entry Rules
      • Trigger Rules
      • Customer Rules
      • Exit Rules
      • Block / Steps
    • Smart Sending
    • Smart Delay
  • EMAIL SETTINGS
    • Email Drag and Drop Editor
    • Save as Template
    • Adding a store logo on your email template
    • Adding a Coupon Block to Your Email Template
  • Campaigns
    • Creating a Campaign
  • AUDIENCE
    • Getting started with List & Segments
    • Creating a List
    • Creating a Segment
  • Signup Forms
    • Add to Cart Popup
    • Exit-Intent Popup
    • Welcome Popup
    • Embed Form
    • Enabling Signup Forms In Retainful Settings
    • Popup Editor
    • Popup Triggers
    • Popup Targeting
  • Contacts
    • What is a Contact
    • Import Contacts From Store
    • Import Contacts From CSV File
  • Metrics & Cart Activity
    • Cart Activity
    • Conversions
    • Automation Outbox
    • Campaign Outbox
  • Teams
    • Invite Team Members
  • SETTINGS
    • Retainful Settings
      • General
      • Email
      • Suppression List
      • UTM Parameters
    • Retainful - WooCommerce Plugin Settings
  • Integrations
    • MailChimp
    • MailerLite
    • Klaviyo
    • HubSpot
    • Brevo (Formerly SendInBlue)
    • Active Campaign
    • ConvertKit
    • Zapier
    • Migrate To Improved Integrations
  • HOW TO's
    • How to Insert Retainful's Shortcodes
    • How to Resolve Cart Recovery Emails Sent After Order Placement
    • How to Create Dynamic Coupon Codes in Emails
    • How to check conversions
    • How to ensure GDPR compliance - Marketing Consent
    • What Are Opt-In Settings and How Can You Configure Them?
    • How to Manage Multiple Stores with Retainful
    • How Can You Improve Email Deliverability
    • Best Practices for Higher Deliverability & Engagement
    • Sending Domain
      • GoDaddy
      • Hostinger
    • Google & Yahoo Sender Requirements
    • How Customer's Email Address is captured?
    • How Retainful Tracks Conversions with Coupon Codes?
    • How to delete a Bounce-back email or a failed email address?
    • How Was My Store Account Deleted?
    • How to insert coupon codes in automation emails?
    • How Can You Use Google Fonts in Retainful Email Templates?
  • Developers
    • Getting started
    • Authentication
    • Contacts
    • Lists
Powered by GitBook
On this page
  • List of Shortcodes
  • Common short codes
  • Customer Details
  • Shop Information
  • Campaign Short codes
  • 1. Last Order Information
  • 2. Last Cart Information
  • Automation Short codes
  • Common Short codes for Automation Workflows
  • Abandoned Cart Workflow
  • Post Purchase Workflows - Thank you, win back, order follow up & more
  • Order Information

Was this helpful?

  1. HOW TO's

How to Insert Retainful's Shortcodes

Insert Retainful shortcodes directly into your pages or posts to display cart recovery, referral, or discount content seamlessly.

Retainful enables you to personalize your emails effectively using shortcodes. For instance, you can dynamically include the customer’s name in the subject line or the body of the email by leveraging the appropriate shortcode. This enhances the relevance and engagement of your email communication.

When an email is sent to the customer, the shortcode is automatically replaced with their name, ensuring a personalized and engaging email experience.

IMPORTANT

Shortcodes must always be enclosed with two opening curly and two closing curly braces. Example: {{example_shortcode}}

List of Shortcodes

Here is a list of popular shortcodes that you can use in both the Subject Lines and Email Body:

Campaign & Automation These shortcodes are only applicable in the Campaign and Automation sections of Retainful. They can be used to personalize emails and messages for enhanced customer engagement.

Common short codes

These are common short codes that can be used in both campaigns and workflows.

Customer Details

  • {{first_name}}: Displays the customer's first name.

  • {{last_name}}: Displays the customer's last name.

  • {{customer_name}}: Displays the customer's full name.

  • {{email}}: Displays the customer's email address.

  • {{phone_number}}: Displays the customer's phone number.

  • {{unsubscribe_shop_customer_url}}: Displays a link that allows customers to unsubscribe from marketing emails or broadcasts.

Shop Information

The following short codes are related to the shop. These are common to both automation workflows and campaigns.

  • {{shop.name}}: Displays the shop name.

  • {{shop.email}}: Displays the shop email.

  • {{shop.currency}}: Displays the shop currency.

  • {{shop.domain}}: Displays the shop domain URL.

  • {{retainful_shop_url}}: Displays the Retainful store URL.

  • {{retainful_shop_url_with_coupon_code}}: Displays the Retainful store URL with a coupon code applied.

Campaign Short codes

In addition to the common short codes listed above, the following short codes can be used to include customer properties in your campaigns

1. Last Order Information

When sending a campaign, you can include the last order information.

  • {{last_order.order_number}}: Displays the order number.

  • {{last_order.order_date}}: Displays the date of the order.

  • {{last_order.order_status}}: Displays the current order status.

  • {{last_order.payment_method}}: Displays the payment method name.

  • {{last_order.total_price}}: Displays the total order price.

  • {{last_order.subtotal_price}}: Displays the subtotal amount.

  • {{last_order.total_tax}}: Displays the total tax.

  • {{last_order.total_discounts}}: Displays the total discount amount.

2. Last Cart Information

You can include the last abandoned cart information in the campaign using the following short codes. It will be useful when you target customers who abandoned the cart.

  • {{last_abandoned_cart.abandoned_checkout_url}}: Displays the recovery link for the abandoned checkout.

  • {{last_abandoned_cart.abandoned_checkout_url_with_coupon_code}}: Displays the recovery link with an applied coupon code.

  • {{last_abandoned_cart.total_price}} - Displays the total amount of the last abandoned cart / order

  • {{last_abandoned_cart.subtotal_price}}: Displays the subtotal price of the cart.

Automation Short codes

The following short codes can be used in the automation workflows. Please note that there are a few short codes that are specific to certain workflows.

Common Short codes for Automation Workflows

The following short codes can be used in almost all types of workflows except the "Welcome Email Series" type.

  • {{billing_address.name}}: Displays the full name for the billing address.

  • {{billing_address.address1}}: Displays the first line of the billing address.

  • {{billing_address.address2}}: Displays the second line of the billing address.

  • {{billing_address.city}}: Displays the billing city.

  • {{billing_address.province}}: Displays the state/province.

  • {{billing_address.zip}}: Displays the postal/ZIP code.

  • {{billing_address.country}}: Displays the billing country.

  • {{shipping_address.name}}: Displays the full name for the shipping address.

  • {{shipping_address.address1}}: Displays the first line of the shipping address.

  • {{shipping_address.address2}}: Displays the second line of the shipping address.

  • {{shipping_address.city}}: Displays the shipping city.

  • {{shipping_address.province}}: Displays the state/province.

  • {{shipping_address.zip}}: Displays the postal/ZIP code.

  • {{shipping_address.country}}: Displays the shipping country.

Abandoned Cart Workflow

The following shortcodes will work only for the abandoned cart automation

  • {{abandoned_checkout_url}}: Displays the abandoned cart recovery URL.

  • {{abandoned_checkout_url_with_coupon_code}}: Displays the recovery URL with a coupon code applied.

  • {{retainful_coupon_expiry_date | date: "%d-%m-%y %H:%M"}}: Displays the coupon expiry date in "day-month-year hour:minute" format.

Post Purchase Workflows - Thank you, win back, order follow up & more

The following short codes will work in all the "after purchase" workflows such as thank you emails, win back emails.

Order Information

  • {{order_number}}: Displays the order number.

  • {{order_date}}: Displays the date of the order.

  • {{order_status}}: Displays the current order status.

  • {{payment_method}}: Displays the payment method name.

  • {{total_price}}: Displays the total order price.

  • {{subtotal_price}}: Displays the subtotal amount.

  • {{total_tax}}: Displays the total tax.

  • {{total_discounts}}: Displays the total discount amount.

Need More Help? We’re here to make things easier for you!

  • Schedule a Call: Still stuck or need a hands-on walkthrough? Book a quick session with our support team, and we’ll guide you step-by-step.

Need More Help in setting up Retainful?

We’re here to make things easier for you!

  • Schedule a Call: Still stuck or need a hands-on walkthrough?

PreviousMigrate To Improved IntegrationsNextHow to Resolve Cart Recovery Emails Sent After Order Placement

Last updated 3 months ago

Was this helpful?

Email Us: Reach out anytime at .

.

Email Us: Reach out anytime at .

, and we’ll guide you step-by-step.

support@retainful.com
Schedule a call with us
support@retainful.com
Book a quick session with our support team