Solved

Adding Tags and Variable Syntax for Christmas

  • 18 December 2020
  • 8 replies
  • 157 views

Badge +2

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!

 

icon

Best answer by BarryK 21 December 2020, 17:27

View original

8 replies

Badge +2

OK this actually looks like a GMAIL problem…

This is what the email looks like in Outlook…
 

 

Userlevel 5
Badge +10

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?

Badge +2

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

Userlevel 5
Badge +10

@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.

Badge +2

We tried the double space, but no luck.

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

"Merry Christmas, Barry"

Barry

Badge +2

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

Badge +2

Hi @Paul S  - Can you emulate the error?

Userlevel 5
Badge +10

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?

 

Reply