> For the complete documentation index, see [llms.txt](https://fredhopper.gitbook.io/product-discovery/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fredhopper.gitbook.io/product-discovery/tracking-and-sending-events/common-tracking-scenarios.md).

# Common Tracking Scenarios

This page walks through three common shopper journeys and maps each user action to the tracking events you need to send. Use these scenarios as a practical reference when planning your implementation.

For each scenario you can find:

* The action the shopper takes
* The corresponding [FHR query response](/product-discovery/building-the-front-end-experience-with-fhr/understanding-the-fhr-query-response.md)
* The activity that needs to be tracked and send
* The activity object corresponding to the information provided in the FHR query response

{% hint style="warning" %}
The activity object examples provided below do *not* include the [user object](/product-discovery/tracking-and-sending-events/identities/user-object.md).
{% endhint %}

## Simple Navigation

<figure><img src="https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FSVE7gPh07y0ADfKCWkP7%2Fimage.png?alt=media&amp;token=7afb8abc-dced-4675-a7a1-02b9d01cfbeb" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}

### The shopper navigates to the category "Women's" > "Shoes".

<details>

<summary>Example <strong>FHR Query Response (Type: Lister)</strong></summary>

{% hint style="info" %}
The FHR query response might be simplified to improve readability. Information to be passed on in the activity object is annotated accordingly.
{% endhint %}

<pre class="language-json"><code class="lang-json">{
	"info": {
		"session": "unknown",
		"user-type": "unknown",
		"lang": "en",
		"country": "GB",
		"locale": {
			"value": "en_GB",
			"selected": false,
			"mlvalue": "en_GB"
		},
		"current-universe": "playground",
		"view": "lister",
		"mode": "user",
		"query": "//playground/en_GB/categories&#x3C;{playground_c548261}/categories&#x3C;{playground_c548261_c573336}",
		"path": "/fredhopper/query",
		"type": "lister",
		"query-string-httpencoded": "date=20260610T091415&#x26;fh_preview_page=true&#x26;fh_refpath=616cd0e5-c111-4aa0-8fb8-a603e7f7b1df&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;fh_reffacet=categories&#x26;fh_refview=lister",
		"ranges": {
			"query-ranges": {
				"range": [
					"/categories&#x3C;{playground_c548261}",
					"/categories&#x3C;{playground_c548261_c573336}"
				]
			},
			"implicit-ranges": {
				"range": []
			}
		},
		"url": "/fredhopper/query.fh?date=20260610T091415&#x26;fh_preview_page=true&#x26;fh_refpath=616cd0e5-c111-4aa0-8fb8-a603e7f7b1df&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;fh_reffacet=categories&#x26;fh_refview=lister",
		"source-xml": "/fredhopper/query?date=20260610T091415&#x26;fh_preview_page=true&#x26;fh_refpath=616cd0e5-c111-4aa0-8fb8-a603e7f7b1df&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;fh_reffacet=categories&#x26;fh_refview=lister",
		"server": {
			"encoding-detect-string": "ß",
			"host": "playground9-config-test1.fas.global.fredhopperservices.com",
			"port": 80,
			"context-root": "/fredhopper",
			"role": "staging",
			"config-dir": "/mnt/deployment-data/instances/indexer/config",
			"locales": {
				"locale": [...]
			},
			"default-universe": "playground"
		}
	},
	"universes": {
		"universe": [
			{
				"link": {...},
				"facetmap": [...],
				"breadcrumbs": {...},
				"items-section": {...},
				"themes": [...],
				"display-fields": {...},
				"attribute-types": {...},
				"name": "playground",
				"type": "selected"
			},
			{
				"link": {...},
				"facetmap": [],
				"themes": [],
				"name": "playgroundrelated",
				"type": "deselected"
			}
		]
	},
	"footer": {...},
	"qid": "65",
	<a data-footnote-ref href="#user-content-fn-1">"rid": "5e37a75e-e077-4c9f-b08c-a2b345d5cfa0"</a>
}
</code></pre>

