Skip to main content

Create Your Project

1

Sign Up

Create a free account at usegately.com/signup and create your first project.
2

Get Your Project ID

Navigate to Settings > General to find your Project ID. You’ll need this to initialize the SDK.
3

Install the SDK

Add Gately to your website using one of the methods below.

Installation

Add this script to your HTML <head> tag:
The SDK will automatically initialize and be available as window.Gately.

Basic Usage

Check Authentication Status

Login a User

Sign Up a New User

Social Login

Logout

Protect Content

Add the data-gately-protected attribute to any element you want to protect:
The SDK will automatically hide this content from non-authenticated users or users without the required plan.

Next Steps

Authentication

Learn about all authentication options

SDK Reference

Explore the full SDK documentation

API Reference

Build custom integrations with the API

Webhooks

Set up real-time event notifications