Most users don’t need this! If you’re using Framer, check out our simple one-script installation instead.
Installation
The Gately SDK can be installed and used in multiple ways. Choose the method that best fits your project setup.Quick Start
Method 1: Script Tag (Recommended for most projects)
Add the Gately SDK to your HTML page:window.gately
and window.GatelyBrowserClient
.
Method 2: ES Module Import
For modern JavaScript projects using ES modules:Method 3: Versioned Import (Production)
For production applications that need version stability:Framework Integration
React
Script Tag Method
ES Module Method
Vue
Svelte
Angular
Node.js Usage
For server-side applications:CDN URLs
Latest Version
- Script Tag:
https://cdn.usegately.com/gately.min.js
- ES Module:
https://cdn.usegately.com/gately-sdk.esm.min.js
Versioned (Recommended for Production)
- Script Tag:
https://cdn.usegately.com/sdk/v1.1.0/gately.min.js
- ES Module:
https://cdn.usegately.com/sdk/v1.1.0/gately-sdk.esm.min.js
Development
- Script Tag:
https://dev-cdn.usegately.com/gately.min.js
- ES Module:
https://dev-cdn.usegately.com/gately-sdk.esm.min.js
Configuration
Basic Setup
Advanced Configuration
Environment-Specific Configuration
TypeScript Support
The SDK includes full TypeScript support. When using ES modules, you’ll get automatic type checking:Browser Compatibility
The Gately SDK supports all modern browsers:- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+
Next Steps
After installation, check out:- Authentication Guide - Learn how to implement user authentication
- Quick Start Guide - Get up and running quickly
- API Reference - Complete API documentation