</details>

{% hint style="success" icon="share-from-square" %}
**Track and send:** [View on navigation result](/product-discovery/tracking-and-sending-events/activities/view.md#views-on-navigation-results)
{% endhint %}

<details>

<summary>Example <strong>Activity Object</strong></summary>

```json
{
    "action":"view",
    "target": {
        "pathToPage": "path/to/page"
    },
    "sourceId":"5e37a75e-e077-4c9f-b08c-a2b345d5cfa0",
    "metadata": {
        "locale": "en_GB"
    }
}
```

</details>
{% endstep %}

{% step %}

### The shopper clicks on a product.

<details>

<summary>Example <strong>FHR Query Response (Type: Detail)</strong></summary>

{% hint style="info" %}
The FHR query response might be simplified to improve readability. Information to be passed on in the activity object is annotated accordingly.
{% endhint %}

<pre class="language-json"><code class="lang-json">{
	"info": {
		"session": "unknown",
		"user-type": "unknown",
		"lang": "en",
		"country": "GB",
		"locale": {
			"value": "en_GB",
			"selected": false,
			"mlvalue": "en_GB"
		},
		"current-universe": "playground",
		"view": "detail",
		"mode": "user",
		"query": "//playground/en_GB/categories&#x3C;{playground_c548261}/categories&#x3C;{playground_c548261_c573336}",
		"path": "/fredhopper/query",
		"type": "detail",
		"query-string-httpencoded": "date=20260610T095753&#x26;fh_preview_page=true&#x26;preview_advanced=true&#x26;fh_secondid=sr04169408_black&#x26;fh_location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;fh_modification=&#x26;fh_lister_pos=3&#x26;fh_refview=lister&#x26;fh_sort=-%24rc_trending_strategy",
		"ranges": {
			"query-ranges": {
				"range": [
					"/categories&#x3C;{playground_c548261}",
					"/categories&#x3C;{playground_c548261_c573336}"
				]
			},
			"implicit-ranges": {
				"range": []
			}
		},
		"url": "/fredhopper/query.fh?date=20260610T095753&#x26;fh_preview_page=true&#x26;preview_advanced=true&#x26;fh_secondid=sr04169408_black&#x26;fh_location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;fh_modification=&#x26;fh_lister_pos=3&#x26;fh_refview=lister&#x26;fh_sort=-%24rc_trending_strategy",
		"source-xml": "/fredhopper/query?date=20260610T095753&#x26;fh_preview_page=true&#x26;preview_advanced=true&#x26;fh_secondid=sr04169408_black&#x26;fh_location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;fh_modification=&#x26;fh_lister_pos=3&#x26;fh_refview=lister&#x26;fh_sort=-%24rc_trending_strategy",
		"server": {
			"encoding-detect-string": "ß",
			"host": "playground9-config-test1.fas.global.fredhopperservices.com",
			"port": 80,
			"context-root": "/fredhopper",
			"role": "staging",
			"config-dir": "/mnt/deployment-data/instances/indexer/config",
			"locales": {
				"locale": [...]
			},
			"default-universe": "playground"
		}
	},
	"universes": {
		"universe": [
			{
				"link": {...},
				"facetmap": [...],
				"breadcrumbs": {...},
				"items-section": {
					"items": {
						"item": [
							{
								"attribute": [
									{
										"value": [
											{
												<a data-footnote-ref href="#user-content-fn-2">"value": "sr04169408_black",</a>
												"non-ml": "sr04169408_black"
											}
										],
										"name": "secondid",
										"basetype": "text",
										"isnull": false,
										"selected": true,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "https://cp-cdn.fra1.cdn.digitaloceanspaces.com/one-crownpeak-demo/R04169408_BLACK_M.webp",
												"non-ml": "https://cp-cdn.fra1.cdn.digitaloceanspaces.com/one-crownpeak-demo/R04169408_BLACK_M.webp"
											}
										],
										"name": "_imageurl",
										"basetype": "text",
										"isnull": false,
										"selected": true,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "Black",
												"non-ml": "black"
											}
										],
										"name": "_familycolour",
										"basetype": "list",
										"isnull": false,
										"selected": false,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "Black",
												"non-ml": "black"
											}
										],
										"name": "colourgroupname",
										"basetype": "set",
										"isnull": false,
										"selected": false,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "BLACK",
												"non-ml": "black"
											}
										],
										"name": "colour",
										"basetype": "set",
										"isnull": false,
										"selected": false,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "$ 148.0",
												"non-ml": "148.0"
											}
										],
										"name": "ce_price_gbp",
										"basetype": "float",
										"isnull": false,
										"selected": true,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "Lyra pointed-toe leather ankle boots"
											}
										],
										"name": "ce_name",
										"basetype": "asset",
										"isnull": false,
										"selected": true,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "Since its beginnings in 1971 as a specialist shop on Bishopsgate selling men’s tailoring,   Reiss   has stayed true to its legacy and reputation for clean-cut design. Drawing on five decades of experience, the London label whips up collections of men’s, women’s and kid’s clothing and accessories; its in-house atelier designs pieces to transcend trends and cater to every eventuality, from weddings to work."
											}
										],
										"name": "ce_retailersays",
										"basetype": "asset",
										"isnull": false,
										"selected": true,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "\"     Reiss  leather ankle boots   100% leather   Exposed zip fastening at back   Pointed toe, stiletto heel, anti-slip toe tip, stitch detail, dust bag included   Heel height 3.7\"\"   Wipe with a clean, dry cloth   Upper: 100% leather   Lining: 100% leather   Sole: 100% leather  \""
											}
										],
										"name": "ce_productdetails",
										"basetype": "asset",
										"isnull": false,
										"selected": true,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "29",
												"non-ml": "29"
											}
										],
										"name": "units_sold",
										"basetype": "int",
										"isnull": false,
										"selected": true,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "7",
												"non-ml": "7"
											}
										],
										"name": "conversion_rate",
										"basetype": "int",
										"isnull": false,
										"selected": true,
										"best-matched": false
									},
									{
										"value": [
											{
												"value": "353",
												"non-ml": "353"
											}
										],
										"name": "spe_pageviews_uk",
										"basetype": "int",
										"isnull": false,
										"selected": true,
										"best-matched": false
									}
								],
								"link": [
									{
										"name": "Detail",
										"url-params": "fh_secondid=sr04169408_black&#x26;fh_location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;fh_modification=",
										"type": "detail"
									},
									{
										"name": "Lister",
										"url-params": "date=20260610T095753&#x26;preview_advanced=true&#x26;fh_sort=-%24rc_trending_strategy&#x26;fh_location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;fh_refview=detail",
										"type": "index"
									}
								],
								"nav-index": 4,
								"similar-item-fields": {
									"attribute": [
										{
											"value": [
												{
													"value": "sr04169408_black",
													"non-ml": "sr04169408_black"
												}
											],
											"name": "secondid",
											"basetype": "text",
											"isnull": false,
											"selected": true,
											"best-matched": false
										}
									],
									"location-param-prefix": "%2f%2fplayground%2fen_GB"
								},
								<a data-footnote-ref href="#user-content-fn-2">"id": "sr04169408_black"</a>
							}
						]
					}
				},
				"themes": [...],
				"display-fields": {...},
				"attribute-types": {...},
				"name": "playground",
				"type": "selected"
			},
			{
				"link": {...},
				"facetmap": [],
				"themes": [],
				"name": "playgroundrelated",
				"type": "deselected"
			}
		]
	},
	"footer": {
		"process-time": {...},
		"log-args": "id=unknown&#x26;proctime=0.062&#x26;view=detail&#x26;paths=616cd0e5-c111-4aa0-8fb8-a603e7f7b1df,7a93d9b6-82e2-4bc5-90b9-4dc118d424f1,644c7c6b-852a-48ee-ad99-7c968e6e8e02,42670ed8-2b2e-4dc2-87a0-5c8700bb654e,737ad689-6dc5-434d-9399-ddedbd511e53&#x26;facets=categories,brand_name,_familycolour,size,ce_price_gbp&#x26;items=sr04169408_black,s2123003262f3787e_020greyheather,s2182000531sp0215_black,s2182000531sp0215_softnude,s2182000531ss1815_softnude&#x26;themes=373d0f52-cbd9-441d-889d-e9c2468841a4|s2123003262f3787e_020greyheather|s2182000531sp0215_black|s2182000531sp0215_softnude|s2182000531ss1815_softnude&#x26;location=%2f%2fplayground%2fen_GB%2fcategories%3c%7bplayground_c548261%7d%2fcategories%3c%7bplayground_c548261_c573336%7d&#x26;searchpasses=&#x26;itemsinselection=4830&#x26;usertype=unknown&#x26;qid=69&#x26;triggers=date:20260610T095753&#x26;refview=lister&#x26;querystring=date%3D20260610T095753%26fh_preview_page%3Dtrue%26preview_advanced%3Dtrue%26fh_secondid%3Dsr04169408_black%26fh_modification%3D%26fh_lister_pos%3D3%26fh_sort%3D-%24rc_trending_strategy"
	},
	"qid": "69",
	<a data-footnote-ref href="#user-content-fn-1">"rid": "50c6bc33-771f-4a3e-a352-239a9bea2967"</a>
}
</code></pre>

