---
title: getClientBrowserParameters
description: Gathers client browser values commonly used for analytics
api_version: 2026-04
api_name: hydrogen
source_url:
html: >-
https://shopify.dev/docs/api/hydrogen/latest/utilities/getclientbrowserparameters
md: >-
https://shopify.dev/docs/api/hydrogen/latest/utilities/getclientbrowserparameters.md
---
# getClientBrowserParameters
Gathers client browser values commonly used for analytics
## getClientBrowserParameters()
If executed on server, this method will return empty string for each field.
### Returns
* **ClientBrowserParameters**
### ClientBrowserParameters
* navigationApi
Navigation api: \`'PerformanceNavigationTiming' | 'performance.navigation'\`. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* navigationType
Navigation type: \`'navigate' | 'reload' | 'back\_forward' | 'prerender' | 'unknown'\`. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* path
Value of \`window\.location.pathname\`. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* referrer
Value of \`window\.document.referrer\`. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* search
Value of \`window\.location.search\`. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* title
Value of \`document.title\`. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* uniqueToken
Shopify unique user token: Value of \`\_shopify\_y\` cookie. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* url
Value of \`window\.location.href\`. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* userAgent
Value of \`navigator.userAgent\`. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
* visitToken
Shopify session token: Value of \`\_shopify\_s\` cookie. Use \`getClientBrowserParameters()\` to collect this value.
```ts
string
```
Examples
### Examples
* #### Example code
##### JavaScript
```jsx
import * as React from 'react';
import {useEffect} from 'react';
import {getClientBrowserParameters} from '@shopify/hydrogen';
export default function App({Component, pageProps}) {
useEffect(() => {
getClientBrowserParameters();
});
return ;
}
```
##### TypeScript
```tsx
import * as React from 'react';
import {useEffect} from 'react';
import {getClientBrowserParameters} from '@shopify/hydrogen';
export default function App({Component, pageProps}) {
useEffect(() => {
getClientBrowserParameters();
});
return ;
}
```
***
## Related
[- sendShopifyAnalytics](https://shopify.dev/docs/api/hydrogen/2026-04/utilities/sendshopifyanalytics)
[- useShopifyCookies](https://shopify.dev/docs/api/hydrogen/2026-04/hooks/useshopifycookies)
***