Legal · Cookies & Storage
Cookie & Local Storage Policy
Kafi stores your portfolio records in your browser's local storage by default and uses a single first-party language cookie plus one unified consent key so you stay in full control of your preferences.
First-party cookies and consent keys
| Key / Cookie | Type | Category | Purpose | Retention |
|---|---|---|---|---|
kafi_lang | Cookie (First-party) | Necessary | Remembers Arabic (ar) or English (en) so / routes returning visits to your chosen language | Up to 1 year |
kafi_consent_v2 | Local Storage | Necessary | Stores your unified privacy choices (necessary, analytics, advertising) across the public site and app; migrates and deletes any legacy v1 consent keys | Until cleared or updated |
Portfolio & app local storage keys (Necessary)
These keys live only on your browser to run Kafi's local record-keeping features. They are not used for cross-site tracking:
| Storage Key | Purpose | Retention |
|---|---|---|
di_holdings | Your recorded holdings, purchase lots, and trade history | Until cleared or reset in Settings |
kafi_closed_position_history_v1 | Realized profit/loss history for closed positions | Until cleared or reset |
kafi_external_cash_flows_v1 | Recorded external portfolio deposits and withdrawals for XIRR / TWR | Until cleared or reset |
kafi_portfolio_value_history_v1 | Daily local portfolio valuation snapshots for history charts | Until cleared or reset |
kafi_dividends | Logged cash dividends and dividend reinvestment (DRIP) records | Until cleared or reset |
kafi_dividend_goal | Optional annual dividend target entered by the user | Until cleared or reset |
kafi_custom_dividend_events_v1 | User-edited or custom dividend schedule events | Until cleared or reset |
kafi_dividend_lifecycle_v1 | Confirmed, pending, or reversed dividend lifecycle states | Until cleared or reset |
kafi_dividend_notifications_v1 | Read/snoozed state for local dividend reminders | Until cleared or reset |
kafi_dividend_prefs_v1 | Dividend display and reminder preferences | Until cleared or reset |
kafi_target_allocations | Target category weights used for allocation drift tracking | Until cleared or reset |
kafi_zakat_hawl_start_date_v1, kafi_zakat_hawl, kafi_zakat_activity_v1, kafi_zakat_nisab_metal, kafi_zakatable_categories | Local Zakat lunar-year (hawl) dates, nisab metal choice, category selections, and activity log | Until cleared or reset |
di_currency, di_lang, di_theme_mode, di_hide_balances | Display currency, language sync, light/dark theme, and balance privacy mask | Until cleared |
kafi_show_zakat, kafi_show_portfolio_history, kafi_dashboard_widgets_v1, kafi_dashboard_widgets_config, di_tutorial_completed | Dashboard layout, visibility toggles, and onboarding dismissal state | Until cleared |
kafi_deleted_ids_v1 | Tombstone registry preventing deleted items from reappearing during optional sync | Until cleared |
kafi_sync_queue_v1, kafi_sync_meta_v1, kafi_sync_conflicts_v1 | Offline queue, sync status metadata, and conflict snapshots when optional cloud sync is used | Until cleared or signed out |
sb-*-auth-token | Supabase Auth session token (created only if you sign in to optional cloud sync) | Until sign-out or account deletion |
Optional analytics and advertising storage
- Google Consent Mode v2 default: On every page load,
analytics_storage,ad_storage,ad_user_data, andad_personalizationdefault todenied. - Analytics: Google Analytics / Tag Manager loads only after you explicitly accept
analyticsin the consent banner or Manage panel. - Advertising: Advertising scripts are currently disabled site-wide (
ADS_ENABLED=false) and never load inside the portfolio app. When enabled on eligible public articles in the future, they require explicit advertising consent (and a Google-certified CMP for EEA, UK, and Switzerland visitors). - Manage anytime: Use the Privacy choices button in any page footer to review or change your preferences at any time. See Privacy Policy and Advertising Disclosure.