Using E-goi's advanced merge codes

Merging your contacts' info in your campaigns is par for the course, but you can go one step further and do some neat stuff :)

For example, you may have E-goi auto-capitalise any contact info or display different items for different segments!

Simply add this to your campaign contents:

{merge_code:option}

Where "merge_code" is one of our codes and "option" is one of the following:
 

Option Description Example Result
UPPER or TOUPPER Switch to uppercase. Dear {!fullname:UPPER}! Dear JOHN ROBINSON,
LOWER or TOLOWER Switch to lowercase. Dear {!fullname:LOWER}, Dear john robinson,
UCWORDS Capitalises every word. Dear {!fullname:UCWORDS}, Dear John Robinson,
UCFIRST Capitalises the first word only. Dear {!fullname:UCFIRST}, Dear John robinson,
FIRSTWORD Shows the first word only. Hi, {!fullname:FIRSTWORD}! Hi, John!
LASTWORD Shows the last word only. Dear Mr {!fullname:LASTWORD}, Dear Mr Robinson,
TRUNCATE Cuts off any text beyond X characters (use the ":1" parameter to keep the last char).

If you don't keep the last char and the text has multiple words, only the first word will be shown.
Dear {!fname:TRUNCATE:4:1},
Dear {!fname:TRUNCATE:4},

Dear {!fullname:TRUNCATE:11:1},
Dear {!fullname:TRUNCATE:11},
Dear John,
Dear Joh,

Dear John Robins,
Dear John,
IF:!segment_x=1
contents1 ELSE:
contents2
ENDIF
Shows different contents for specified segments in your email, SMS and SmartSMS sends (not available for landing pages yet).

Replace "x" with your segment ID.

"=1" means "if segment is x". In case you'd like this to be "if segment ISN'T x", change it to "=0".
{{IF:!segment_x=1}}
Hello Mrs {{fullname}},
{{ELSE:}}
Hello Mr {{fullname}},
{{ENDIF}}
Hello, Mrs Jane Robinson,

Hello, Mr John Robinson,
URLENCODE Converts to URL (eg. when parsing to an external CRM the name of anyone clicking through a link in your email). //www.example.com/?data={!fullname:URLENCODE} //www.example.com/?data=John+O%27Sullivan



 

Displaying the contact's first name and capitalising it

If you've got any mangled capitalisation in your contact list (eg. John, JohN and JOHN), simply use:

Hi, {!fname:UCWORDS}!

This will display all first names in proper capitals ("Hi, John!").

You can also string multiple codes together using a colon. How about stripping the contact's full name down to a capitalised first name only (ie. turning "JOHN CHARLES ROBINSON" into "John")? Just use:

Hi, {!fname:FIRSTWORD:UCWORDS}!

Keep in mind you must start your multi-code sequence with either FIRSTWORD, LASTWORD or TRUNCATE!



 

Truncating your contacts' names so your SMS doesn't exceed the character limit

If you're starting off your SMS with "Hi, !fname!", E-goi will replace "!fname" with the contact's first name. However, long first names may push the remainder of your message beyond the char limit. All you need to do to prevent it is:

Hi, {!fname:TRUNCATE:8:1}!

Using the above, the contact's name will be confined to a maximum of 8 characters (including the last letter). "John" would render normally while "Sigourney" would come up as "Sigourne" so as not to impact the message's length.



 

Displaying women's clothing for females and men's clothing for males

Start by creating a segment encompassing your female contacts. Then add this condition to your email's HTML source in E-goi:

{{IF:!segment_SegmentID=1}}

<img src="//www.example.com/images/femalefashion.jpg" />
 
{{ELSE:}}

<img src="//www.example.com/images/malefashion.jpg" />

{{ENDIF}}


Replace "SegmentID" with the ID for the female segment and you're all set! E-goi will automatically show the "femalefashion.jpg" pic to any contacts in the female segment while switching to "malefashion.jpg" for everyone not in that segment.



 

Displaying a different discount voucher for loyal customers, one-time customers and prospects

This is quite similar to the previous example, except you should use:

{{IF:!segment_LoyalCustomerSegmentID=1}}

Thanks for being our loyal customer! Here's a little gift on us. Voucher code: AAAAAA

{{ELSEIF:!segment_OneTimeCustomerSegmentID=1}}

Thanks for your purchase. Here's a little gift on us. Voucher code: BBBBBB

{{ELSE:}}

Thanks for registering with us! Enjoy your discount voucher: CCCCCC

{{ENDIF}}


Replace  "LoyalCustomerSegmentID" and "OneTimeCustomerSegmentID" with the ID for those segments. E-goi will show the first voucher to any contacts in the loyalty customer segment, the second voucher to one-time customers and the third one to anyone not in those two segments.



 

Displaying the same contents to US and UK shoppers while showing a different contents to Spanish shoppers

This is quite similar to the previous example, except you should use:

{{IF:!segment_USCustomersSegmentID=1||!segment_UKCustomersSegmentID=1}}

Hello!

{{ELSE:}}

¡Hola!

{{ENDIF}}


Replace "USCustomersSegmentID" and "UKCustomersSegmentID" with the ID for those segments. E-goi will show "Hello!" to any contacts in the US or UK segment and switch to "¡Hola!" for anyone not in any of those two segments.