docs(legal): describe first-party product analytics in the privacy policy (#61905)

This commit is contained in:
Adam
2026-11-04 22:31:45 -06:00
committed by GitHub
Unverified
parent b9e8b04d21
commit eb463de93e
@@ -21,7 +21,7 @@ export default function PrivacyPolicy() {
<section data-component="brand-content">
<article data-component="privacy-policy">
<h1>Privacy Policy</h1>
<p class="effective-date">Effective date: Mar 6, 2026</p>
<p class="effective-date">Effective date: Nov 4, 2026</p>
<p>
At OpenCode, we take your privacy seriously. Please read this Privacy Policy to learn how we treat your
@@ -84,6 +84,11 @@ export default function PrivacyPolicy() {
</li>
<li>
<a href="#tracking-tools">Tracking Tools and Opt-Out</a>
<ul>
<li>
<a href="#product-analytics">Product Analytics on opencode.ai/console</a>
</li>
</ul>
</li>
<li>
<a href="#data-security">Data Security</a>
@@ -470,6 +475,92 @@ export default function PrivacyPolicy() {
<a href="http://www.allaboutcookies.org/">http://www.allaboutcookies.org/</a>.
</p>
<h3 id="product-analytics">Product Analytics on opencode.ai/console</h3>
<p>
When you visit pages under opencode.ai/console, including the sign-in pages, we record the pages you
view, how long each page is visible, how long you're active on it and how far you scroll, the links and
buttons you click, and the type of any sign-in error. In the Console we record the pages you open and
the controls you use in its navigation, plan, billing and onboarding screens. We also record account and
workspace events: when you sign up, sign in, verify your email, approve a device, create or delete a
workspace, invite or remove members, create API keys, connect providers or clients, and start or
complete a checkout or payment, including its amount and any decline reason. We use these records to
understand how people find OpenCode and where they stop before signing up or subscribing, so we can
improve the Services.
</p>
<p>
With each record sent from your browser, we keep the country, region and time zone your request came
from, the type of device, operating system and browser you used, and the size of your browser window. We
use your IP address to determine your country and region and to limit requests, but we don't store it,
your email address or anything you type in these records.
</p>
<p>
We set the following first-party Cookies. Your browser sends them only to opencode.ai/console. We also
keep a list in your browser's local storage of which events it has already reported that day.
</p>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Cookie</th>
<th>What it holds</th>
<th>How long it lasts</th>
</tr>
</thead>
<tbody>
<tr>
<td>oc_vid</td>
<td>A random ID for your browser</td>
<td>1 year from when it's first set</td>
</tr>
<tr>
<td>oc_sid</td>
<td>An ID for your current visit and the time it started</td>
<td>30 minutes without activity, and at most 24 hours</td>
</tr>
<tr>
<td>oc_attr</td>
<td>
How you first and most recently arrived: the page you landed on, the domain of the website that
referred you, any campaign (UTM) parameters in the link, and the last sign-up or sign-in link
you clicked
</td>
<td>1 year</td>
</tr>
<tr>
<td>oc_consent</td>
<td>Your answer to our cookie banner, or that we don't need to ask you</td>
<td>180 days for an answer, 1 day otherwise</td>
</tr>
</tbody>
</table>
</div>
<p>
When you create an account, sign in, verify your email or approve a device, we link the records from
that browser to your account. Records made while you're signed in carry your account ID directly.
</p>
<p>
If you're in the European Economic Area, the United Kingdom or Switzerland, or we can't tell where you
are, we ask before setting these Cookies. If you're signed in to OpenCode, we set them without asking.
If you haven't accepted, we still record the events above, without these Cookies' IDs, so a visit's
events can't be connected to each other or to earlier visits. If you're signed in, those events still
carry your account ID. You can change your answer at any time with the Cookies button at the bottom of
our marketing pages.
</p>
<p>
We delete these records from our analytics database within a month after they turn 24 months old. We
keep an archive copy of these records for longer. It contains your account ID if you were signed in, but
not your name, email address or IP address. When you delete your account, we delete your email address,
our record of how you first arrived and our list of the browsers linked to your account. Event records
that include your account ID, and the browser IDs recorded with them, remain until they're deleted at 24
months, and in the archive, but we can no longer connect that account ID to you.
</p>
<h2 id="data-security">Data Security</h2>
<p>
We seek to protect your Personal Data from unauthorized access, use and disclosure using appropriate