Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
feat(brands): detect the site type when a brand is created, and say so in Brand settings (#1767)
Cihan0c0810c758c9
diff --git a/docs/guides/content-editor.mdx b/docs/guides/content-editor.mdxindex e9e9d2b14..97db9810e 100644--- a/docs/guides/content-editor.mdx+++ b/docs/guides/content-editor.mdx@@ -77,7 +77,10 @@ The shares cover only the cited addresses whose type can be read. Forums, encycl<Tip>The page types follow your brand's **Site type** (B2B SaaS, E-commerce or B2C)in the brand settings: feature and comparison pages for B2B SaaS, product and- category pages for e-commerce, destination and help pages for B2C.+ category pages for e-commerce, destination and help pages for B2C. When you+ add a brand, Ansvisor detects its site type from your home page, and a brand+ that adds a product catalog becomes E-commerce. Pick another type in the brand+ settings if it's wrong; a type you choose is never changed for you.</Tip>### Shopping opportunitiesdiff --git a/web/messages/en.json b/web/messages/en.jsonindex a29f001b7..667948f94 100644--- a/web/messages/en.json+++ b/web/messages/en.json@@ -9933,6 +9933,7 @@"stateHint": "Localizes AI answers to this state from the next tracking run onward.","siteTypeHint": "Sets the page types the Content Editor offers: feature and comparison pages for B2B SaaS, product and category pages for e-commerce, destination and help pages for B2C.","siteTypeGuessed": "Guessed from the industry and Shopping mode until you pick one.",+ "siteTypeDetected": "Detected automatically from your website. Pick another if it's wrong.","deleteWarning": "This action cannot be undone. All data for this brand (insights, content, competitors) will be permanently deleted.","confirmDelete": "Type the brand name to confirm:","deleteConfirmPlaceholder": "Brand name",diff --git a/web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsxindex 7226811f4..fb0c88fd6 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsx@@ -314,6 +314,10 @@ function GeneralTab({<p className="text-xs text-muted-foreground">{t('settings.siteTypeHint')}{siteType === null && ` ${t('settings.siteTypeGuessed')}`}+ {siteType !== null &&+ siteType === brand.siteType &&+ brand.siteTypeSource === 'auto' &&+ ` ${t('settings.siteTypeDetected')}`}</p></div>diff --git a/web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.test.tsxindex 7f582a096..11405cb9e 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.test.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.test.tsx@@ -25,9 +25,11 @@ vi.mock('@/lib/actions/competitor', () => ({ addCompetitor: vi.fn() }));vi.mock('@/lib/actions/tracking', () => ({ triggerTrackingCheck: vi.fn() }));vi.mock('@/lib/actions/volumes', () => ({ bootstrapBrandVolumes: vi.fn() }));const suggestTopics = vi.hoisted(() => vi.fn());+const detectSiteType = vi.hoisted(() => vi.fn());vi.mock('@/lib/ai-brand-setup', async (importOriginal) => ({...(await importOriginal<typeof import('@/lib/ai-brand-setup')>()),suggestTopics,+ detectSiteType,generatePromptsFromTopics: vi.fn(),suggestCompetitors: vi.fn(),}));@@ -66,6 +68,7 @@ beforeEach(() => {brand: { id: 'b1', name: 'Acme', domains: [{ domain: 'acme.com', isPrimary: true }] },});suggestTopics.mockResolvedValue({ topics: [] });+ detectSiteType.mockResolvedValue({ siteType: null, industry: null });container = document.createElement('div');document.body.appendChild(container);root = createRoot(container);@@ -117,6 +120,7 @@ describe('the new brand page', () => {expect(openUpgrade).toHaveBeenCalledExactlyOnceWith('Adding brands needs a plan');expect(brandActions.createBrand).not.toHaveBeenCalled();expect(suggestTopics).not.toHaveBeenCalled();+ expect(detectSiteType).not.toHaveBeenCalled();});it('creates the brand on an active plan', async () => {@@ -127,5 +131,32 @@ describe('the new brand page', () => {expect.objectContaining({ organizationId: 'org-1', name: 'Acme' }),);expect(openUpgrade).not.toHaveBeenCalled();+ // Its kind of site is read from its home page (Step 0), in the background.+ expect(detectSiteType).toHaveBeenCalledExactlyOnceWith('b1');+ });++ it('takes the detected site type into the brand', async () => {+ detectSiteType.mockResolvedValue({ siteType: 'ecommerce', industry: 'E-commerce & Retail' });+ await render(false);+ await reachCreate();+ await clickContinue();+ expect(store.updateBrand).toHaveBeenCalledWith('b1', {+ siteType: 'ecommerce',+ siteTypeSource: 'auto',+ industry: 'E-commerce & Retail',+ });+ });++ it('goes on to the topics when the detection fails', async () => {+ vi.spyOn(console, 'error').mockImplementation(() => {});+ detectSiteType.mockRejectedValue(new Error('down'));+ await render(false);+ await reachCreate();+ await clickContinue();+ expect(suggestTopics).toHaveBeenCalled();+ expect(store.updateBrand).not.toHaveBeenCalledWith(+ 'b1',+ expect.objectContaining({ siteType: expect.anything() }),+ );});});diff --git a/web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.tsxindex 3afed7993..fe734d9f8 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/brands/new/page.tsx@@ -61,6 +61,7 @@ import {import { cn } from '@/lib/utils';import {BRAND_SETUP_LIMITS,+ detectSiteType,suggestTopics,generatePromptsFromTopics,suggestCompetitors,@@ -456,6 +457,7 @@ export default function NewBrandPage() {setCreatedBrand(brand);addBrand(brand);setActiveBrand(brand.id);+ void detectBrandType(brand.id);}setStep(3);@@ -622,14 +624,36 @@ export default function NewBrandPage() {}};+ // The brand's kind of site, from its home page (Step 0): in the+ // background, best effort; the app goes on guessing when it can't tell.+ const detectBrandType = async (brandId: string) => {+ try {+ const { siteType, industry } = await detectSiteType(brandId);+ if (!siteType) return;+ const updates = {+ siteType,+ siteTypeSource: 'auto' as const,+ ...(industry ? { industry } : {}),+ };+ setCreatedBrand((b) => (b?.id === brandId ? { ...b, ...updates } : b));+ updateBrandInStore(brandId, updates);+ } catch (err) {+ console.error('Site type detection error:', err);+ }+ };+// The research found an online store: Shopping mode goes on, so Product// Visibility shows in the menu. Best effort: it can be turned on in the// brand's settings too.const turnOnProductVisibility = async () => {if (!createdBrand || createdBrand.shoppingModeEnabled) return;try {- const { industry } = await markBrandAsEcommerce(createdBrand.id);- const updates = { industry: industry ?? undefined, shoppingModeEnabled: true };+ const { industry, siteType } = await markBrandAsEcommerce(createdBrand.id);+ const updates = {+ industry: industry ?? undefined,+ shoppingModeEnabled: true,+ ...(siteType ? { siteType, siteTypeSource: 'auto' as const } : {}),+ };setCreatedBrand({ ...createdBrand, ...updates });updateBrandInStore(createdBrand.id, updates);setEcommerceDetected(true);diff --git a/web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.test.tsx b/web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.test.tsxindex 17536c71a..427ec5c13 100644--- a/web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.test.tsx+++ b/web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.test.tsx@@ -62,6 +62,7 @@ const setup = vi.hoisted(() => ({suggestTopics: vi.fn(),generatePromptsFromTopics: vi.fn(),suggestCompetitors: vi.fn(),+ detectSiteType: vi.fn(async () => ({ siteType: null, industry: null })),}));vi.mock('@/lib/ai-brand-setup', async (importOriginal) => ({...(await importOriginal<typeof import('@/lib/ai-brand-setup')>()),diff --git a/web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.tsx b/web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.tsxindex 80fa5c5e2..4997e01d6 100644--- a/web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.tsx+++ b/web/src/app/[locale]/(onboarding)/dashboard/onboarding/page.tsx@@ -77,6 +77,7 @@ import {import { cn } from '@/lib/utils';import {BRAND_SETUP_LIMITS,+ detectSiteType,suggestTopics,generatePromptsFromTopics,suggestCompetitors,@@ -666,6 +667,7 @@ export default function OnboardingPage() {setCreatedBrand(brand);addBrand(brand);setActiveBrand(brand.id);+ void detectBrandType(brand.id);track('onboarding_brand_created', { region: brand.region });track('onboarding_step_completed', {step: 2,@@ -876,14 +878,37 @@ export default function OnboardingPage() {}};+ // The brand's kind of site, from its home page (Step 0): in the+ // background, best effort; the app goes on guessing when it can't tell.+ const detectBrandType = async (brandId: string) => {+ try {+ const { siteType, industry } = await detectSiteType(brandId);+ if (!siteType) return;+ const updates = {+ siteType,+ siteTypeSource: 'auto' as const,+ ...(industry ? { industry } : {}),+ };+ setCreatedBrand((b) => (b?.id === brandId ? { ...b, ...updates } : b));+ updateBrandInStore(brandId, updates);+ track('onboarding_site_type_detected', { site_type: siteType });+ } catch (err) {+ console.error('Site type detection error:', err);+ }+ };+// The research found an online store: Shopping mode goes on, so Product// Visibility shows in the menu. Best effort: it can be turned on in the// brand's settings too.const turnOnProductVisibility = async () => {if (!createdBrand || createdBrand.shoppingModeEnabled) return;try {- const { industry } = await markBrandAsEcommerce(createdBrand.id);- const updates = { industry: industry ?? undefined, shoppingModeEnabled: true };+ const { industry, siteType } = await markBrandAsEcommerce(createdBrand.id);+ const updates = {+ industry: industry ?? undefined,+ shoppingModeEnabled: true,+ ...(siteType ? { siteType, siteTypeSource: 'auto' as const } : {}),+ };setCreatedBrand({ ...createdBrand, ...updates });updateBrandInStore(createdBrand.id, updates);setEcommerceDetected(true);diff --git a/web/src/lib/actions/brand-ecommerce.test.ts b/web/src/lib/actions/brand-ecommerce.test.tsindex ec57fb7ae..09593a4c0 100644--- a/web/src/lib/actions/brand-ecommerce.test.ts+++ b/web/src/lib/actions/brand-ecommerce.test.ts@@ -1,13 +1,19 @@import { beforeEach, describe, expect, it, vi } from 'vitest';/**- * markBrandAsEcommerce: setup found the brand sells online, so its industry- * becomes E-commerce & Retail when it has none and Shopping mode goes on- * (ChatGPT Shopping on every prompt, the brand_platforms row), which shows- * Product Visibility in the menu.+ * markBrandAsEcommerce: setup found the brand sells online, so its site type+ * becomes e-commerce as a detection unless a person chose one (00379), its+ * industry becomes E-commerce & Retail when it has none and Shopping mode+ * goes on (ChatGPT Shopping on every prompt, the brand_platforms row), which+ * shows Product Visibility in the menu.*/-let brand: { industry: string | null; shopping_mode_enabled: boolean };+let brand: {+ industry: string | null;+ shopping_mode_enabled: boolean;+ site_type: string | null;+ site_type_source: string | null;+};let prompts: { id: string; platforms: string[] }[];let writes: { table: string; op: string; value: unknown }[];// RLS lets a write through, or matches no row without an error (an analyst).@@ -52,8 +58,14 @@ vi.mock('@/lib/supabase/server', () => ({const { markBrandAsEcommerce, setBrandShoppingMode } = await import('./brand');+const TYPE_WRITE = {+ table: 'brands',+ op: 'update',+ value: { site_type: 'ecommerce', site_type_detected_at: expect.any(String) },+};+beforeEach(() => {- brand = { industry: null, shopping_mode_enabled: false };+ brand = { industry: null, shopping_mode_enabled: false, site_type: null, site_type_source: null };prompts = [{ id: 'p1', platforms: ['chatgpt-web'] },{ id: 'p2', platforms: ['chatgpt-web', 'chatgpt-shopping'] },@@ -63,12 +75,14 @@ beforeEach(() => {});describe('markBrandAsEcommerce', () => {- it('sets the industry and turns Shopping mode on', async () => {+ it('sets the site type and industry and turns Shopping mode on', async () => {expect(await markBrandAsEcommerce('b1')).toEqual({industry: 'E-commerce & Retail',promptsUpdated: 1,+ siteType: 'ecommerce',});expect(writes).toEqual([+ TYPE_WRITE,{ table: 'brands', op: 'update', value: { industry: 'E-commerce & Retail' } },{ table: 'brands', op: 'update', value: { shopping_mode_enabled: true } },{ table: 'prompts', op: 'update', value: { platforms: ['chatgpt-web', 'chatgpt-shopping'] } },@@ -87,11 +101,32 @@ describe('markBrandAsEcommerce', () => {});it('leaves a brand already in Shopping mode as it is, industry included', async () => {- brand = { industry: null, shopping_mode_enabled: true };- expect(await markBrandAsEcommerce('b1')).toEqual({ industry: null, promptsUpdated: 0 });+ brand = {+ ...brand,+ shopping_mode_enabled: true,+ site_type: 'ecommerce',+ site_type_source: 'auto',+ };+ expect(await markBrandAsEcommerce('b1')).toEqual({+ industry: null,+ promptsUpdated: 0,+ siteType: null,+ });expect(writes).toEqual([]);});+ it('gives a brand already in Shopping mode its site type, and nothing else', async () => {+ brand = { ...brand, shopping_mode_enabled: true };+ expect(await markBrandAsEcommerce('b1')).toMatchObject({ siteType: 'ecommerce' });+ expect(writes).toEqual([TYPE_WRITE]);+ });++ it('never writes over a site type a person chose', async () => {+ brand = { ...brand, site_type: 'b2b', site_type_source: 'manual' };+ expect(await markBrandAsEcommerce('b1')).toMatchObject({ siteType: null });+ expect(writes.some((w) => (w.value as { site_type?: string })?.site_type)).toBe(false);+ });+it('fails, writing nothing, when RLS denies the brand update', async () => {denied = true;await expect(markBrandAsEcommerce('b1')).rejects.toThrow(diff --git a/web/src/lib/actions/brand.ts b/web/src/lib/actions/brand.tsindex 495922e43..76e8911d4 100644--- a/web/src/lib/actions/brand.ts+++ b/web/src/lib/actions/brand.ts@@ -37,6 +37,10 @@ function mapBrandRow(brand: Record<string, unknown>, domains: Record<string, unktrackingCode: (brand.tracking_code as string | null) ?? undefined,shoppingModeEnabled: !!brand.shopping_mode_enabled,siteType: (brand.site_type as string | null) ?? undefined,+ siteTypeSource:+ brand.site_type_source === 'auto' || brand.site_type_source === 'manual'+ ? brand.site_type_source+ : undefined,conversionsEnabled: brand.conversions_enabled === true,conversionsConsent: brand.conversions_consent === 'always' ? 'always' : 'wait',isActive: brand.is_active === undefined ? true : !!brand.is_active,@@ -355,23 +359,42 @@ async function applyShoppingMode(/*** Setup found the brand sells products online (competitor research's- * isEcommerce): its industry becomes E-commerce & Retail when it has none,- * and Shopping mode goes on, so Product Visibility shows in the menu. A- * brand already in Shopping mode is left as it is.+ * isEcommerce): its site type becomes e-commerce, as a detection, unless a+ * person chose one (00379); its industry becomes E-commerce & Retail when it+ * has none; and Shopping mode goes on, so Product Visibility shows in the+ * menu. A brand already in Shopping mode keeps its industry and mode.+ * `siteType` is the type written, null when it was left as it was.*/export async function markBrandAsEcommerce(brandId: string,-): Promise<{ industry: string | null; promptsUpdated: number }> {+): Promise<{ industry: string | null; promptsUpdated: number; siteType: SiteType | null }> {await assertWritable({ onboarding: true });const supabase = await createClient();const { data: brand, error } = await supabase.from('brands')- .select('industry, shopping_mode_enabled')+ .select('industry, shopping_mode_enabled, site_type, site_type_source').eq('id', brandId).single();if (error || !brand) throw new Error(error?.message ?? 'Brand not found');- if (brand.shopping_mode_enabled) return { industry: brand.industry ?? null, promptsUpdated: 0 };+ let siteType: SiteType | null = null;+ if (brand.site_type_source !== 'manual' && brand.site_type !== 'ecommerce') {+ // Stamped as a detection, so the trigger keeps it auto.+ const { data: typed, error: typeErr } = await supabase+ .from('brands')+ .update({ site_type: 'ecommerce', site_type_detected_at: new Date().toISOString() })+ .eq('id', brandId)+ .select('id');+ if (typeErr) throw new Error(typeErr.message);+ if (!typed || typed.length === 0) {+ throw new Error('Brand not found or you do not have permission to update it.');+ }+ siteType = 'ecommerce';+ }++ if (brand.shopping_mode_enabled) {+ return { industry: brand.industry ?? null, promptsUpdated: 0, siteType };+ }let industry: string | null = brand.industry ?? null;if (!industry) {@@ -388,7 +411,7 @@ export async function markBrandAsEcommerce(industry = ecommerce;}const { promptsUpdated } = await applyShoppingMode(supabase, brandId, true);- return { industry, promptsUpdated };+ return { industry, promptsUpdated, siteType };}/**diff --git a/web/src/lib/actions/read-only.test.ts b/web/src/lib/actions/read-only.test.tsindex b3e63cf8a..5afc326c5 100644--- a/web/src/lib/actions/read-only.test.ts+++ b/web/src/lib/actions/read-only.test.ts@@ -121,6 +121,12 @@ describe('server actions on a read-only workspace', () => {await expect(markBrandAsEcommerce('brand-1')).resolves.toEqual({industry: 'E-commerce & Retail',promptsUpdated: 1,+ siteType: 'ecommerce',+ });+ // The site type too, as a detection (00379).+ expect(updates).toContainEqual({+ table: 'brands',+ values: { site_type: 'ecommerce', site_type_detected_at: expect.any(String) },});expect(updates).toContainEqual({table: 'brands',@@ -128,6 +134,7 @@ describe('server actions on a read-only workspace', () => {});expect(updates).toContainEqual({ table: 'brands', values: { shopping_mode_enabled: true } });expect(writes).toEqual([+ 'brands.update','brands.update','brands.update','prompts.update',diff --git a/web/src/lib/ai-brand-setup.test.ts b/web/src/lib/ai-brand-setup.test.tsindex 8dd802923..1b74961ec 100644--- a/web/src/lib/ai-brand-setup.test.ts+++ b/web/src/lib/ai-brand-setup.test.ts@@ -9,6 +9,7 @@ vi.mock('@/lib/supabase/client', () => ({const {BRAND_SETUP_LIMITS,SetupDailyLimitError,+ detectSiteType,generatePromptsFromTopics,suggestCompetitors,suggestFailure,@@ -184,3 +185,39 @@ describe('setup suggestions past the daily limit', () => {await expect(suggestTopics(params)).resolves.toEqual({ topics: ['Coffee'] });});});++describe('detectSiteType', () => {+ it("asks the API to detect the brand's site type, signed in, and gives back what it kept", async () => {+ fetchMock.mockResolvedValue({+ ok: true,+ json: async () => ({ siteType: 'ecommerce', industry: 'E-commerce & Retail', via: 'page' }),+ });+ await expect(detectSiteType('b 1')).resolves.toEqual({+ siteType: 'ecommerce',+ industry: 'E-commerce & Retail',+ });+ const [url, init] = fetchMock.mock.calls[0];+ expect(url).toMatch(/\/api\/brands\/b%201\/detect-site-type$/);+ expect(init).toMatchObject({ method: 'POST', headers: { Authorization: 'Bearer token' } });+ });++ it("gives nulls when the type was chosen by hand or couldn't be told, or is one it doesn't know", async () => {+ for (const body of [+ { siteType: null, skipped: 'manual' },+ { siteType: null },+ { siteType: 'app', industry: 7 },+ ]) {+ fetchMock.mockResolvedValue({ ok: true, json: async () => body });+ await expect(detectSiteType('b1')).resolves.toEqual({ siteType: null, industry: null });+ }+ });++ it("throws SetupDailyLimitError past the day's setup calls", async () => {+ fetchMock.mockResolvedValue({+ ok: false,+ status: 429,+ json: async () => ({ code: 'onboarding_daily_limit' }),+ });+ await expect(detectSiteType('b1')).rejects.toBeInstanceOf(SetupDailyLimitError);+ });+});diff --git a/web/src/lib/ai-brand-setup.ts b/web/src/lib/ai-brand-setup.tsindex 7a3533c01..6668e415f 100644--- a/web/src/lib/ai-brand-setup.ts+++ b/web/src/lib/ai-brand-setup.ts@@ -1,5 +1,5 @@/**- * Client-side helpers for the three AI calls that are shared between the+ * Client-side helpers for the AI calls that are shared between the* onboarding wizard and the "add a brand" page.** Each function owns session lookup, Authorization header construction, and@@ -15,6 +15,7 @@import { createClient } from '@/lib/supabase/client';import { BROWSER_API_BASE_URL } from '@/config/api';import { TOPIC_NAME_CHARS } from '@/lib/topic-names';+import { isSiteType, type SiteType } from '@/lib/content/page-types';const API_BASE = BROWSER_API_BASE_URL;@@ -230,3 +231,34 @@ export async function suggestCompetitors(}));return { competitors, isEcommerce: data.isEcommerce === true };}++// ── Site type ─────────────────────────────────────────────────────────────────++export interface DetectSiteTypeResult {+ /** Null when the type was chosen by hand already, or couldn't be told. */+ siteType: SiteType | null;+ /** The industry written to the brand; null when it already had one. */+ industry: string | null;+}++/**+ * POST /api/brands/:id/detect-site-type+ *+ * The brand's kind of site, read from its home page right after it is made+ * (action plan by business type, Step 0), and kept on the brand unless a+ * person chose one. Throws if the request fails.+ */+export async function detectSiteType(brandId: string): Promise<DetectSiteTypeResult> {+ const authorization = await getAuthHeader();+ const res = await fetch(+ `${API_BASE}/api/brands/${encodeURIComponent(brandId)}/detect-site-type`,+ { method: 'POST', headers: { Authorization: authorization } },+ );++ if (!res.ok) throw await failure(res, 'Failed to detect the site type');+ const data = await res.json();+ return {+ siteType: isSiteType(data.siteType) ? data.siteType : null,+ industry: typeof data.industry === 'string' ? data.industry : null,+ };+}diff --git a/web/src/types/index.ts b/web/src/types/index.tsindex 94ef12481..07d230edf 100644--- a/web/src/types/index.ts+++ b/web/src/types/index.ts@@ -27,6 +27,8 @@ export interface Brand {shoppingModeEnabled: boolean;/** b2b, ecommerce or b2c (Content Editor page types); unset = guessed (siteTypeOf). */siteType?: string;+ /** auto = detected from the brand's site at setup or by its catalog; manual = a person chose it (00379). */+ siteTypeSource?: 'auto' | 'manual';/** The snippet follows AI visitors to conversions (CE-017, 00286); off by default. */conversionsEnabled?: boolean;/** 'wait' keeps the snippet's visitor id only after the site's consent, 'always' at once. */diff --git a/web/src/types/supabase.ts b/web/src/types/supabase.tsindex a27418eee..58d61313e 100644--- a/web/src/types/supabase.ts+++ b/web/src/types/supabase.ts@@ -779,6 +779,8 @@ export type Database = {region: string | nullshopping_mode_enabled: booleansite_type: string | null+ site_type_detected_at: string | null+ site_type_source: string | nullslug: stringstate: string | nulltracking_code: string@@ -808,6 +810,8 @@ export type Database = {region?: string | nullshopping_mode_enabled?: booleansite_type?: string | null+ site_type_detected_at?: string | null+ site_type_source?: string | nullslug: stringstate?: string | nulltracking_code?: string@@ -837,6 +841,8 @@ export type Database = {region?: string | nullshopping_mode_enabled?: booleansite_type?: string | null+ site_type_detected_at?: string | null+ site_type_source?: string | nullslug?: stringstate?: string | nulltracking_code?: string