Skip to main content

getClientBrowserParameters

Gathers client browser values commonly used for analytics

Anchor to getClientBrowserParameters
getClientBrowserParameters()

If executed on server, this method will return empty string for each field.

Examples
import * as React from 'react';
import {useEffect} from 'react';
import {getClientBrowserParameters} from '@shopify/hydrogen-react';

export default function App({Component, pageProps}) {
useEffect(() => {
getClientBrowserParameters();
});

return <Component {...pageProps} />;
}


Was this page helpful?