Skip to main content Skip to navigation

Use visitors' names

You can greet a person by name when they visit your page, provided that they're signed in to warwick.ac.uk.

Use a visitor's name in the Components Editor

  1. Go to the page you want to personalise.

  2. Go to Edit > Edit centre content:

    The SiteBuilder 'Edit' menu, with the 'Edit centre content' option highlighted

  3. Go to Dynamic > Name of user:

    The 'Add special features' menu in the Components Editor, with the 'Name of user' option highlighted

  4. The Name of user pop-up appears:

    The 'Name of user' pop-up

  5. Use the Name variant drop-down list to select whether to use the visitor's First name, Last name, or Full name.

  6. Select Add name of user.

  7. A placeholder for the visitor's name appears on the page:

    A text placeholder for a visitor's first name

    When published, this appears as:

    Hello !

  8. When you're finished editing your page, select Publish.

Use a visitor's name in the old visual editor

  1. Go to the page where you want to add the greeting.
  2. Go to Edit > Edit centre content or Edit right content.
  3. Place your cursor in the visual editor where you want to add the name.
  4. In the toolbar, select Insert a > Name of logged in user.
  5. Select one of the three options in the Name of logged in user window: First name, Last name or Full name.
  6. Depending on which option you chose in the previous step, one of the following lines is added to the visual editor:

    [if-anon invert=true]Hello, [firstname][/if-anon]
    [if-anon invert=true]Hello, [lastname][/if-anon]
    [if-anon invert=true]Hello, [name][/if-anon]
  7. To change the greeting, edit the text between the [if-anon] tags – for example:

    [if-anon invert=true]Hi [firstname][/if-anon]
    [if-anon invert=true]Dear [name][/if-anon]
  8. When you have finished editing the page, select Publish. You should see your name displayed on the page where you added the personalisation tag.

Related articles

Let us know you agree to cookies