Segmentation and Timestamp Rules: FAQ
1. I sent in a
created_at timestamp, but no user matches my Signed up segment. Why?
In order for any timestamp rule to work, you need to send the timestamps in unix (seconds since epoch) format. If you are sending timestamps in milliseconds or if you’re using a different timestamp format like ISO 8601, your users will not match.
Correct: 1461866400 (April 28, 2016, 6:00:00 pm)
Incorrect - milliseconds: 1461866400000
Incorrect - ISO 8601: 2016-04-28T18:00:00Z
Incorrect - RFC 2822: Thu, 28 Apr 2016 18:00:00 +00:00
- You can easily notice if your timestamp is in the correct format or not by the fact that the human readable date and time will appear next to the epoch value in the user interface.
- If you need a timestamp converter, you can try epochconverter.com
2. I’m using a timestamp rule for my campaign trigger, but users are only receiving the first email.
Timestamp rules can get tricky as some of them allow users to exit a segment while others are including them until the timestamp value is changed. If you’re using one of the rules that allow users to exit, make sure that the user will still in the segment after the email delay.
is a timestampthe user will enter, but not exit the segment, you can add multiple emails with different delays and the user will receive them
is a timestamp before X days from nowthe user will enter, but not exit the segment, you can add multiple emails with different delays and the user will receive them
is a timestamp before X days agothe user will enter, but not exit the segment, you can add multiple emails with different delays and the user will receive them
is a timestamp after X days from nowthe user will exit the segment as soon as there are less than X days left until that date
is a timestamp after X days agothe user will exit the segment as soon as more than X days passed since that date
3. How do I email users whose timestamps are before/after a specific date?
You can use
is less than for before a specific date and
is greater than for after a specific date and compare against your chosen date in epoch (seconds since epoch) format.
upgrade_date is less than 1459515600 will match all the users whose
upgrade_date is before April 1, 2016 at 13:00 GMT
upgrade_date is greater than 1459515600will match all the users whose
upgrade_date is after April 1, 2016 at 13:00 GMT
4. What timezone are you using to display timestamps?
Inside Customer.io, the timestamp values are dictated by the timezone settings of your computer/laptop. If you change your settings, the values shown in the user interface will update accordingly.