Setting up the internal search engine
Internal search engine tracking collects the searches visitors make on the site.
In particular, it lets you analyse:
- the search engine used;
- the search parameters the visitor entered;
- the values associated with those parameters;
- the number of results returned;
- the sales associated with searches, when an order is placed after a search.
Prerequisites
A search engine tag must be implemented on the pages concerned.
The tag must pass:
| Parameter | Description |
|---|---|
isearchengine | Name of the internal search engine. |
isearchresults | Number of results returned for the search. |
isearchkey | Name of the search parameter. |
isearchdata | Value associated with the search parameter. |
The isearchkey and isearchdata parameters work in pairs: each search key must be followed by its value.
Tag format
var EA_data = [
"isearchengine",
"NOM_DU_MOTEUR_DE_RECHERCHE_INTERNE",
"isearchresults",
"NOMBRE_DE_RESULTATS_DE_LA_RECHERCHE",
"isearchkey",
"NOM_DU_PARAMETRE_1",
"isearchdata",
"VALEUR_DU_PARAMETRE_1",
"isearchkey",
"NOM_DU_PARAMETRE_2",
"isearchdata",
"VALEUR_DU_PARAMETRE_2",
"isearchkey",
"NOM_DU_PARAMETRE_3",
"isearchdata",
"VALEUR_DU_PARAMETRE_3",
];
Example
var EA_data = [
"isearchengine",
"moteur_interne",
"isearchresults",
"25",
"isearchkey",
"mot-cle",
"isearchdata",
"chaussures",
"isearchkey",
"marque",
"isearchdata",
"abc",
"isearchkey",
"taille",
"isearchdata",
"M",
];
In this example:
| Search parameter | Value collected |
|---|---|
mot-cle | chaussures |
marque | abc |
taille | M |
Declaring an internal search engine
The data passed by the tag is not available in the interface until the search engine has been declared.
The engine is declared from the Internal search engine page.
Where to go: Settings > Analytics > Internal search engine list
To declare the engine:
- Click Add an internal search engine.
- Enter the engine’s name.
- Use the same value as the one passed in the
isearchengineparameter. - Click Add.
Example:
moteur_interne
This value must match the value passed in the tag:
"isearchengine", "moteur_interne"
Declaring the search parameters
Each value passed in an isearchkey parameter must be declared as a search parameter.
In the example above, the parameters to declare are mot-cle, marque and taille.
To declare a parameter:
- Open the internal search engine concerned.
- Click Add a search parameter.
- Enter the parameter’s name.
- Configure how values are handled.
- Add a description if needed.
- Save.
Settings to fill in
| Setting | Description |
|---|---|
| Name | Name of the search parameter. It must match a value passed in isearchkey. |
| Finite number of entries | Defines whether the number of possible values for this parameter is limited. |
| Description | Optional description of the parameter, for information. |
Finite number of entries
| Value | How it works |
|---|---|
| Yes | The number of possible values is limited to the values already reported. Only the values collected so far are accepted. |
| No | The number of possible values is unlimited. This option is recommended. |
Once a parameter has been declared, its values come through with each new search interaction.
Reporting
Once the tag is implemented and the engine declared, the following datamining report is fed:
internal_search_engine_queries
This report lets you analyse interactions with the internal search engine.
Points to watch
- The search engine must be declared in the interface for the data reported to be usable.
- The declared name must match the value passed in
isearchengine. - Each value of
isearchkeymust be declared as a search parameter. - The
isearchkeyandisearchdataparameters must be sent in pairs. - The Finite number of entries = No option is recommended when the possible values are numerous or change over time.
- The number of results a search returns can help identify searches with no results or gaps in the range on offer.
- Do not let the keyword entered become a page name: force a single name for search pages, as described in Site tree.