Email variables allow you to include recipient-specific information like customer names, order numbers, product details, and more.

In this article, you can find all Judge.me variables and how you can use them in your review request email.


Standard variables

Standard variables are pretty straightforward. You can just copy and paste them into any text blocks and subject line.

VariableWhat it does
{{ buyer_name }}Full name of the customer
{{ buyer_first_name }}First name of the customer
{{ buyer_last_name }}Last name of the customer
{{ buyer_email }}Email of the customer
{{ order_quantity }}Number of products in the order
{{ n_days_ago }}Number of days from when the order is fulfilled till now
{{ product_title }}Name of the purchased product
{{ product_image }}Featured image of the product
  • We'll use the original dimension of the image but make sure it does not exceed the email's width
  • If no image is available, it will display as No image.

{{ smart_product_image }}Same as {{ product_image }}, but if no image is available, it won't show anything, instead of the No image picture.
{{ product_url }}Link to the product page with predefined texts as "Take me to the ABC product page as a verified reviewer".
{{ shop_name }}Your store's name
{{ order_name }}Order number
{{ coupon_details }}Detail of the coupon, which you have set up in Judge.me > Rewards > Coupon Settings > Coupon Details.
{{ product_stars }}Link to the review form with predefined text as star icons. This will work like the Picture First Email Template.
{{ random_products_html }}Title, picture, and link to review 6 random products
{{ bought_together_html }}Title, picture, and link to review 6 products which are usually bought together with the main product
{{ most_bought_html }}Title, picture, and link to review 6 most bought products
{{ most_reviewed_html }}Title, picture, and link to review 6 products that have the most reviews

For the below variables, it's best to insert them into link texts and buttons, for example:

  • Insert link in texts (all templates):

  • Insert link in buttons (custom template):

VariableWhat it does
{{ product_handle }}Handle of the product. Check out our guide on how to find the product id and product handle.
{{ product_href }}Link to the product page with Judge.me authorized token
{{ product_image_url }}Can be used to adjust the size of the featured image of the product. Sample HTML code:
<img src="{{ product_image_url }}" height="150px">
{{ view_full_email_href }}Link to view the email as a Web page
{{ unsubscribe_href }}Link to unsubscribe from Judge.me emails
{{ shop_review_href }}Link with an authorized token to leave a shop review

Advanced variables

For the 4 variables below, they need to be used together with extra HTML code. If you only copy and paste them, it will only return raw data. 

  • {{ random_products }}
  • {{ bought_together }}
  • {{ most_bought }}
  • {{ most_reviewed }}

Here's a sample code you can use:

{% for product in random_products %}
<div class="email-one-product" style="margin: 0; padding: 24px 0 12px;">
<div class="email-one-product__product-title">{{ product.title }}</div>
<div style="display:block;">
<img class="email-one-product__product-image" src="{{ product.image_src }}" height="168">
</div>
<div style="display:block; text-align: center;">
<a class="email-one-product__product-url" href="{{ product.url }}" style="color: #ffffff; display: block; text-align: center; margin: 6px auto; background-color: #1565c0; font-size: 14px; font-weight: bold; cursor: pointer; border-radius: 2px; text-decoration: none; width: 70%; max-width: 220px; padding: 8px 12px; border: 1px solid #1565c0;">Review now</a>
</div>
</div>
{% endfor %}