Solved

Show/hide logic for those not subscribed to SMS Marketing

  • 18 October 2023
  • 8 replies
  • 195 views

Badge +5

Hi! How to show/hide content block based on someone subscribing SMS Marketing? We want a block to show to people who haven’t subscribed yet. 

icon

Best answer by bluesnapper 19 October 2023, 10:10

View original

8 replies

Userlevel 2
Badge +3

Hi @julie.digital 
I hope you are well,

This is possible to do in flows by creating a conditional split. The definition in the conditional split would be = “If someone is consented to receive SMS” - if they have consented, they will go to the “yes” path and if they haven’t they will go to “NO” path. The email on the “No” path will have the content block that you want to show to profiles who haven’t subscribed yet. (Both emails are essentially just clones of each other, with the only difference being that content block that you want to show to non SMS subscribers.)

For campaigns - you would essentially just send to a segment who are non SMS subscribers.

Let me know if this helps,

Thanks,
Arpit Banjara
LinkedIn

Userlevel 6
Badge +21

HI @julie.digital thanks for posting in the Klaviyo Community. The suggestion above is a great way to differentiate people who have signed up for SMS and who haven’t yet. 

 

Unfortunately, show/hide blocks don’t work with SMS consent because of how the information is stored in Klaviyo, but hoping this will be a future feature. 

In case you’re interested, here is a bit more information about show/hide blocks. 

This article from Klaviyo shows you how to create a show/hide blocked based on a profile’s variables. 

Klaviyo Community answer regarding show/hide blocks for SMS consent

Userlevel 7
Badge +36

Hi @julie.digital 

Just to add to the great responses by @ArpitBanjara  and @ArpitBanjara there is a solution using a custom property if you prefer to use display logic.

On your SMS opt-in form, on the button click action, add a hidden field with a new profile property 'sms_optin' (or similar) and a value of 'yes' that is set when a contact subscribes to SMS updates. See the form configuration screengrab below.

For any existing SMS subscribers you have, you'll need to export those and re-import them with an 'sms_optin' field set to 'yes' and mapped to your 'sms_optin' custom property to ensure your SMS block is hidden from that group. 

In your email display block logic use: person|lookup:'sms_optin' != 'yes' which will select contacts who have NOT opted into SMS marketing and display your SMS message block to that audience. 

A consideration with this approach is that if a contact opts-in to SMS, then they subsequently opt-out, the custom field 'sms_optin' will still be set to 'yes' for these contacts. just something to be aware of.

Hope that helps

Andy


 

Badge +5

Hi @julie.digital 
I hope you are well,

This is possible to do in flows by creating a conditional split. The definition in the conditional split would be = “If someone is consented to receive SMS” - if they have consented, they will go to the “yes” path and if they haven’t they will go to “NO” path. The email on the “No” path will have the content block that you want to show to profiles who haven’t subscribed yet. (Both emails are essentially just clones of each other, with the only difference being that content block that you want to show to non SMS subscribers.)

For campaigns - you would essentially just send to a segment who are non SMS subscribers.

Let me know if this helps,

Thanks,
Arpit Banjara
LinkedIn

 

 

Thanks @ArpitBanjara for sharing. What I need is for a campaign :) But yeah, I can use suggestions below. Thanks again!

Badge +5

HI @julie.digital thanks for posting in the Klaviyo Community. The suggestion above is a great way to differentiate people who have signed up for SMS and who haven’t yet. 

 

Unfortunately, show/hide blocks don’t work with SMS consent because of how the information is stored in Klaviyo, but hoping this will be a future feature. 

In case you’re interested, here is a bit more information about show/hide blocks. 

This article from Klaviyo shows you how to create a show/hide blocked based on a profile’s variables. 

Klaviyo Community answer regarding show/hide blocks for SMS consent

 

Hi @KatherineB ! Thank you for responding. And yes, hopefully it becomes a feature soon :)

