You can use email tags (also known as merge tags) to display dynamic and personalized content in your emails and success messages.
This guide shows you how to personalize your emails and success messages using merge tags.
What is a Merge Tag?
A merge tag is a placeholder that allows you to personalize email campaigns and confirmation messages. Merge tags are also known as personalization fields or personalization tags.
Noptin merge tags are usually enclosed between two opening square brackets ([[) and two closing square brackets (]]).
Each subscriber has a unique email address. When you include the [[email]] merge tag in your email campaigns, each subscriber receives an email with the merge tag replaced by the subscriber’s actual email.
Where Can You Use Merge Tags?
You can use merge tags in the success messages shown to users after they subscribe to your newsletter,
… the confirmation messages shown to subscribers who confirm their email addresses, unsubscribe from your newsletter, or re-subscribe to your newsletter,
… the double opt-in confirmation email,
or normal email campaigns including the new post notifications and welcome emails.
Available Merge Tags
Below is a list of the available merge tags.
Displays the blog name.
Displays the blog description.
Displays the blog’s URL.
Displays the company name that you set in Noptin > Settings > Emails.
Displays a personalized link to our website.
Displays today’s date, in the format set in your WordPress settings.
Displays the current year.
Inserts a URL to unsubscribe from the newsletter.
Inserts a URL to re-subscribe to the newsletter. Useful in cases where a subscriber unsubscribes from your newsletter and decides to resubscribe again.
Inserts a link to a page where the subscriber can edit their subscription details and email preferences. Requires the Ultimate Addons Pack.
Displays the subscriber’s first name.
Displays the subscriber’s last name.
Displays the subscriber’s email address.
Displays the subscriber’s avatar URL.
Displays the date on which a subscriber subscribed to your blog.
Displays the subscriber’s secret confirmation key.
Replace $subscriber_field with any custom field that you’ve added to your website to display the value of that field. For example, phone in the image below.
Post Notifications Tags
These merge tags are only available when setting up a new-post notification campaign.
Displays the post’s summary.
Displays the post’s entire content.
Displays the post’s title.
Displays the featured image. Please note that this displays the entire featured image and not just the URL.
Displays the author’s name.
Displays the author’s email address.
Displays the author’s login name.
Displays the author’s id.
Displays the date a post was published.
Displays the post’s URL.
Displays the post’s ID.
Displays a button linking to the post.
Replace $key with the actual meta key. Displays a post’s custom metadata.
These merge tags are available when sending a bulk email or notification to your WooCommerce customers.
This displays the date a customer was created (joined your store).
Displays the date a customer was last modified (updated their account details).
Shows the customer display name as set in his/her profile.
[[billing_first_name]] or [[shipping_first_name]]
Either displays the customer’s first billing or shipping name.
[[billing_last_name]] or [[shipping_last_name]]
Either displays the customer’s last billing or shipping name.
[[billing_address_1]], [[billing_address_2]], [[shipping_address_1]] or [[shipping_address_2]]
Use this to display the customer’s billing or shipping address.
[[billing_city]] or [[shipping_city]]
Displays the customer’s billing or shipping city.
[[billing_postcode]] or [[shipping_postcode]]
This displays the customer’s billing or shipping postcode.
[[billing_country]] or [[shipping_country]]
This merge tag displays the customer’s billing or shipping country.
[[billing_state]] or [[shipping_state]]
Displays the customer’s billing or shipping state/region/province.
This merge tag displays the customer’s phone number.
Displays the total amount the customer has spent on your store.
Displays the total number of orders that the customer has made on your store.
These merge tags are available when sending an email to your WordPress users.
Shows the user’s display name as set in their profile information.
This displays the date a user joined your site.
Displays the user’s nickname.
This merge tag displays the user’s description.
$user_meta_key” with an actual meta key as saved in the wp_usermeta table to display the meta value associated with the user.
[[rule height="3px" color="black" width="100%" margin="50px"]]
Displays a horizontal rule in emails.
Adds a vertical blank space.
[[button text="Click Here" url="https://noptin.com" background='#008000' color="#ffffff" rounding="4px"]]
Displays a button with a call to action.
Requires the Ultimate Addons Pack. Displays an automatically-generated unique coupon code.
8 thoughts on “Merge Tags”
Hey, do u guys have any email tag to display featured image in the mail body?
We’ve just released an update that introduces the [[featured_image]] email tag.
thanks for ur reply. I will check it
I tried using [[featured_image]] tag in the post campaign email body. And it displays nothing. I am using the Noptin v1.3.6 on wordpress v5.5.3
The latest version is 1.3.7, please test with that.
I tested with 1.3.7 and still not displayed.
the Email Tag [[display_name]] doesn’t work for my automatic Email Campaigns.
What am I doing wrong?
Hi, are you sending the campaign to WordPress users or are you sending it to email subscribers?