product.link — Displays the product URL#
This placeholder is included in the free version of ShopMagic. It works with events that provide product data, such as Product published and Product updated. It is also available with the Review Published event provided by ShopMagic Review Requests.
Description#
Use {{ product.link }} to display the URL of the product provided by the automation’s event. For the Review Published event, this is the reviewed product.
The placeholder returns a URL, not a complete HTML link. It does not automatically generate links for every product in an order.
Usage#
Place {{ product.link }} in a field that supports placeholders, such as an email message.
To create a clickable link in an HTML email, place the placeholder in the href attribute:
<a href="{{ product.link }}">View this product</a>
You can also use the product name as the link text:
<a href="{{ product.link }}">{{ product.name }}</a>
Parameters#
This placeholder supports five optional UTM parameters for campaign tracking:
utm_source— The traffic source, such asnewsletter.utm_medium— The marketing channel, such asemail.utm_campaign— The campaign name.utm_content— A value distinguishing individual links or content variations.utm_term— A keyword or another campaign detail.
For example:
{{ product.link | utm_source: 'newsletter' | utm_medium: 'email' | utm_campaign: 'product_update' }}
Leave the UTM fields empty if you do not need campaign tracking.
Fallback#
No custom fallback value is available. If the event does not provide product data, the placeholder displays no content.