# Grain Analytics ## Docs - [Configuration Options](https://docs.grainql.com/advanced/configuration.md): Complete reference for all SDK configuration options - [Error Handling](https://docs.grainql.com/advanced/error-handling.md): Handle errors gracefully in your application - [Performance](https://docs.grainql.com/advanced/performance.md): Optimize Grain Analytics for your use case - [Security](https://docs.grainql.com/advanced/security.md): Security considerations and best practices - [TypeScript](https://docs.grainql.com/advanced/typescript.md): Type-safe analytics with full TypeScript support - [Connect ChatGPT](https://docs.grainql.com/ai-tools/mcp/chatgpt.md): Add Grain as a custom MCP connector in ChatGPT using Developer Mode. - [Connect Claude](https://docs.grainql.com/ai-tools/mcp/claude.md): Add Grain as a custom connector in Claude.ai, Claude Desktop, or Claude Code. - [Connect Cursor](https://docs.grainql.com/ai-tools/mcp/cursor.md): Add Grain as a remote MCP server in Cursor so the in‑editor agent can query your analytics. - [MCP Server overview](https://docs.grainql.com/ai-tools/mcp/overview.md): Let Claude, Cursor, ChatGPT, and any MCP-aware agent query your Grain workspace directly. - [Security & connections](https://docs.grainql.com/ai-tools/mcp/security.md): How Grain secures MCP access — scopes, tokens, revocation, and what each credential can actually do. - [Tool reference](https://docs.grainql.com/ai-tools/mcp/tools.md): Every tool exposed by Grain's MCP server — inputs, scopes, and what each one is good for. - [Config Methods](https://docs.grainql.com/api-reference/config-methods.md): Remote configuration access and management - [Core Methods](https://docs.grainql.com/api-reference/core-methods.md): Event tracking and user management methods for both Grain SDKs - [API Overview](https://docs.grainql.com/api-reference/overview.md): Complete API reference for the Grain SDKs - [Count Events](https://docs.grainql.com/api-reference/query-api/count-events.md): Get count of events matching your filters using the Query API - [Filter Reference](https://docs.grainql.com/api-reference/query-api/filters.md): Complete guide to all filter operators and property paths in the Query API - [List Events](https://docs.grainql.com/api-reference/query-api/list-events.md): Discover all available event types in your analytics data - [Query API Overview](https://docs.grainql.com/api-reference/query-api/overview.md): Complete reference for the Grain Query API endpoints - [Query Events](https://docs.grainql.com/api-reference/query-api/query-events.md): Query events with filters and pagination using the Query API - [React Hooks API](https://docs.grainql.com/api-reference/react-hooks.md): Complete API reference for React hooks - [Template Methods](https://docs.grainql.com/api-reference/template-methods.md): Pre-built event methods for common scenarios - [Types & Interfaces](https://docs.grainql.com/api-reference/types.md): TypeScript type definitions for both Grain SDKs - [Authentication](https://docs.grainql.com/authentication.md): Choose the right authentication strategy for your app - [Automatic Tracking](https://docs.grainql.com/core/automatic-tracking.md): Heartbeat and page view tracking with privacy-first design - [Event Naming Convention](https://docs.grainql.com/core/event-naming.md): A systematic approach to naming custom events for clarity, consistency, and powerful queries - [Event Tracking](https://docs.grainql.com/core/event-tracking.md): Learn how to track user actions and understand event fundamentals - [Remote Configuration](https://docs.grainql.com/core/remote-config.md): Control your app's behavior dynamically without deploying code - [Template Events](https://docs.grainql.com/core/template-events.md): Pre-built event methods for common tracking scenarios - [User Identification](https://docs.grainql.com/core/user-identification.md): Track users across sessions and understand your audience - [User Properties](https://docs.grainql.com/core/user-properties.md): Add attributes to user profiles for segmentation and personalization - [Privacy & Compliance](https://docs.grainql.com/essentials/privacy-and-compliance.md): GDPR and CCPA compliant analytics with data residency options - [User Authentication Flow](https://docs.grainql.com/examples/auth-flow.md): Complete authentication tracking implementation - [E-commerce Store](https://docs.grainql.com/examples/ecommerce-store.md): Complete e-commerce tracking implementation - [Next.js Example](https://docs.grainql.com/examples/nextjs.md): Integrate Grain Analytics in Next.js applications - [Custom Analytics Dashboard](https://docs.grainql.com/examples/query-api-custom-dashboard.md): Build a custom analytics dashboard using the Query API with React and Next.js - [Data Export](https://docs.grainql.com/examples/query-api-data-export.md): Export analytics data for external analysis using the Query API - [React Example](https://docs.grainql.com/examples/react.md): Complete React application with Grain Analytics - [Vanilla JavaScript](https://docs.grainql.com/examples/vanilla-js.md): Use Grain Analytics in plain JavaScript applications - [Heatmaps: Visual Click & Scroll Analytics](https://docs.grainql.com/features/heatmaps.md): See exactly where users click and how far they scroll on every page - [Mission Control: Goals & Insights](https://docs.grainql.com/features/mission-control.md): Set goals, track progress, and get actionable insights about your site's performance - [Trackers: Element-Level Conversion Tracking](https://docs.grainql.com/features/trackers.md): Track clicks and interactions on specific elements without writing code - [A/B Testing](https://docs.grainql.com/guides/ab-testing.md): Test different experiences and measure what works best - [Event Tracking Best Practices](https://docs.grainql.com/guides/analytics-dashboard.md): Structure your events for maximum insight in your analytics dashboard - [E-commerce Tracking](https://docs.grainql.com/guides/ecommerce.md): Track the complete shopping journey from browse to purchase - [Feature Flags](https://docs.grainql.com/guides/feature-flags.md): Control features dynamically without code deployments - [Personalization](https://docs.grainql.com/guides/personalization.md): Create unique experiences for each user - [Query API](https://docs.grainql.com/guides/query-api.md): Programmatically access your analytics data with the Query API - [Grain Analytics](https://docs.grainql.com/index.md): Privacy-first analytics for understanding user behavior — heatmaps, scroll depth, click tracking, and more - [Installation](https://docs.grainql.com/installation.md): Install Grain Analytics in your project - [Google Tag Manager](https://docs.grainql.com/integrations/gtm.md): Add Grain Analytics using Google Tag Manager -- no coding required - [Integrations](https://docs.grainql.com/integrations/overview.md): Every way to add Grain to your site or app - [Shopify](https://docs.grainql.com/integrations/shopify.md): Track your entire customer journey from landing to purchase - [WordPress](https://docs.grainql.com/integrations/wordpress.md): Add Grain Analytics to WordPress with the official plugin - [Grain Tag (Script)](https://docs.grainql.com/quickstart/cdn.md): Add Grain Analytics without npm or a build step - [Next.js Quick Start](https://docs.grainql.com/quickstart/nextjs.md): Integrate Grain Analytics with Next.js App Router or Pages Router - [Node.js / Backend Quick Start](https://docs.grainql.com/quickstart/nodejs.md): Track server-side events and use remote config in Node.js - [React Quick Start](https://docs.grainql.com/quickstart/react.md): Get Grain Analytics running in your React app in 5 minutes - [Vanilla JavaScript, Vue, Svelte & More](https://docs.grainql.com/quickstart/vanilla-js.md): Use Grain Analytics with any JavaScript framework or no framework at all - [GrainProvider](https://docs.grainql.com/react/grain-provider.md): Set up Grain Analytics in your React app - [React Hooks Overview](https://docs.grainql.com/react/overview.md): Modern React integration for Grain Analytics - [useAllConfigs Hook](https://docs.grainql.com/react/use-all-configs.md): Get all remote configurations in a single object - [useConfig Hook](https://docs.grainql.com/react/use-config.md): Access remote configuration values in React components - [useGrainAnalytics Hook](https://docs.grainql.com/react/use-grain-analytics.md): Access the full Grain client for advanced operations - [useTrack Hook](https://docs.grainql.com/react/use-track.md): Track events efficiently in React components - [Troubleshooting](https://docs.grainql.com/troubleshooting.md): Common issues and solutions for Grain Analytics ## OpenAPI Specs - [openapi](https://docs.grainql.com/api-reference/openapi.json) ## Optional - [Website](https://grainql.com) - [Dashboard](https://grainql.com/dashboard) - [npm](https://www.npmjs.com/package/@grainql/tag)