Headless Docs
Latest (1.2.3)
Latest (1.2.3)
  • Overview
  • Change Log
  • General Steps
    • Update Prices on Page
    • Update ATC Events
      • Shopify Functions
      • Shopify Plus + Scripts
    • Preview Your Site
    • Lite Mode
  • Next.js Steps
    • Requirements
    • Add Intelligems Provider
    • Track Page Views
    • Update Prices on Page
    • Update ATC Events
    • Preview Your Site
  • Next.js - App Directory Configuraiton
    • Requirements
    • Add Intelligems Provider
    • Track Page Views
    • Update Prices on Page
    • Update ATC Events
    • Preview Your Site
  • Gatsby Steps
    • Requirements
    • Add Intelligems Provider
    • Track Page Views
    • Update Prices on Page
    • Update ATC Events
    • Preview Your Site
  • Pack Digital Steps
    • Requirements
    • Add Intelligems Provider
    • Track Page Views
    • Update Prices on Page
    • Update ATC Events
    • Preview Your Site
  • Shopify Hydrogen / Remix
    • Requirements
    • Update loader()
    • Add Intelligems Provider
    • Track Page Views
    • Update Prices on Page
    • Update ATC Events
    • Preview Your Site
  • Examples
    • Custom Events
    • Content Testing
    • Gift With Purchases
  • Reference
    • Providers
      • Provider Props
    • Components
      • Price Components
    • Hooks
      • Price Hooks
      • Offer Hooks
      • Track Hooks
      • Experience Hooks
      • Variation Hooks
      • Cart & Checkout Hooks
Powered by GitBook
On this page
  • Required SSR Tag:
  • Required Environment Variables
  1. Gatsby Steps

Requirements

PreviousPreview Your SiteNextAdd Intelligems Provider

Last updated 7 months ago

Required SSR Tag:

This tag is extremely important as it allows Intelligems to track package versions to ensure compatibility with new features.

const intelligems = require("@intelligems/headless/gatsby");

exports.onRenderBody = ({ setHtmlAttributes, setBodyAttributes }) => {
  setBodyAttributes(intelligems.IntelligemsVersionAttribute);
};

Required Environment Variables

Intelligems Organization Id

Visit . Your organization ID is located under the settings page.

GATSBY_INTELLIGEMS_ORG_ID=<Intelligems-Organization-Id>
GATSBY_SHOPIFY_STORE_DOMAIN=<your-store-name>.myshopify.com
GATSBY_STOREFRONT_ACCESS_TOKEN=<Storefront-API-Token>
app.intelligems.io