# Cross-navigation enrichment
> Parse cross-navigation data from query string parameters to track user journeys across domains and platforms.
> Source: https://docs.snowplow.io/docs/pipeline/enrichments/available-enrichments/cross-navigation-enrichment/
> Documentation index: https://docs.snowplow.io/llms.txt

This enrichment parses the extended cross-navigation format in the `_sp` query string parameter, and attaches a `cross_navigation` entity to an event.

Check out the [cross-navigation](/docs/events/cross-navigation/) page to learn why this can be useful.

The extended cross-navigation format is `_sp={domainUserId}.{timestamp}.{sessionId}.{subjectUserId}.{sourceId}.{sourcePlatform}.{reason}`. The `domainUserId` and `timestamp` fields will always be present, but some of the other fields may be null or empty. They're configured within the tracker.

If this enrichment isn't enabled, Enrich parses the `_sp` query string parameter according to the short format, `_sp={domainUserId}.{timestamp}`

> **Note: Event fields always populated**
>
> The pipeline will always populate the `refr_domain_userid` and `refr_dvce_tstamp` enriched event fields from the cross-navigation query string, even if this enrichment isn't enabled.

## Configuration

This enrichment has no configurable parameters. Enable it in Console.

For Self-Hosted, [provide the following JSON](/docs/pipeline/enrichments/managing-enrichments/terraform/):

```json
{
  "schema": "iglu:com.snowplowanalytics.snowplow.enrichments/cross_navigation_config/jsonschema/1-0-0",
  "data": {
    "enabled": false,
    "vendor": "com.snowplowanalytics.snowplow.enrichments",
    "name": "cross_navigation_config"
  }
}
```

> **Tip: Testing with Micro**
>
> Unsure if your enrichment configuration is correct or works as expected? You can easily test it using [Snowplow Micro](/docs/testing/snowplow-micro/), either [through Console](/docs/testing/snowplow-micro/console/) or [on your machine](/docs/testing/snowplow-micro/local/).

## Input

This enrichment extracts the `_sp` query string parameter from the `page_url` field from the Snowplow event.

## Output

Enrich always populates the `refr_domain_userid` and `refr_dvce_tstamp` event fields when possible, regardless of whether the cross-navigation enrichment is enabled.

The enrichment adds a `cross_navigation` entity to the enriched event.

### `cross_navigation`

**Type:** Entity

Schema for a user and session identifiers entity included in cross platform or cross domain navigation.

**Properties:**

| Property                  | Description                                                                                                                                               |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `user_id` _null_          | _Optional._ The business user ID, the user was identified in the source app.                                                                              |
| `domain_user_id` _string_ | _Required._ Domain user ID of the source app from which a link was followed. The corresponding atomic property is named refr\_domain\_userid.             |
| `session_id` _null_       | _Optional._ Session ID of the source app from which a link was followed.                                                                                  |
| `timestamp` _string_      | _Required._ Timestamp of the link click in the source app which triggered this navigation. The corresponding atomic property is named refr\_dvce\_tstamp. |
| `source_id` _null_        | _Optional._ ID of the source app where the link that started this navigation originated from.                                                             |
| `source_platform` _null_  | _Optional._ Platform of the source app (e.g., mob, web, tv). Must be one of: `web`, `mob`, `pc`, `srv`, `app`, `tv`, `cnsl`, `iot`, `headset`,``          |
| `reason` _null_           | _Optional._ Cross navigation linking information/identifier.                                                                                              |
