问题描述
这与API无关.这是关于使用Mailchimp并在构建活动时在Mailchimp的后端中设置条件合并字段.因此,这个问题与Mailchimp的工作方式有关,而不是与通过API或类似方式集成Mailchimp有关.
This is not about the API. This is about using Mailchimp and setting conditional merge fields in the backend of Mailchimp when building a campaign. So this question is about how Mailchimp works rather than about integrating Mailchimp via an API or something similar.
(您还在这里?太好了!:-)
(You're still here? Great! :-)
我正在尝试使用日期字段显示条件内容.我的测试邮件列表中有3个人,一个生日1960年1月1日,一个1/1/1970年生日,一个1/1/1980年生日.
I'm trying to use a date field to show conditional content.I have 3 people in my test mailing list, one with birthday 1/1/1960, one with 1/1/1970 and one with 1/1/1980.
我设置了带有三个条件阻止的电子邮件,以便每个收件人都可以在其邮件中获得正确的文本.看起来像这样.
I've set up an email with three conditional block so that each recipient should get the right piece of text in his mail. It looks like this.
我使用的格式是:
*|IF:BIRTHDATE>1/1/1970|*
Some text for people with a birthdate greater than 1 jan 1970
*|END:IF|*
*|IF:BIRTHDATE=1/1/1970|*
Some text for people with a birthdate equal to 1 jan 1970
*|END:IF|*
*|IF:BIRTHDATE<1/1/1970|*
Some text for people with a birthdate smaller than 1 jan 1970
*|END:IF|*
我已采用1月1日(1/1)的日期,以避免与美国和欧盟日期表示法可能发生冲突,以排除调试过程.但是,每位收件人在发送测试邮件时都会收到三个文本中的最后一个,这意味着所有三个文本(无论其生日如何)都与最后一个条件匹配*|IF:BIRTHDATE<1/1/1970|*
这很奇怪,因为我有意采取Middel的出生日期来排除这种情况.
I've taken the date of the 1st of jan (1/1) to avoid possible conflicts with US and EU date notations to rule that out of the debugging process.However, eacht recipient receives the last of the three texts when sending the test mailing, meaning that all three, regardless of their birthdate somehow match the last condition *|IF:BIRTHDATE<1/1/1970|*
This is strange since I've deliberately taken the middel birthdate to rule this out.
收件人列表中的日期表示法与我在条件中使用的确切的日期表示法匹配.
The date notation in the list of recipients matches the exact dat notation that I'm using in the conditions.
有人知道在Mailchimp中如何使用日期吗?我在Mailchimp或网络上的其他任何地方都找不到任何信息.
Does anyone have any idea how this should be done with dates in Mailchimp? I can't find any iformation on that on either Mailchimp or anywhere else on the net.
推荐答案
您必须使用格式"YYYY-MM-DD".
You have to use the format 'YYYY-MM-DD'.
我也在为此而苦苦挣扎,但是我有以下工作方式:
I was struggling with this, too, but I have the below working:
*|IF:VALIDUNTIL=2016-12-31|*
Vaild Member
*|ELSE:|*
Expired Member
*|END:IF|*
这篇关于使用日期字段的Mailchimp条件合并标签不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!