>

How to Track Sanity Analytics

Start capturing events and metrics on Sanity with our simple SDK. With one line of code, gain powerful insights into user behavior and performance on Sanity.

Get started with Sanity analytics

Tracking events and metrics on Sanity is crucial for understanding user behavior and web performance. This guide provides step-by-step instructions for how to easily track events and metrics on Sanity.


Steps to track on Sanity

Step 1

Create an Amplitude account

generic
Step 2

Install the browser SDK with yarn or NPM.

Step 3

Validate that your Sanity website is passing data to Amplitude.

validation
Step 4

Create a chart and add the data you would like to visualize.

createChart
Ready to track on Sanity with Amplitude?

Frequently asked questions

Amplitude is a leading digital analytics platform that helps companies unlock the power of their products. Amplitude guides companies every step of the way as they capture data they can trust, uncover clear insights about customer behavior, and take faster action. When teams understand how people are using their products, they can deliver better product experiences that drive growth.

Web analytics is a collection of tools that collect, measure, and analyze various metrics and user behavior on a website to offer insights into web performance, user engagement, user experience, and conversions. These insights help you understand how users interact with your site, which pages they visit, how long they stay, and what actions they take. Web analytics enables companies to improve web usability, content relevance, conversion rates, and overall user experiences to achieve business goals.

Amplitude helps you go further with web analytics, with access to , , , . Using our , you can unify insights across the entire customer journey and empower teams to drive growth.

Yes, Amplitude is free to get started. Our includes up to 50K MTUs, out-of-the-box and templates, , , and moreā€”all at no cost.

Sanity is a headless CMS that provides real-time collaboration and customization for managing content across platforms.

Get set up with one line of code

No need for tracking plans, engineering, or long hours to start gathering customer insights.