Skip to content

Commit b5cbba5

Browse files
authored
fix: add back missing Hydrogen version in URLs (#3339)
1 parent 24664db commit b5cbba5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/hydrogen/src/analytics-manager/AnalyticsProvider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export type AnalyticsProviderProps = {
7676
canTrack?: () => boolean;
7777
/** An optional custom payload to pass to all events. e.g language/locale/currency. */
7878
customData?: Record<string, unknown>;
79-
/** The shop configuration required to publish analytics events to Shopify. Use [`getShopAnalytics`](/docs/api/hydrogen/utilities/getshopanalytics). */
79+
/** The shop configuration required to publish analytics events to Shopify. Use [`getShopAnalytics`](/docs/api/hydrogen/2025-04/utilities/getshopanalytics). */
8080
shop: Promise<ShopAnalytics | null> | ShopAnalytics | null;
8181
/** The customer privacy consent configuration and options. */
8282
consent: Consent;
@@ -436,7 +436,7 @@ function useShopAnalytics(shopProp: AnalyticsProviderProps['shop']): {
436436

437437
type ShopAnalyticsProps = {
438438
/**
439-
* The storefront client instance created by [`createStorefrontClient`](docs/api/hydrogen/utilities/createstorefrontclient).
439+
* The storefront client instance created by [`createStorefrontClient`](docs/api/hydrogen/2025-04/utilities/createstorefrontclient).
440440
*/
441441
storefront: Storefront;
442442
/**
@@ -506,7 +506,7 @@ export type AnalyticsContextValueForDoc<UserCart> = {
506506
prevCart?: UserCart | DefaultCart;
507507
/** A function to publish an analytics event. */
508508
publish?: AnalyticsContextPublishForDoc;
509-
/** A function to register with the analytics provider. It holds the first browser load events until all registered key has executed the supplied `ready` function. [See example register usage](/docs/api/hydrogen/hooks/useanalytics#example-useanalytics.register). */
509+
/** A function to register with the analytics provider. It holds the first browser load events until all registered key has executed the supplied `ready` function. [See example register usage](/docs/api/hydrogen/2025-04/hooks/useanalytics#example-useanalytics.register). */
510510
register?: (key: string) => {ready: () => void};
511511
/** The shop configuration required to publish events to Shopify. */
512512
shop?: Promise<ShopAnalytics | null> | ShopAnalytics | null;

0 commit comments

Comments
 (0)