Personalised address on website

Just imagine...

...a contact (regardless of whether they are a Quentn or WordPress contact) receives an email from you with a link to a landing page - and on this page they are even addressed personally with their name. There are no problems with the Quentn plugin and the template engine Mustache.

Info: Template engine "Mustache"

With Mustache, rules are defined according to which data is processed, and certain placeholders in it (similar to a form) are replaced by current content. Mustache behaves similarly to email merge letters: email merge fields (placeholders) are inserted into a document, such as Name - Street - City. If several email merge letters are created from the document, the placeholder name is replaced by a real name, e.g. Emma Smith, in the finished mail merge letter. (Advanced users will find an introduction to Mustache here).

Of course, adopting a personalised approach only works for already identified users (how to address unknown visitors is explained below). Placeholders are used for the name of the contact - similar to  Quentn's emails.

First, create your landing page in WordPress. In the places where you want the name of the contact to appear, write the following placeholders:

  • {{first_name}} 
  • {{last_name}} 

Use case

For example, you offer an e-book on your landing page. To receive this, however, the interested party must first fill out a form. As soon as they have done so, they are directed to the thank you page and addressed here with their name.

How does the system know the names?

Contacts are known, or even identified, if they are either in your Quentn contact list, or if they are created as users in your WordPress account.

Based on the information known about the contact, which is transferred with the link in the GET parameters, the placeholders are replaced with the first and last names.

This information is located

  • In plain text of the URL
  • In WordPress (if the contact is logged in)
  • In the Quentn link (in the URL, cookie or database).

But what if a stranger lands on your landing page?

Addressing unknown visitors

Unknown visitors are either contacts whose names you do not know (e.g. because you never asked for their name in a form), or they are strangers to you.

To prevent these unknown visitors from finding a gap in the text, you must use the placeholders to add an if/then/other function.

An example:

If a first name is found, then it will be inserted. Otherwise the word "Visitor" will appear. (Of course, you are completely free here and can write anything you like. Visitor, bargain hunter, stray, whatever you like).

This looks like this:

{{#first_name}}{{first_name}}{{/first_name}}{{^first_name}} Visitor {{/first_name}}

Perhaps rather that just copying and pasting the placeholders, you wish to understand the system? Advanced users will find an introduction to Mustache here.

Tip: Own placeholders

In addition to the name, you can also use any of your own placeholders. These must be attached to the link as URL parameters. For example, you can show the visitor a personal discount code on your website. The link to the website could be generated by your online store individually for each customer and sent by email. The link could then look like this: https://meine-webseite.de/spezialangebot?rabattcode=DJUE35256.

You can then use {{discount code}} as a placeholder on the website. From: "Your personal discount code is {{{discount code}}" to: "Your personal discount code is DJUE35256".

As soon as a match is found between a URL parameter (left of the equals sign) and a placeholder, it will be replaced.