# Suggest Tracking

Tracking can also be added to the FactFinder **Suggest module** to enable analysis of user behavior and corresponding optimization measures.

Usually the tracking is already contained within the example script you can receive from FactFinder or from the [GitHub-Account](https://github.com/fact-finder). In case you are planning on an independent integration of Suggest, you should integrate the corresponding tracking parameters by yourself. In both cases we recommend checking the parameter transmission after you completed the integration of Suggest.

**Suggest Tracking** works by delivering parameters on the following FactFinder query. These parameters indicate if the search query was triggered through a suggestion and provide information on which order letters were entered until selection.

## Parameter

***

> **queryFromSuggest**

This parameter indicates that the FactFinder query was triggered through a selection from the suggestion list. In this case send the parameter with the value `true`.

***

> **userInput**

Please use this parameter to send the order of letters the shop user entered until the search query was triggered.

***

> **sid**

This parameter is required for using the **A/B Test module**. If no SessionID (`sid`) is passed to FactFinder, the search is always based on the A variant, since the SessionID is used to decide which variant of the A/B test should be run.

## Example

### REST-Interface

Let’s assume the shop user entered the letters `ri` into the search box and chose the entry `Ring` from the list of suggestions, triggering a search for *Ring*.\
The FactFinder search-URL, complemented by the URL-parameters for Suggest Tracking would look as follows:

```language-plaintext
rest/{apiversion}/search/{channel}?query=Ring&...&queryFromSuggest=true&userInput=ri
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fact-finder.com/integration/tracking-interface/suggest-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
