Skip to main content

Extended Variables

When you deisgn your templates, you can use some extended or non-standard variables in your templates. To reference extended variables, simply add extended_variables syntax in your liquid expression.

Preview Email

Use the variable {{email_preview_link}} to create an online version of your email template.
​
​<a href="{{email_preview_link}}">Click here to preview</a>

Unsubscribe

Use the variable {{unsubscribe_link}} in your HTML templates. When the email is sent out, the variable link expands to a hyperlink that includes a hash of the user's ID. When the user clicks the link, Blueshift can track the click and unsubscribe the user.

Resubscribe

You may want to send a confirmation email when a user unsubscribes from your mailing list. However, you could also include an option to resubscribe by inserting the variable {{resubscribe_link}} in your HTML templates.

Open Tracking Pixel

An open tracking pixel is added to the end of each email body by default. However, accounts can opt-in to position this pixel manually. If this snippet is missing from your template, then the open tracking pixel will be added to the end of the email body automatically.
​
If manual positioning is enabled, the pixel is inserted into the email markup by adding the following snippet.
​
​<img src="{{bsft_open_pixel}}"/>
​
Note: Contact [email protected] to enable Open tracking pixels for your account.

Skipping Link Tracking

The "bsft-no-track" attribute is specifically used for this purpose You can add this attribute to the relevant links. Adding the attribute removes all blueshift tracking from the specified link.
​
​<a href="https://www.gmail.com" bsft-no-track>email link</a>

Did this answer your question?