</details>

{% hint style="success" icon="share-from-square" %}
**Track and send:** [Click on product](/product-discovery/tracking-and-sending-events/activities/click.md#click-on-a-product)
{% endhint %}

<details>

<summary>Example <strong>Activity Object (Click on product)</strong></summary>

```json
{
    "action":"click",
    "target": {
        "product": "sr04169408_black"
    },
    "sourceId":"50c6bc33-771f-4a3e-a352-239a9bea2967",
    "metadata": {}
}
```

</details>

{% hint style="success" icon="share-from-square" %}
**Track and send:** [View on product](/product-discovery/tracking-and-sending-events/activities/view.md#views-on-products-pdps-powered-by-fhr)
{% endhint %}

<details>

<summary>Example <strong>Activity Object (View on product)</strong></summary>

```json
{
    "action":"view",
    "target": {
        "product":"sr04169408_black"
    },
    "sourceId":"50c6bc33-771f-4a3e-a352-239a9bea2967",
    "metadata": {}
}
```

</details>
{% endstep %}
{% endstepper %}

## Simple Search

<figure><img src="https://3916646904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfLO8j00CcKdYax4GPUyE%2Fuploads%2FKVjzLXFQSEAwfn0g9nxx%2Fimage.png?alt=media&amp;token=3f84759d-67f2-4cdb-9232-57f0a741902b" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}

### The shopper searches for the word "sneakers".

<details>

<summary>Example <strong>FHR Query Response (Type: Lister)</strong></summary>

{% hint style="info" %}
The FHR query response might be simplified to improve readability. Information to be passed on in the activity object is annotated accordingly.
{% endhint %}

<pre class="language-json"><code class="lang-json">{	"info": {
		"session": "unknown",
		"user-type": "unknown",
		"lang": "en",
		"country": "GB",
		"locale": {
<a data-footnote-ref href="#user-content-fn-3">			"value": "en_GB",</a>
			"selected": false,
			"mlvalue": "en_GB"
		},
		"current-universe": "playground",
		"view": "search",
		"mode": "user",
		"query": "//playground/en_GB/$s=sneakers",
		"path": "/fredhopper/query",
		"type": "search",
		"query-string-httpencoded": "date=20260609T141102&#x26;fh_preview_page=true&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search",
		"ranges": {...},
		"url": "/fredhopper/query.fh?date=20260609T141102&#x26;fh_preview_page=true&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search",
		"source-xml": "/fredhopper/query?date=20260609T141102&#x26;fh_preview_page=true&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search",
		"server": {...}
	},
	"searchterms": {
		"term": {
<a data-footnote-ref href="#user-content-fn-4">			"value": "sneakers",</a>
			"profile": ""
		}
	},
	"searchpass": "EXACT 2020",
	"universes": {
		"universe": [
			{
				"link": {...},
				"facetmap": [...],
				"breadcrumbs": {...},
				"items-section": {...},
				"themes": [...],
				"display-fields": {...},
				"attribute-types": {...},
				"name": "playground",
				"type": "selected"
			},
			{
				"link": {...},
				"facetmap": [],
				"themes": [],
				"name": "playgroundrelated",
				"type": "deselected"
			}
		]
	},
	"footer": {
		"process-time": {...},
		"log-args": "id=unknown&#x26;proctime=0.021&#x26;view=search&#x26;paths=616cd0e5-c111-4aa0-8fb8-a603e7f7b1df,7a93d9b6-82e2-4bc5-90b9-4dc118d424f1,644c7c6b-852a-48ee-ad99-7c968e6e8e02,42670ed8-2b2e-4dc2-87a0-5c8700bb654e,737ad689-6dc5-434d-9399-ddedbd511e53&#x26;facets=categories,brand_name,_familycolour,size,ce_price_gbp&#x26;items=sr04219948_none,sr04219947_none,sr04219953_black,sr04219951_offwhite,sr04219955_black,sr04219959_babypink,sr04219956_sail,sr04219950_black,sr04219957_babypink,sr04219958_sail,sr04219954_white,sr04219952_white,sr04210485_creamcomb&#x26;themes=&#x26;location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers&#x26;searchterms=sneakers&#x26;listerstartindex=0&#x26;listernrofitems=13&#x26;viewsize=13&#x26;sortby=-_match_rate,-%24rc_search_strategy&#x26;searchpasses=EXACT+2020:13&#x26;itemsinselection=13&#x26;usertype=unknown&#x26;qid=49&#x26;triggers=date:20260609T141102&#x26;refview=search&#x26;reffacet=_familycolour&#x26;refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;querystring=date%3D20260609T141102%26fh_preview_page%3Dtrue%26preview_advanced%3Dtrue"
	},
	"qid": "49",
	<a data-footnote-ref href="#user-content-fn-1">"rid": "204a90b4-ce97-45bf-b882-0436312a7e01"</a>
}
</code></pre>

</details>

{% hint style="success" icon="share-from-square" %}
**Track and send:** [View on search result](/product-discovery/resources/archived-pages/the-tracking-api-and-js-library/what-to-track/generic-actions/view.md#views-on-search-results)
{% endhint %}

<details>

<summary>Example <strong>Activity Object</strong></summary>

```json
{
    "action":"view",
    "target": {
        "pathToPage": ""
    },
    "sourceId":"204a90b4-ce97-45bf-b882-0436312a7e01",
    "metadata": {
        "query": "sneakers",
        "locale": "en_GB"
    }
}
```

</details>
{% endstep %}

{% step %}

### The shopper uses the "Color" facet with the value "Black".

<details>

<summary>Example <strong>FHR Query Response (Type: Search)</strong></summary>

{% hint style="info" %}
The FHR query response might be simplified to improve readability. Information to be passed on in the activity object is annotated accordingly.
{% endhint %}

<pre class="language-json"><code class="lang-json">{
	"info": {
		"session": "unknown",
		"user-type": "unknown",
		"lang": "en",
		"country": "GB",
		"locale": {
			"value": "en_GB",
			"selected": false,
			"mlvalue": "en_GB"
		},
		"current-universe": "playground",
		"view": "search",
		"mode": "user",
		"query": "//playground/en_GB/$s=sneakers/_familycolour>{black}",
		"path": "/fredhopper/query",
		"type": "search",
		"query-string-httpencoded": "date=20260609T145248&#x26;fh_preview_page=true&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bblack%7d&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search",
		"ranges": {
			"query-ranges": {
				"range": [
					"/_familycolour>{black}"
				]
			},
			"implicit-ranges": {
				"range": []
			}
		},
		"url": "/fredhopper/query.fh?date=20260609T145248&#x26;fh_preview_page=true&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bblack%7d&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search",
		"source-xml": "/fredhopper/query?date=20260609T145248&#x26;fh_preview_page=true&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bblack%7d&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search",
		"server": {
			"encoding-detect-string": "ß",
			"host": "playground9-config-test1.fas.global.fredhopperservices.com",
			"port": 80,
			"context-root": "/fredhopper",
			"role": "staging",
			"config-dir": "/mnt/deployment-data/instances/indexer/config",
			"locales": {
				"locale": [ ...]
			},
			"default-universe": "playground"
		}
	},
	"searchterms": {
		"term": {
			"value": "sneakers",
			"profile": ""
		}
	},
	"searchpass": "EXACT 2020",
	"universes": {
		"universe": [
			{
				"link": {...},
				"facetmap": [
					{
						"filter": [...],
						"universe": "search"
					},
					{
						"filter": [
							{
								"title": "Colour",
								"filtersection": [
									{
										"link": {
											"name": "Black",
											"url-params": "date=20260609T145248&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers"
										},
										"value": {
											<a data-footnote-ref href="#user-content-fn-5">"value": "black"</a>
										},
										"nr": 3,
										"selected": true
									},
									{
										"link": {
											"name": "White",
											"url-params": "date=20260609T145248&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bwhite%3bblack%7d"
										},
										"value": {
											"value": "white"
										},
										"nr": 3
									}
								],
								"url-params-base": "date=20260609T145248&#x26;fh_refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;preview_advanced=true&#x26;fh_reffacet=_familycolour&#x26;fh_refview=search&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers",
								"on": "_familycolour",
								<a data-footnote-ref href="#user-content-fn-6">"facetid": "644c7c6b-852a-48ee-ad99-7c968e6e8e02",</a>
								"basetype": "list",
								"show-number-values": 5,
								"selected": true,
								"display-hint": [
									"multiselect-or"
								]
							}
						],
						"universe": "playground"
					}
				],
				"breadcrumbs": {...},
				"items-section": {...},
				"themes": [...],
				"display-fields": {...},
				"attribute-types": {...},
				"name": "playground",
				"type": "selected"
			},
			{
				"link": {...},
				"facetmap": [],
				"themes": [],
				"name": "playgroundrelated",
				"type": "deselected"
			}
		]
	},
	"footer": {
		"process-time": {...},
		"log-args": "id=unknown&#x26;proctime=0.017&#x26;view=search&#x26;paths=616cd0e5-c111-4aa0-8fb8-a603e7f7b1df,7a93d9b6-82e2-4bc5-90b9-4dc118d424f1,644c7c6b-852a-48ee-ad99-7c968e6e8e02,737ad689-6dc5-434d-9399-ddedbd511e53&#x26;facets=categories,brand_name,_familycolour,ce_price_gbp&#x26;items=sr04219953_black,sr04219955_black,sr04219950_black&#x26;themes=&#x26;location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bblack%7d&#x26;searchterms=sneakers&#x26;listerstartindex=0&#x26;listernrofitems=3&#x26;viewsize=3&#x26;sortby=-_match_rate,-%24rc_search_strategy&#x26;searchpasses=EXACT+2020:3&#x26;itemsinselection=3&#x26;usertype=unknown&#x26;qid=53&#x26;triggers=date:20260609T145248&#x26;refview=search&#x26;reffacet=_familycolour&#x26;refpath=644c7c6b-852a-48ee-ad99-7c968e6e8e02&#x26;querystring=date%3D20260609T145248%26fh_preview_page%3Dtrue%26preview_advanced%3Dtrue"
	},
	"qid": "53",
<a data-footnote-ref href="#user-content-fn-1">	"rid": "2282acd0-6b34-40ad-8ecf-10638a91bb28"</a>
}
</code></pre>

</details>

{% hint style="success" icon="share-from-square" %}
**Track and send:** [Click on facet](/product-discovery/tracking-and-sending-events/activities/click.md#click-on-a-facet)
{% endhint %}

<details>

<summary>Example <strong>Activity Object</strong></summary>

```json
{
    "action": "click",
    "target": {
        "facet": "644c7c6b-852a-48ee-ad99-7c968e6e8e02",
        "644c7c6b-852a-48ee-ad99-7c968e6e8e02": "facet-value"
    },
    "sourceId": "2282acd0-6b34-40ad-8ecf-10638a91bb28",
    "metadata": {}
}
```

</details>
{% endstep %}

{% step %}

### The shopper clicks on a product.

<details>

<summary>Example <strong>FHR Query Response (Type: Detail)</strong></summary>

{% hint style="info" %}
The FHR query response might be simplified to improve readability. Information to be passed on in the activity object is annotated accordingly.
{% endhint %}

<pre class="language-json"><code class="lang-json">{
	"info": {
		"session": "unknown",
		"user-type": "unknown",
		"lang": "en",
		"country": "GB",
		"locale": {
			"value": "en_GB",
			"selected": false,
			"mlvalue": "en_GB"
		},
		"current-universe": "playground",
		"view": "detail",
		"mode": "user",
		"query": "//playground/en_GB/$s=sneakers/_familycolour>{black}",
		"path": "/fredhopper/query",
		"type": "detail",
		"query-string-httpencoded": "date=20260609T150249&#x26;fh_preview_page=true&#x26;preview_advanced=true&#x26;fh_secondid=sr04219953_black&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bblack%7d&#x26;fh_modification=&#x26;fh_lister_pos=1&#x26;fh_refview=search&#x26;fh_sort=-_match_rate%2c-%24rc_search_strategy",
		"ranges": {
			"query-ranges": {...}
		},
		"url": "/fredhopper/query.fh?date=20260609T150249&#x26;fh_preview_page=true&#x26;preview_advanced=true&#x26;fh_secondid=sr04219953_black&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bblack%7d&#x26;fh_modification=&#x26;fh_lister_pos=1&#x26;fh_refview=search&#x26;fh_sort=-_match_rate%2c-%24rc_search_strategy",
		"source-xml": "/fredhopper/query?date=20260609T150249&#x26;fh_preview_page=true&#x26;preview_advanced=true&#x26;fh_secondid=sr04219953_black&#x26;fh_location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bblack%7d&#x26;fh_modification=&#x26;fh_lister_pos=1&#x26;fh_refview=search&#x26;fh_sort=-_match_rate%2c-%24rc_search_strategy",
		"server": {
			"encoding-detect-string": "ß",
			"host": "playground9-config-test1.fas.global.fredhopperservices.com",
			"port": 80,
			"context-root": "/fredhopper",
			"role": "staging",
			"config-dir": "/mnt/deployment-data/instances/indexer/config",
			"locales": {
				"locale": [...]
			},
			"default-universe": "playground"
		}
	},
	"universes": {
		"universe": [
			{
				"link": {...},
				"facetmap": [...],
				"breadcrumbs": {...},
				"items-section": {
					"items": {
						"item": [
							{
								"attribute": [
									{
										"value": [
											{
												<a data-footnote-ref href="#user-content-fn-2">"value": "sr04219953_black",</a>
												"non-ml": "sr04219953_black"
											}
										],
										"name": "secondid",
										"basetype": "text",
										"isnull": false,
										"selected": true,
										"best-matched": false
									}
								],
								"link": [...],
								"nav-index": 2,
								"similar-item-fields": {...},
			<a data-footnote-ref href="#user-content-fn-2">					"id": "sr04219953_black"</a>
							}
						]
					}
				},
				"themes": [...],
				"display-fields": {...},
				"attribute-types": {...},
				"name": "playground",
				"type": "selected"
			},
			{
				"link": {...},
				"facetmap": [],
				"themes": [],
				"name": "playgroundrelated",
				"type": "deselected"
			}
		]
	},
	"footer": {
		"process-time": {...},
		"log-args": "id=unknown&#x26;proctime=0.032&#x26;view=detail&#x26;paths=616cd0e5-c111-4aa0-8fb8-a603e7f7b1df,7a93d9b6-82e2-4bc5-90b9-4dc118d424f1,644c7c6b-852a-48ee-ad99-7c968e6e8e02,737ad689-6dc5-434d-9399-ddedbd511e53&#x26;facets=categories,brand_name,_familycolour,ce_price_gbp&#x26;items=sr04219953_black,s690100040198510979_white,s690100040810530919_brown,s690100040811131209_darkbrown,s690100041774284109_navy&#x26;themes=373d0f52-cbd9-441d-889d-e9c2468841a4|s690100040198510979_white|s690100040810530919_brown|s690100040811131209_darkbrown|s690100041774284109_navy&#x26;location=%2f%2fplayground%2fen_GB%2f%24s%3dsneakers%2f_familycolour%3e%7bblack%7d&#x26;searchterms=sneakers&#x26;searchpasses=&#x26;itemsinselection=3&#x26;usertype=unknown&#x26;qid=57&#x26;triggers=date:20260609T150249&#x26;refview=search&#x26;querystring=date%3D20260609T150249%26fh_preview_page%3Dtrue%26preview_advanced%3Dtrue%26fh_secondid%3Dsr04219953_black%26fh_modification%3D%26fh_lister_pos%3D1%26fh_sort%3D-_match_rate%2C-%24rc_search_strategy"
	},
	"qid": "57",
	<a data-footnote-ref href="#user-content-fn-1">"rid": "53852476-7cd9-4a14-ae47-944ef22b3d55"</a>
}
</code></pre>

</details>

{% hint style="success" icon="share-from-square" %}
**Track and send:** [Click on product](/product-discovery/tracking-and-sending-events/activities/click.md#click-on-a-product)
{% endhint %}

<details>

<summary>Example <strong>Activity Object (Click on product)</strong></summary>

```json
{
    "action":"click",
    "target": {
        "product": "sr04219953_black"
    },
    "sourceId":"53852476-7cd9-4a14-ae47-944ef22b3d55",
    "metadata": {}
}
```

</details>

{% hint style="success" icon="share-from-square" %}
**Track and send:** [View on product](/product-discovery/tracking-and-sending-events/activities/view.md#views-on-products-pdps-powered-by-fhr)
{% endhint %}

<details>

<summary>Example <strong>Activity Object (View on product)</strong></summary>

```json
{
    "action":"view",
    "target": {
        "product":"sr04219953_black"
    },
    "sourceId":"53852476-7cd9-4a14-ae47-944ef22b3d55",
    "metadata": {}
}
```

</details>
{% endstep %}

{% step %}

### The shopper adds the product to the cart.

{% hint style="success" icon="share-from-square" %}
**Track and send:** [Add to cart](/product-discovery/tracking-and-sending-events/activities/add-to-cart.md)
{% endhint %}

<details>

<summary>Example <strong>Activity Object</strong></summary>

```json
{
    "action":"add-to-cart",
    "target": {
        "product":"sr04219953_black"
    },
    "sourceId": "53852476-7cd9-4a14-ae47-944ef22b3d55",
    "metadata": {
        "quantity": 1,
        "query": "sneakers"
    }
}
```

</details>
{% endstep %}
{% endstepper %}

[^1]: sourceId

[^2]: target.product

[^3]: metdata.locale

[^4]: metadata.query

[^5]: target.facet-id

[^6]: target.facet
