Leads

Leads are small “ads” that are displayed on the result page. They can be used to promote your own products or services, or to promote other products or services that you are affiliated with.

Leads are usually displayed in a list, but there is also a special type of lead called “highlighted” that is displayed separately.

const configurationOverrides = {
  ...
  leads: {
      highlighted: {...},
      regular: [{...}]
  },
  ...
}

Highlighted lead

The highlighted lead is displayed separately from the list of regular leads, in a “highlighted” fashion.

leads: {
    ...
    highlighted: {
        heading: "Example heading text",
        description: "Example description text",
        buttons: {
            first: {
                text: "Click me!",
                onClick: () => window.open("https://econans.com", "_blank"),
            },
            second: {
                text: "Click me too!",
                onClick: () => window.open("https://econans.com", "_blank"),
            },
        },
    },
    ...
}

Example configuration of a highlighted lead

Note that parts of a highlighted lead might be pre-configured by Econans and you can then just pass in any parameters you want to change.

leads: {
    ...
    highlighted: {
        buttons: {
            first: {
                text: "Only change this text",
            },
        },
    },
    ...
}

Example of a change to a pre-configured lead

Regular leads

Regular leads are displayed in a list at the bottom of the result page. Any provided regular leads will be used in conjunction with any pre configured ones.

leads: {
  regular: [
    {
      heading: "Example heading text",
      description: "Example description text",
      buttons: {
        first: {
          text: "Click me!",
          onClick: () => window.open("https://econans.com", "_blank"),
        },
        second: {
          text: "Click me too!",
          onClick: () => window.open("https://econans.com", "_blank"),
        },
      },
    },
  ];
}

Configuration of a regular lead