Next.js | App router
Environment Variables
NEXT_PUBLIC_INTELLIGEMS_ORG_ID=<Intelligems-ID>
NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN=<Storefront-API-Token>Provider Integration
Integration Example
"use client";
import { IntelligemsNextClientsideAppDirectoryProvider } from "@intelligems/headless/next-clientside-app-directory";
export function IntelligemsProvider({
children,
}: {
children: React.ReactNode;
}) {
return (
<IntelligemsNextClientsideAppDirectoryProvider
organizationId={process.env.NEXT_PUBLIC_INTELLIGEMS_ORG_ID}
storefrontApiToken={
process.env.NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN
}
activeCurrencyCode="USD" // Must be provided
antiFlicker={true}
>
{children}
</IntelligemsNextClientsideAppDirectoryProvider>
);
}Page Views Tracking
Last updated