[{"data":1,"prerenderedAt":531},["ShallowReactive",2],{"navigation_docs":3,"-api-hooks-pageview":90,"-api-hooks-pageview-surround":528},[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":87,"body":92,"description":521,"extension":522,"links":523,"meta":524,"navigation":525,"path":88,"seo":526,"stem":89,"__hash__":527},"docs\u002F3.api\u002F4.hooks\u002F1.pageview.md",{"type":93,"value":94,"toc":510},"minimark",[95,107,112,210,245,258,262,306,313,324,328,332,338,347,429,436,440,453,457,463,466,470,476,480,483,506],[96,97,98,101,102,106],"p",{},[99,100,87],"code",{}," is called before an automatic router pageview is sent. See ",[103,104,34],"a",{"href":105},"\u002Fintegration\u002Fpageviews#enriching-pageviews"," for usage examples.",[108,109,111],"h2",{"id":110},"type","Type",[113,114,120],"pre",{"className":115,"code":116,"filename":117,"language":118,"meta":119,"style":119},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","interface RuntimeNuxtHooks {\n  'mixpanel:pageview': (\n    context: MixpanelPageviewContext\u003CRouteLocationNormalized>\n  ) => void | Promise\u003Cvoid>\n}\n","Signature","ts","",[99,121,122,139,158,179,204],{"__ignoreMap":119},[123,124,127,131,135],"span",{"class":125,"line":126},"line",1,[123,128,130],{"class":129},"spNyl","interface",[123,132,134],{"class":133},"sBMFI"," RuntimeNuxtHooks",[123,136,138],{"class":137},"sMK4o"," {\n",[123,140,142,145,148,151,154],{"class":125,"line":141},2,[123,143,144],{"class":137},"  '",[123,146,87],{"class":147},"sfazB",[123,149,150],{"class":137},"'",[123,152,153],{"class":137},":",[123,155,157],{"class":156},"sTEyZ"," (\n",[123,159,161,165,167,170,173,176],{"class":125,"line":160},3,[123,162,164],{"class":163},"sHdIc","    context",[123,166,153],{"class":137},[123,168,169],{"class":133}," MixpanelPageviewContext",[123,171,172],{"class":137},"\u003C",[123,174,175],{"class":133},"RouteLocationNormalized",[123,177,178],{"class":137},">\n",[123,180,182,185,188,191,194,197,199,202],{"class":125,"line":181},4,[123,183,184],{"class":156},"  ) ",[123,186,187],{"class":129},"=>",[123,189,190],{"class":133}," void",[123,192,193],{"class":137}," |",[123,195,196],{"class":133}," Promise",[123,198,172],{"class":137},[123,200,201],{"class":133},"void",[123,203,178],{"class":137},[123,205,207],{"class":125,"line":206},5,[123,208,209],{"class":137},"}\n",[113,211,214],{"className":115,"code":212,"filename":213,"language":118,"meta":119,"style":119},"import type { MixpanelPageviewContext } from 'mixpanel-nuxt\u002Fconfig'\n","Type import",[99,215,216],{"__ignoreMap":119},[123,217,218,222,225,228,230,233,236,239,242],{"class":125,"line":126},[123,219,221],{"class":220},"s7zQu","import",[123,223,224],{"class":220}," type",[123,226,227],{"class":137}," {",[123,229,169],{"class":156},[123,231,232],{"class":137}," }",[123,234,235],{"class":220}," from",[123,237,238],{"class":137}," '",[123,240,241],{"class":147},"mixpanel-nuxt\u002Fconfig",[123,243,244],{"class":137},"'\n",[96,246,247,250,251,254,255,257],{},[99,248,249],{},"MixpanelPageviewContext\u003CRoute>"," accepts a route type; its default is ",[99,252,253],{},"unknown",". Nuxt automatically supplies ",[99,256,175],{}," in the hook declaration.",[108,259,261],{"id":260},"execution","Execution",[263,264,265,284],"table",{},[266,267,268],"thead",{},[269,270,271,275,278,281],"tr",{},[272,273,274],"th",{},"Hook",[272,276,277],{},"Argument",[272,279,280],{},"Environment",[272,282,283],{},"Pageview strategy",[285,286,287],"tbody",{},[269,288,289,294,299,301],{},[290,291,292],"td",{},[99,293,87],{},[290,295,296],{},[99,297,298],{},"MixpanelPageviewContext\u003CRouteLocationNormalized>",[290,300,26],{},[290,302,303],{},[99,304,305],{},"'router'",[96,307,308,309,312],{},"The hook runs for navigations selected by the tracking mode, page meta and autocapture URL filters. Excluded pages, cancelled navigations and URL changes outside the selected mode do not invoke it. Manual calls to ",[99,310,311],{},"track_pageview()"," do not invoke it either.",[96,314,315,316,319,320,323],{},"Handlers run in parallel while the page renders. The pageview waits for all handlers, page rendering, head updates and transitions. It is omitted if ",[99,317,318],{},"context.skip"," is ",[99,321,322],{},"true"," after the handlers finish.",[325,326,327],"note",{},"The hook can be registered in a client or universal Nuxt plugin, but is not invoked during SSR. A server-only plugin does not register the handler in the browser.",[108,329,331],{"id":330},"parameters","Parameters",[333,334,336],"h3",{"id":335},"context",[99,337,335],{},[96,339,340,344,345],{},[341,342,343],"strong",{},"Type:"," ",[99,346,298],{},[263,348,349,361],{},[266,350,351],{},[269,352,353,356,358],{},[272,354,355],{},"Property",[272,357,111],{},[272,359,360],{},"Description",[285,362,363,377,392,414],{},[269,364,365,370,374],{},[290,366,367],{},[99,368,369],{},"route",[290,371,372],{},[99,373,175],{},[290,375,376],{},"Destination route; read-only.",[269,378,379,384,389],{},[290,380,381],{},[99,382,383],{},"properties",[290,385,386],{},[99,387,388],{},"Record\u003Cstring, unknown>",[290,390,391],{},"Mutable properties sent with the pageview.",[269,393,394,399,404],{},[290,395,396],{},[99,397,398],{},"skip",[290,400,401],{},[99,402,403],{},"boolean",[290,405,406,407,409,410,413],{},"Omit the event when ",[99,408,322],{},"; initially ",[99,411,412],{},"false",".",[269,415,416,421,426],{},[290,417,418],{},[99,419,420],{},"signal",[290,422,423],{},[99,424,425],{},"AbortSignal",[290,427,428],{},"Aborted when a new navigation replaces this one; read-only.",[96,430,431,432,435],{},"The initial properties contain ",[99,433,434],{},"$mp_autocapture: true",", the route name when present, and properties from page meta.",[108,437,439],{"id":438},"return-value","Return value",[96,441,442,443,445,446,449,450,452],{},"Handlers return ",[99,444,201],{}," or ",[99,447,448],{},"Promise\u003Cvoid>",". Event changes are made through ",[99,451,335],{},"; resolved values do not supply event properties.",[108,454,456],{"id":455},"cancellation","Cancellation",[96,458,459,460,462],{},"A new navigation aborts the previous context's ",[99,461,420],{}," and drops its pending pageview.",[96,464,465],{},"A handler that never settles keeps the pageview pending until another navigation replaces it.",[108,467,469],{"id":468},"errors","Errors",[96,471,472,473,475],{},"If a handler throws, the module logs the error and resets the properties to their pre-hook values. The pageview is still sent unless ",[99,474,398],{}," is set.",[108,477,479],{"id":478},"property-precedence","Property precedence",[96,481,482],{},"Later sources replace earlier properties with the same key:",[484,485,486,490,495,500,503],"ol",{},[487,488,489],"li",{},"SDK page properties.",[487,491,492,413],{},[99,493,494],{},"$mp_autocapture",[487,496,497,413],{},[99,498,499],{},"route_name",[487,501,502],{},"Page meta, merged from parent to child.",[487,504,505],{},"Hook properties.",[507,508,509],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}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);}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}",{"title":119,"searchDepth":141,"depth":141,"links":511},[512,513,514,517,518,519,520],{"id":110,"depth":141,"text":111},{"id":260,"depth":141,"text":261},{"id":330,"depth":141,"text":331,"children":515},[516],{"id":335,"depth":160,"text":335},{"id":438,"depth":141,"text":439},{"id":455,"depth":141,"text":456},{"id":468,"depth":141,"text":469},{"id":478,"depth":141,"text":479},"Context and lifecycle of the automatic router pageview hook.","md",null,{},true,{"title":87,"description":521},"5Hkzre8hBu0etakDtVr40U7wPGUq0606KOCb_5KwXNI",[529,523],{"title":77,"path":78,"stem":79,"description":530,"icon":80,"children":-1},"Configure automatic router pageviews with definePageMeta.",1791420522440]