Product reviews drive conversions. Period. But reviews are hard to come by especially if you don't have an efficient way of asking for them. With this Cue, you'll be able to ask customers to review a product they've recently purchased by prompting them to do so. Even if they don't want to review that particular item, you can provide them the tracking information of that order.
Copy the following code and paste it underneath your Reamaze Shoutbox script or existing Cue script, above the <head>
tag. Note that data-driven Cues using Shopify's liquid markup will not work via Google Tag Manager and must be pasted into your theme.liquid template. To see a tutorial of the basics of getting Reamaze installed for your Shopify store, click here.
Important things to note:
{% if shop.customer_accounts_enabled and customer.id and customer.orders.size > 0 %}
will tell the Cue to only look for customers that are logged in and have an order size larger than 1{% if customer.last_order.line_items.size > 0 %}
will tell the Cue to only look at the customer's last order where there's more than 1 line itemReview {{ customer.last_order.line_items[0].product.title }}
will show the name of the customer's last order's first line item namehttps://YOURSTORE.myshopify.com/{{ customer.last_order.line_items[0].product.url }}
will take the customer directly to the product page so they can actually leave a review{{ customer.last_order.line_items[0].fulfillment.tracking_url }}
will show the tracking information for the customer's last order's first line item
Thing you can edit:
- You can edit the
message
text to something that you prefer - You can edit the
button
text to something that you prefer
Here's what the Cue will look like to customers:
{% if shop.customer_accounts_enabled and customer.id and customer.orders.size > 0 %}
{% if customer.last_order.line_items.size > 0 %}
<script type="text/javascript">
var _support = _support || { 'ui': {}, 'user': {} };
_support.outbounds = _support.outbounds || [];
_support.outbounds.push({
id: "RequestReview",
name: "Review Product",
message: "Hey, it looks like you recently bought a product from us. How do you like it? Let us know with a review!",
sound: true,
user: {
type: "team"
},
buttons: [
{
text: "Review {{ customer.last_order.line_items[0].product.title }}",
url: "https://YOURSTORE.myshopify.com/{{ customer.last_order.line_items[0].product.url }}"
},
{
text: "Track your item",
url: "{{ customer.last_order.line_items[0].fulfillment.tracking_url }}"
}
],
rules: [
{
type: "timeOnSite",
op: "greaterThan",
value: "20s"
}
]
});
</script>
{% endif %}
{% endif %}
Here's an example of where you might paste this Cue: