{"ok":true,"service":"ytf-app","endpoint":"analytics-config","provider":"google_analytics","state":"ga4_usage_learning_waiting_for_measurement_id","status":"not_configured","enabled":false,"measurement_configured":false,"env_key":"YTF_GA_MEASUREMENT_ID","accepted_env_keys":["YTF_GA_MEASUREMENT_ID","GA_MEASUREMENT_ID","NEXT_PUBLIC_GA_MEASUREMENT_ID"],"measurement_id_present":false,"measurement_id":null,"client_script":"/analytics.js","event_name":"ytf_surface_view","domain":"ytf.supermega.dev","setup_route":"/analytics","review_cadence":"weekly_after_ga4","purpose":"Privacy-safe YTF route/surface/role usage so the team can simplify pages, find training gaps, and prioritize CI/CD.","source_lane":"usage_analytics","owner_action":"Create or choose a GA4 web stream for ytf.supermega.dev, set YTF_GA_MEASUREMENT_ID in Vercel production, then redeploy.","next_owner_action":"Create or choose a GA4 web stream for ytf.supermega.dev, set YTF_GA_MEASUREMENT_ID in Vercel production, then redeploy.","setup_steps":["Create or choose a GA4 web data stream for ytf.supermega.dev.","Add YTF_GA_MEASUREMENT_ID=G-XXXXXXXXXX in Vercel production environment variables.","Redeploy ytf.supermega.dev.","Confirm /api/analytics-config returns status=configured.","Review route/surface/role usage weekly and prune one confusing page at a time."],"allowed_event_fields":["surface","role","route","source","status"],"privacy_contract":{"raw_messages":false,"raw_email":false,"raw_file_paths":false,"credentials":false,"customer_identity":false,"claim_contents":false,"chat_text":false,"query_strings":false,"user_id":false,"personal_contact":false},"not_for":["factory production evidence","quality claim evidence","customer or supplier identity","Viber, LINE, Gmail, Drive, or OneDrive content","board or plant KPI publication","ERP/iSolution operating record approval"],"usage_learning_contract":{"state":"ga4_usage_learning_waiting_for_measurement_id","route":"/analytics","source_lane":"usage_analytics","manager_output":"One weekly page-pruning, SOP, training, or CI/CD action; never a factory KPI.","decisions_supported":["Keep manager-used pages prominent and linked from /run and /manager.","Hide, merge, or rewrite confusing low-use pages after a weekly usage window.","Treat low use of a required workflow as an SOP or training gap, not as operator failure.","Use route usage to prioritize the next CI/CD slice before building another dashboard."],"current_manager_surfaces":[{"route":"/now","surface":"ceo_now","role":"manager","use":"one-screen CEO and manager operating packet"},{"route":"/run","surface":"ceo_run","role":"general","use":"daily front door and copy-safe team note"},{"route":"/manager","surface":"manager_cards","role":"manager","use":"short role cards for plant and department managers"},{"route":"/sources","surface":"source_inbox","role":"manager","use":"safe source-lane intake without raw content"},{"route":"/packets","surface":"source_packets","role":"manager","use":"copy-safe packet handoff"},{"route":"/ledger","surface":"action_ledger","role":"manager","use":"private owner-action acknowledgement"},{"route":"/signoff","surface":"source_signoff","role":"manager","use":"human authority gate before KPIs"},{"route":"/authority","surface":"source_authority","role":"manager","use":"publication decision and evidence boundary"},{"route":"/pipeline","surface":"cloud_pipeline","role":"it_data","use":"cloud refresh, CI/CD, and connector health"},{"route":"/analytics","surface":"usage_analytics","role":"it_data","use":"weekly route usage and page pruning"}],"cheap_learning_loop":["/api/ceo/status","/api/today/status","/api/analytics-config","/api/agent-run/status","Read status endpoints before browser or desktop work.","Review only route/surface/role usage weekly after GA4 is connected.","Turn the weekly result into one page-pruning, SOP, training, or CI/CD action.","Keep Dell XPS work limited to visible-window review and human handoff."],"not_for":["factory production evidence","quality claim evidence","customer or supplier identity","Viber, LINE, Gmail, Drive, or OneDrive content","board or plant KPI publication","ERP/iSolution operating record approval"],"raw_content_included":false,"can_publish_kpi":false,"writes_to_operating_record":false},"decision_contract":{"use_for":["Keep manager-used pages prominent and linked from /run and /manager.","Hide, merge, or rewrite confusing low-use pages after a weekly usage window.","Treat low use of a required workflow as an SOP or training gap, not as operator failure.","Use route usage to prioritize the next CI/CD slice before building another dashboard."],"never_use_for":["factory production evidence","quality claim evidence","customer or supplier identity","Viber, LINE, Gmail, Drive, or OneDrive content","board or plant KPI publication","ERP/iSolution operating record approval"],"minimum_review_window_days":7,"weekly_question":"Which YTF role page should be kept, simplified, merged, or hidden based on actual usage?","safe_to_share_with_team":true,"raw_content_included":false,"can_publish_kpi":false,"writes_to_operating_record":false},"cheap_learning_loop":["/api/ceo/status","/api/today/status","/api/analytics-config","/api/agent-run/status","Read status endpoints before browser or desktop work.","Review only route/surface/role usage weekly after GA4 is connected.","Turn the weekly result into one page-pruning, SOP, training, or CI/CD action.","Keep Dell XPS work limited to visible-window review and human handoff."],"current_manager_surfaces":[{"route":"/now","surface":"ceo_now","role":"manager","use":"one-screen CEO and manager operating packet"},{"route":"/run","surface":"ceo_run","role":"general","use":"daily front door and copy-safe team note"},{"route":"/manager","surface":"manager_cards","role":"manager","use":"short role cards for plant and department managers"},{"route":"/sources","surface":"source_inbox","role":"manager","use":"safe source-lane intake without raw content"},{"route":"/packets","surface":"source_packets","role":"manager","use":"copy-safe packet handoff"},{"route":"/ledger","surface":"action_ledger","role":"manager","use":"private owner-action acknowledgement"},{"route":"/signoff","surface":"source_signoff","role":"manager","use":"human authority gate before KPIs"},{"route":"/authority","surface":"source_authority","role":"manager","use":"publication decision and evidence boundary"},{"route":"/pipeline","surface":"cloud_pipeline","role":"it_data","use":"cloud refresh, CI/CD, and connector health"},{"route":"/analytics","surface":"usage_analytics","role":"it_data","use":"weekly route usage and page pruning"}],"raw_content_included":false,"can_publish_kpi":false,"writes_to_operating_record":false}