Using Demographics to your advantage


    Step 1 – The demographic set up

    The very first step is ensuring you have the demographic set up with the appropriate data.

    In the example below we have a question for the type of pet someone could have.

    1. It is compulsory you have the reference filled in as this will be what you’ll use when you create your dynamic URL. In this instance it’s pettype.
    2. Type of Pet is the “user facing” term

    3. The question format can be free form, but this example will show using a “multiple choice, multiple answer” option. The Placeholder function must be selected (this is to allow for use in emails), and the field below needs to be filled out with the default option “pet”.

    4. “dog” and “cat” are the options available for the type of pet someone could have

    So in this scenario, if someone owns a dog or a cat, it would be associated with their profile and could be used in emails (EG Important information about your dog).

    If someone doesn’t have any pet associated with their profile (perhaps they own a dinosaur), it would display in emails (EG Important information about your pet). 

    Step 2 – The images

    You want to have images pre-selected and named according to the data you have associated with the question. Best practice is to have them the same width and height. examples below.


    the pet.gif will display if someone has the value of “pet” in the “pettype” demographic and so on.

    Step 3 – Implementing the URL

    So now you’ve uploaded your images, and you’re ready to send. What you’ll need for this to work is a little piece of code now available in gCast.

    To do this

    1. Create/edit and existing campaign/template and choose the Personalised Field drop down menu

    2. Select pettype (pet) from under the Answers area in that menu (it’s showing the reference “pettype” and the default value “pet”)

    3. You’ll then see {~pettype~} displayed. this is the dynamic code you will need.


    Say your image URLs are


    You will create an image url of


    So when inserting this as an image your code should look something like

    <img src="{~pettype~}.gif" alt="" />

    You can also just insert the URL via the “Add Image” button in the editor

    Ultimately in the editor the image will look broken…

    but this is because there’s no such URLs{~pettype~}.gif.

    When the email is sent, it will automatically generate the correct URL. For example when you send the test email, it should show the default image of “Pet”.


    If you want to test this out, try replicating the steps above and send an email out to yourself with all options checked.


    Was this article helpful?
    0 out of 0 found this helpful