Badge +5

Hi @julie.digital 

Just to add to the great responses by @ArpitBanjara  and @ArpitBanjara there is a solution using a custom property if you prefer to use display logic.

On your SMS opt-in form, on the button click action, add a hidden field with a new profile property 'sms_optin' (or similar) and a value of 'yes' that is set when a contact subscribes to SMS updates. See the form configuration screengrab below.

For any existing SMS subscribers you have, you'll need to export those and re-import them with an 'sms_optin' field set to 'yes' and mapped to your 'sms_optin' custom property to ensure your SMS block is hidden from that group. 

In your email display block logic use: person|lookup:'sms_optin' != 'yes' which will select contacts who have NOT opted into SMS marketing and display your SMS message block to that audience. 

A consideration with this approach is that if a contact opts-in to SMS, then they subsequently opt-out, the custom field 'sms_optin' will still be set to 'yes' for these contacts. just something to be aware of.

Hope that helps

Andy


 

 

Thanks for this @bluesnapper ! SUPER HELPFUL! I think this solves my problem :)


I just have a clarification. In this statement, person|lookup:'sms_optin' != 'yes'  will select those who have NOT opted in.

[In your email display block logic use: person|lookup:'sms_optin' != 'yes' which will select contacts who have NOT opted into SMS marketing and display your SMS message block to that audience.] 

 

Shouldn’t it be person|lookup:'sms_optin' != 'no' ? Because in your first statement, the value for those who subscribe to SMS updates will be YES. And what we want to do is display a block to those who have not subscribed yet?

[On your SMS opt-in form, on the button click action, add a hidden field with a new profile property 'sms_optin' (or similar) and a value of 'yes' that is set when a contact subscribes to SMS updates.]

 

Please let me know if my understanding is correct? or incorrect? Thank you!

Userlevel 7
Badge +36

Hi @julie.digital Glad to be of help!

!= means 'does not equal'

When a contact subscribes to SMS, their 'sms_optin' custom property will be set to 'yes'. Therefore they will fail the display logic - person|lookup:'sms_optin' != 'yes' (does not equal 'yes') - and your block will not be shown to them. It will only be shown to contacts who have any other 'sms_optin' value i.e contacts who have not subscribed to SMS.

The best way to check everything is OK is to add the custom property 'sms_optin' to a test profile and set it to 'yes'. Then add your block to your email template with the conditional display of person|lookup:'sms_optin' != 'yes'. Go to Preview & Test, search for your test profile, and check the block is hidden. Then pick a random contact and the block should be displayed. My test examples are below.

Remember, you’ll need to update historical SMS optins so that their 'sms_optin' has the value yes otherwise they will see the block.

Let me know if you have any further questions.

Regards

Andy

 

sms_optin = yes

 

sms_optin = any other value

 

Badge +5

Hi @julie.digital Glad to be of help!

!= means 'does not equal'

When a contact subscribes to SMS, their 'sms_optin' custom property will be set to 'yes'. Therefore they will fail the display logic - person|lookup:'sms_optin' != 'yes' (does not equal 'yes') - and your block will not be shown to them. It will only be shown to contacts who have any other 'sms_optin' value i.e contacts who have not subscribed to SMS.

The best way to check everything is OK is to add the custom property 'sms_optin' to a test profile and set it to 'yes'. Then add your block to your email template with the conditional display of person|lookup:'sms_optin' != 'yes'. Go to Preview & Test, search for your test profile, and check the block is hidden. Then pick a random contact and the block should be displayed. My test examples are below.

Remember, you’ll need to update historical SMS optins so that their 'sms_optin' has the value yes otherwise they will see the block.

Let me know if you have any further questions.

Regards

Andy

 

sms_optin = yes

 

sms_optin = any other value

 

 

Andyyyy! Thank you! I get it now, with this != means 'does not equal' 

 

You’re super helpful! Have a great day <3

Reply