[{"data":1,"prerenderedAt":654},["ShallowReactive",2],{"navigation_docs":3,"-api-options":90,"-api-options-surround":649},[4,19,37],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":18},"Get Started","i-lucide-rocket","\u002Fget-started","1.get-started",[10,14],{"title":11,"path":12,"stem":13},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F1.installation",{"title":15,"path":16,"stem":17},"Configuration","\u002Fget-started\u002Fconfiguration","1.get-started\u002F2.configuration",false,{"title":20,"icon":21,"path":22,"stem":23,"children":24,"page":18},"Integration","i-lucide-plug","\u002Fintegration","2.integration",[25,29,33],{"title":26,"path":27,"stem":28},"Browser","\u002Fintegration\u002Fbrowser","2.integration\u002F1.browser",{"title":30,"path":31,"stem":32},"Nitro","\u002Fintegration\u002Fnitro","2.integration\u002F2.nitro",{"title":34,"path":35,"stem":36},"Pageviews","\u002Fintegration\u002Fpageviews","2.integration\u002F3.pageviews",{"title":38,"icon":39,"path":40,"stem":41,"children":42,"page":18},"API","i-lucide-code-xml","\u002Fapi","3.api",[43,48,62,76,81],{"title":44,"path":45,"stem":46,"icon":47},"Module options","\u002Fapi\u002Foptions","3.api\u002F0.options","i-lucide-sliders-horizontal",{"title":49,"icon":50,"path":51,"stem":52,"children":53,"page":18},"Composables","i-lucide-arrow-left-right","\u002Fapi\u002Fcomposables","3.api\u002F1.composables",[54,58],{"title":55,"path":56,"stem":57},"useMixpanel","\u002Fapi\u002Fcomposables\u002Fuse-mixpanel","3.api\u002F1.composables\u002F1.use-mixpanel",{"title":59,"path":60,"stem":61},"useMixpanelServer","\u002Fapi\u002Fcomposables\u002Fuse-mixpanel-server","3.api\u002F1.composables\u002F2.use-mixpanel-server",{"title":63,"icon":64,"path":65,"stem":66,"children":67,"page":18},"Configuration helpers","i-lucide-square-function","\u002Fapi\u002Futils","3.api\u002F2.utils",[68,72],{"title":69,"path":70,"stem":71},"defineMixpanelClientConfig","\u002Fapi\u002Futils\u002Fdefine-mixpanel-client-config","3.api\u002F2.utils\u002F1.define-mixpanel-client-config",{"title":73,"path":74,"stem":75},"defineMixpanelServerConfig","\u002Fapi\u002Futils\u002Fdefine-mixpanel-server-config","3.api\u002F2.utils\u002F2.define-mixpanel-server-config",{"title":77,"path":78,"stem":79,"icon":80},"Page meta","\u002Fapi\u002Fpage-meta","3.api\u002F3.page-meta","i-lucide-file-cog",{"title":82,"icon":21,"path":83,"stem":84,"children":85,"page":18},"Hooks","\u002Fapi\u002Fhooks","3.api\u002F4.hooks",[86],{"title":87,"path":88,"stem":89},"mixpanel:pageview","\u002Fapi\u002Fhooks\u002Fpageview","3.api\u002F4.hooks\u002F1.pageview",{"id":91,"title":44,"body":92,"description":642,"extension":643,"links":644,"meta":645,"navigation":646,"path":45,"seo":647,"stem":46,"__hash__":648},"docs\u002F3.api\u002F0.options.md",{"type":93,"value":94,"toc":622},"minimark",[95,112,117,124,134,142,158,164,171,178,181,187,194,201,219,224,232,238,243,251,258,264,270,276,281,288,291,295,301,307,313,320,326,332,338,341,347,352,358,368,373,379,385,389,394,396,400,411,422,425,429,432,535,545,549,601,618],[96,97,98,99,103,104,107,108,111],"p",{},"Module options live under ",[100,101,102],"code",{},"mixpanel"," in ",[100,105,106],{},"nuxt.config.ts",". See ",[109,110,15],"a",{"href":16}," for setup examples.",[113,114,116],"h2",{"id":115},"client","Client",[118,119,121],"h3",{"id":120},"clientenabled",[100,122,123],{},"client.enabled",[96,125,126,130,131],{},[127,128,129],"strong",{},"Type:"," ",[100,132,133],{},"boolean",[96,135,136,130,139],{},[127,137,138],{},"Default:",[100,140,141],{},"true",[96,143,144,145,148,149,152,153,157],{},"Enable browser tracking. When ",[100,146,147],{},"false",", ",[100,150,151],{},"useMixpanel()"," returns an ",[109,154,156],{"href":155},"\u002Fapi\u002Fcomposables\u002Fuse-mixpanel#inactive-client","inactive client",".",[118,159,161],{"id":160},"clienttoken",[100,162,163],{},"client.token",[96,165,166,130,168],{},[127,167,129],{},[100,169,170],{},"string",[96,172,173,130,175],{},[127,174,138],{},[100,176,177],{},"''",[96,179,180],{},"Project token passed to the browser SDK. The server token is not used as a fallback.",[118,182,184],{"id":183},"clientpageviewstrategy",[100,185,186],{},"client.pageviewStrategy",[96,188,189,130,191],{},[127,190,129],{},[100,192,193],{},"'router' | 'native'",[96,195,196,130,198],{},[127,197,138],{},[100,199,200],{},"'router'",[96,202,203,204,206,207,210,211,214,215,218],{},"Selects the Nuxt Router integration (",[100,205,200],{},") or Mixpanel native tracking (",[100,208,209],{},"'native'",") for automatic pageviews. Both strategies use ",[100,212,213],{},"client.config.track_pageview"," or ",[100,216,217],{},"client.config.autocapture.pageview"," to enable tracking and select which URL changes to record.",[96,220,221,222,157],{},"An invalid build-time value throws. An invalid runtime value logs a warning and falls back to ",[100,223,200],{},[96,225,226,227,231],{},"See ",[109,228,230],{"href":229},"\u002Fintegration\u002Fpageviews#pageview-strategy","Pageview strategy"," for the differences between strategies.",[118,233,235],{"id":234},"clientconfig",[100,236,237],{},"client.config",[96,239,240,242],{},[127,241,129],{}," JSON-compatible browser SDK options",[96,244,245,130,247,250],{},[127,246,138],{},[100,248,249],{},"{}"," when no configuration file is used",[96,252,253,254,157],{},"Options passed to browser initialization. Inline values follow the ",[109,255,257],{"href":256},"#configuration-sources","serialization rules",[96,259,260,261,263],{},"Use ",[109,262,69],{"href":70}," in a configuration file for callbacks and regular expressions.",[118,265,267],{"id":266},"clientconfigfile",[100,268,269],{},"client.configFile",[96,271,272,130,274],{},[127,273,129],{},[100,275,170],{},[96,277,278,280],{},[127,279,138],{}," Unset",[96,282,283,284,287],{},"Path to an SDK configuration file, relative to the Nuxt project root. When omitted, the module discovers ",[100,285,286],{},"mixpanel.client.config.ts"," in that root.",[96,289,290],{},"An explicit path must point to an existing file. Paths are resolved at build time and have no runtime override.",[113,292,294],{"id":293},"server","Server",[118,296,298],{"id":297},"serverenabled",[100,299,300],{},"server.enabled",[96,302,303,130,305],{},[127,304,129],{},[100,306,133],{},[96,308,309,130,311],{},[127,310,138],{},[100,312,141],{},[96,314,315,316,319],{},"Allow access to the Node SDK. Calling ",[100,317,318],{},"useMixpanelServer()"," while disabled throws.",[118,321,323],{"id":322},"servertoken",[100,324,325],{},"server.token",[96,327,328,130,330],{},[127,329,129],{},[100,331,170],{},[96,333,334,130,336],{},[127,335,138],{},[100,337,177],{},[96,339,340],{},"Project token passed to the Node SDK. The browser token is not used as a fallback.",[118,342,344],{"id":343},"serverconfig",[100,345,346],{},"server.config",[96,348,349,351],{},[127,350,129],{}," JSON-compatible Node SDK options",[96,353,354,130,356,250],{},[127,355,138],{},[100,357,249],{},[96,359,360,361,364,365,157],{},"Options passed to server initialization. The inline type excludes ",[100,362,363],{},"credentials"," and ",[100,366,367],{},"logger",[96,369,260,370,372],{},[109,371,73],{"href":74}," in a configuration file for those options.",[118,374,376],{"id":375},"serverconfigfile",[100,377,378],{},"server.configFile",[96,380,381,130,383],{},[127,382,129],{},[100,384,170],{},[96,386,387,280],{},[127,388,138],{},[96,390,283,391,287],{},[100,392,393],{},"mixpanel.server.config.ts",[96,395,290],{},[113,397,399],{"id":398},"configuration-sources","Configuration sources",[96,401,402,403,406,407,410],{},"For each client, choose inline ",[100,404,405],{},"config"," or a configuration file. Combining both throws, including automatically discovered files and inline ",[100,408,409],{},"runtimeConfig"," options.",[96,412,413,414,417,418,421],{},"Inline configuration accepts strings, finite numbers, booleans, ",[100,415,416],{},"null",", arrays and plain objects containing those values. Functions, regular expressions, ",[100,419,420],{},"undefined"," properties, circular references, symbols and accessor properties fail validation.",[96,423,424],{},"A configuration file must default-export a plain object. Factories, arrays and class instances are not accepted. Browser configuration files are loaded only when browser tracking is active.",[113,426,428],{"id":427},"runtime-config","Runtime config",[96,430,431],{},"Explicit runtime config values take precedence over module defaults. The module declares these runtime keys:",[433,434,435,451],"table",{},[436,437,438],"thead",{},[439,440,441,445,448],"tr",{},[442,443,444],"th",{},"Module option",[442,446,447],{},"Runtime config key",[442,449,450],{},"Environment variable",[452,453,454,471,487,503,519],"tbody",{},[439,455,456,461,466],{},[457,458,459],"td",{},[100,460,123],{},[457,462,463],{},[100,464,465],{},"public.mixpanel.client.enabled",[457,467,468],{},[100,469,470],{},"NUXT_PUBLIC_MIXPANEL_CLIENT_ENABLED",[439,472,473,477,482],{},[457,474,475],{},[100,476,163],{},[457,478,479],{},[100,480,481],{},"public.mixpanel.client.token",[457,483,484],{},[100,485,486],{},"NUXT_PUBLIC_MIXPANEL_CLIENT_TOKEN",[439,488,489,493,498],{},[457,490,491],{},[100,492,186],{},[457,494,495],{},[100,496,497],{},"public.mixpanel.client.pageviewStrategy",[457,499,500],{},[100,501,502],{},"NUXT_PUBLIC_MIXPANEL_CLIENT_PAGEVIEW_STRATEGY",[439,504,505,509,514],{},[457,506,507],{},[100,508,300],{},[457,510,511],{},[100,512,513],{},"mixpanel.server.enabled",[457,515,516],{},[100,517,518],{},"NUXT_MIXPANEL_SERVER_ENABLED",[439,520,521,525,530],{},[457,522,523],{},[100,524,325],{},[457,526,527],{},[100,528,529],{},"mixpanel.server.token",[457,531,532],{},[100,533,534],{},"NUXT_MIXPANEL_SERVER_TOKEN",[96,536,537,538,364,541,544],{},"Inline SDK options use ",[100,539,540],{},"public.mixpanel.client.config",[100,542,543],{},"mixpanel.server.config",". Client runtime keys are public; server keys remain private.",[113,546,548],{"id":547},"type","Type",[550,551,557],"pre",{"className":552,"code":553,"filename":554,"language":555,"meta":556,"style":556},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import type { ModuleOptions, PageviewStrategy } from 'mixpanel-nuxt\u002Fconfig'\n","Type import","ts","",[100,558,559],{"__ignoreMap":556},[560,561,564,568,571,575,579,582,585,588,591,594,598],"span",{"class":562,"line":563},"line",1,[560,565,567],{"class":566},"s7zQu","import",[560,569,570],{"class":566}," type",[560,572,574],{"class":573},"sMK4o"," {",[560,576,578],{"class":577},"sTEyZ"," ModuleOptions",[560,580,581],{"class":573},",",[560,583,584],{"class":577}," PageviewStrategy",[560,586,587],{"class":573}," }",[560,589,590],{"class":566}," from",[560,592,593],{"class":573}," '",[560,595,597],{"class":596},"sfazB","mixpanel-nuxt\u002Fconfig",[560,599,600],{"class":573},"'\n",[96,602,603,606,607,364,609,611,612,615,616,157],{},[100,604,605],{},"ModuleOptions"," describes the ",[100,608,115],{},[100,610,293],{}," sections. ",[100,613,614],{},"PageviewStrategy"," is ",[100,617,193],{},[619,620,621],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":556,"searchDepth":623,"depth":623,"links":624},2,[625,633,639,640,641],{"id":115,"depth":623,"text":116,"children":626},[627,629,630,631,632],{"id":120,"depth":628,"text":123},3,{"id":160,"depth":628,"text":163},{"id":183,"depth":628,"text":186},{"id":234,"depth":628,"text":237},{"id":266,"depth":628,"text":269},{"id":293,"depth":623,"text":294,"children":634},[635,636,637,638],{"id":297,"depth":628,"text":300},{"id":322,"depth":628,"text":325},{"id":343,"depth":628,"text":346},{"id":375,"depth":628,"text":378},{"id":398,"depth":623,"text":399},{"id":427,"depth":623,"text":428},{"id":547,"depth":623,"text":548},"Types, defaults and runtime keys for the mixpanel configuration.","md",null,{},{"icon":47},{"title":44,"description":642},"3mBb1EIjnc8C_ZscyOD8A0wu-XDxYvjdDVu2IFNh_L4",[650,652],{"title":34,"path":35,"stem":36,"description":651,"children":-1},"Configure automatic Vue Router pageviews, page metadata and runtime hooks.",{"title":55,"path":56,"stem":57,"description":653,"children":-1},"Access the Mixpanel browser client from the Nuxt app.",1791420521987]