You may find yourself in a scenario where you want to skip/suppress a message for a person based on some logic in the content itself. This tag allows you to do so.

{% skip_message message:"<user defined message>" %}

All message skips caused by this liquid tag will be recorded as a Message Skipped event in the person’s journey with:

  • reason = custom_skip

  • reason_detail = <user defined message>

Code snippets that can be included on top or within the personalization logic of any message serve as a good example.

Applications

Skip if there is no data in the external feed:

{% if ext_feed == empty %} {% skip_message message:"No data in feed"}

Skip if a person received a message within the last 2 days:

{% assign today_date = 'now' | date: '%s' %}
{% assign pre_date = last_contacted | date: '%s' %}
{% assign diffSeconds = today_date | minus: pre_date %}
{% assign diffDays = diffSeconds | divided_by: 3600 | divided_by: 24 %}
{% if diffDays < 2 %}
{% skip_message message:"Last contacted within last 2 days" %}
{% endif%}