Can we have two links verticals on one Answers Experience?

If a client has multiple websites could we set up two GCSE links verticals for them within one Answers build?

They would prefer for the different sites to have their own links verticals.

Hi Carolyn,

You can set up two GCSE links verticals for a single Answers Experience. You would need to treat them as separate verticals with their own backend and front-end configurations.

The reason for this is that you would need to set up two CS IDs (”Search Engine IDs” from the Google Custom Search portal) based on the websites you want to surface results from. You should be able to use the same apiKey since it is one account.

Examples of what the backends for each vertical may look like:

{
  "verticals": {
    "links_edu": { //Update to the vertical configuration ID you want to use
        "name": "Links1", //Links vertical display name in experience
        "siteRestricted": true,
        "useSynonyms": "ALL_SYNONYMS", //Optional parameter
        "source": "GOOGLE_CSE",
        "apiKey": "{{API_KEY}}",
        "cx": "{{CX_1}}" //cx for .edu website 
    },
    "links_org": { //Update to the vertical configuration ID you want to use
        "name": "Links2", //Links vertical display name in experience
        "siteRestricted": true, 
        "useSynonyms": "ALL_SYNONYMS",
        "source": "GOOGLE_CSE",
        "apiKey": "{{API_KEY}}",
        "cx": "{{CX_2}}" //cx for .org website
    }
  }
}

This unit is also a good resource for setting these verticals up in your experience.