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.

Key / CookieTypeCategoryPurposeRetention
kafi_langCookie (First-party)NecessaryRemembers Arabic (ar) or English (en) so / routes returning visits to your chosen languageUp to 1 year
kafi_consent_v2Local StorageNecessaryStores your unified privacy choices (necessary, analytics, advertising) across the public site and app; migrates and deletes any legacy v1 consent keysUntil 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 KeyPurposeRetention
di_holdingsYour recorded holdings, purchase lots, and trade historyUntil cleared or reset in Settings
kafi_closed_position_history_v1Realized profit/loss history for closed positionsUntil cleared or reset
kafi_external_cash_flows_v1Recorded external portfolio deposits and withdrawals for XIRR / TWRUntil cleared or reset
kafi_portfolio_value_history_v1Daily local portfolio valuation snapshots for history chartsUntil cleared or reset
kafi_dividendsLogged cash dividends and dividend reinvestment (DRIP) recordsUntil cleared or reset
kafi_dividend_goalOptional annual dividend target entered by the userUntil cleared or reset
kafi_custom_dividend_events_v1User-edited or custom dividend schedule eventsUntil cleared or reset
kafi_dividend_lifecycle_v1Confirmed, pending, or reversed dividend lifecycle statesUntil cleared or reset
kafi_dividend_notifications_v1Read/snoozed state for local dividend remindersUntil cleared or reset
kafi_dividend_prefs_v1Dividend display and reminder preferencesUntil cleared or reset
kafi_target_allocationsTarget category weights used for allocation drift trackingUntil cleared or reset
kafi_zakat_hawl_start_date_v1, kafi_zakat_hawl, kafi_zakat_activity_v1, kafi_zakat_nisab_metal, kafi_zakatable_categoriesLocal Zakat lunar-year (hawl) dates, nisab metal choice, category selections, and activity logUntil cleared or reset
di_currency, di_lang, di_theme_mode, di_hide_balancesDisplay currency, language sync, light/dark theme, and balance privacy maskUntil cleared
kafi_show_zakat, kafi_show_portfolio_history, kafi_dashboard_widgets_v1, kafi_dashboard_widgets_config, di_tutorial_completedDashboard layout, visibility toggles, and onboarding dismissal stateUntil cleared
kafi_deleted_ids_v1Tombstone registry preventing deleted items from reappearing during optional syncUntil cleared
kafi_sync_queue_v1, kafi_sync_meta_v1, kafi_sync_conflicts_v1Offline queue, sync status metadata, and conflict snapshots when optional cloud sync is usedUntil cleared or signed out
sb-*-auth-tokenSupabase 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, and ad_personalization default to denied.
  • Analytics: Google Analytics / Tag Manager loads only after you explicitly accept analytics in 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.