Skip to main content
Solved

Adding Tags and Variable Syntax for Christmas

  • December 18, 2020
  • 8 replies
  • 172 views

BarryK
Problem Solver I
Forum|alt.badge.img+2
  • Problem Solver I
  • 5 replies

This is a weird one…
I want to wish my customers a Merry Christmas… but when I add tag variable with default…

Merry Christmas {{ first_name|default:'to you'}}! 🎄
Result - Merry ChristmasBarry! 🎄

If I change the tag to:

Merry Xmas {{ first_name|default:'to you'}}! 🎄
Result - Merry Xmas Barry! 🎄

 

Confused!

 

Best answer by BarryK

We tried the double space, but no luck.

We tried a comma instead of a space and that worked.

"Merry Christmas, Barry"

Barry

View original
Did this topic or the replies in the thread help you find an answer to your question?

8 replies

BarryK
Problem Solver I
Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 5 replies
  • December 18, 2020

OK this actually looks like a GMAIL problem…

This is what the email looks like in Outlook…
 

 


Forum|alt.badge.img+10
  • Klaviyo Employee
  • 101 replies
  • December 21, 2020

Hi Barry, so I’d like to look into this further for future reference in case somebody happens to run into the same issue in the future. The only change that was made to the subject line was “Christmas” in the first iteration, and “Xmas” in the changed version?


BarryK
Problem Solver I
Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 5 replies
  • December 21, 2020

Hey Paul,

That’s right. Worked fine in Outlook but in GMAIL we could not get the space between the word Christmas and the first_name

When we changed to Xmas the space appeared !

Very strange

 

Barry


Forum|alt.badge.img+10
  • Klaviyo Employee
  • 101 replies
  • December 21, 2020

@BarryK, out of curiosity, did you try a version where an extra space was added (so two spaces) after Christmas?

Merry Christmas(2 spaces){{ first_name|default:'to you'}}! 🎄

 

This is a very strange instance indeed. From what I’ve been able to see it looks like a campaign is scheduled to be sent using the version that works with Xmas but if you could test it out and let us know, we wouldn’t expect to see the words merged so any additional information would be appreciated.


BarryK
Problem Solver I
Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 5 replies
  • Answer
  • December 21, 2020

We tried the double space, but no luck.

We tried a comma instead of a space and that worked.

"Merry Christmas, Barry"

Barry


BarryK
Problem Solver I
Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 5 replies
  • December 22, 2020

Sorry… that should have been
“Merry Christmas,Barry”


BarryK
Problem Solver I
Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 5 replies
  • December 23, 2020

Hi @Paul S  - Can you emulate the error?


Forum|alt.badge.img+10
  • Klaviyo Employee
  • 101 replies
  • December 23, 2020

Hi @BarryK,  we were not able to replicate. Below is a test email where there happens to be a space. Has anybody else on the team seen this when sending themselves a preview of the email?