Skip to main content

Package Installation

CDN Installation

For quick prototyping or non-bundled projects, use the CDN:
The SDK will be available globally as window.Gately.

CDN Options

Get your API key from Settings → API Keys in your Gately dashboard.

Framework-Specific Setup

React

Next.js

Vue.js

Vanilla JavaScript

Framer Integration

For Framer sites, add the SDK via custom code:
  1. Open your Framer project
  2. Go to Site Settings > General > Custom Code
  3. Add to the <head> section:
  1. Use in code overrides:

Webflow Integration

  1. Go to Project Settings > Custom Code
  2. Add to the Head Code section:
  1. Add to the Footer Code section:

Verifying Installation

After installation, verify the SDK is working:

Troubleshooting

Ensure you’ve installed the package:
  • Check that your API key starts with gately_pk_ (public) or gately_sk_ (secret)
  • Verify it matches your project in the dashboard
  • Ensure you’re using the correct key type for your environment
  • Ensure your domain is added to the allowed origins in project settings
  • Check that you’re using HTTPS in production
  • Check browser console for errors
  • Verify the script URL is correct
  • Ensure defer attribute is present