[{"data":1,"prerenderedAt":496},["ShallowReactive",2],{"navigation_docs":3,"-concepts-sessions":233,"-concepts-sessions-surround":491},[4,36,67,122,187,207,223],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":35},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20,25,30],{"title":11,"path":12,"stem":13,"icon":14},"What is Rabolic","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-book-open",{"title":16,"path":17,"stem":18,"icon":19},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F2.quickstart","i-lucide-zap",{"title":21,"path":22,"stem":23,"icon":24},"Keys","\u002Fgetting-started\u002Fkeys","1.getting-started\u002F3.keys","i-lucide-key-round",{"title":26,"path":27,"stem":28,"icon":29},"Setup CLI","\u002Fgetting-started\u002Fsetup-cli","1.getting-started\u002F4.setup-cli","i-lucide-terminal",{"title":31,"path":32,"stem":33,"icon":34},"Trial","\u002Fgetting-started\u002Ftrial","1.getting-started\u002F5.trial","i-lucide-hourglass",false,{"title":37,"icon":38,"path":39,"stem":40,"children":41,"page":35},"SDKs and API","i-lucide-code","\u002Fsdks","2.sdks",[42,47,52,57,62],{"title":43,"path":44,"stem":45,"icon":46},"Web","\u002Fsdks\u002Fweb","2.sdks\u002F1.web","i-lucide-globe",{"title":48,"path":49,"stem":50,"icon":51},"React Native and Expo","\u002Fsdks\u002Freact-native","2.sdks\u002F2.react-native","i-simple-icons-react",{"title":53,"path":54,"stem":55,"icon":56},"Flutter","\u002Fsdks\u002Fflutter","2.sdks\u002F3.flutter","i-simple-icons-flutter",{"title":58,"path":59,"stem":60,"icon":61},"Node.js","\u002Fsdks\u002Fnode","2.sdks\u002F4.node","i-simple-icons-nodedotjs",{"title":63,"path":64,"stem":65,"icon":66},"Ingest HTTP API","\u002Fsdks\u002Fhttp-api","2.sdks\u002F5.http-api","i-lucide-send",{"title":68,"icon":69,"path":70,"stem":71,"children":72,"page":35},"Concepts","i-lucide-lightbulb","\u002Fconcepts","3.concepts",[73,77,82,87,92,97,102,107,112,117],{"title":74,"path":75,"stem":76,"icon":19},"Events","\u002Fconcepts\u002Fevents","3.concepts\u002F01.events",{"title":78,"path":79,"stem":80,"icon":81},"Identity","\u002Fconcepts\u002Fidentity","3.concepts\u002F02.identity","i-lucide-fingerprint",{"title":83,"path":84,"stem":85,"icon":86},"Sessions","\u002Fconcepts\u002Fsessions","3.concepts\u002F03.sessions","i-lucide-activity",{"title":88,"path":89,"stem":90,"icon":91},"Key events and conversions","\u002Fconcepts\u002Fkey-events-and-conversions","3.concepts\u002F04.key-events-and-conversions","i-lucide-star",{"title":93,"path":94,"stem":95,"icon":96},"Funnels","\u002Fconcepts\u002Ffunnels","3.concepts\u002F05.funnels","i-lucide-filter",{"title":98,"path":99,"stem":100,"icon":101},"Journeys","\u002Fconcepts\u002Fjourneys","3.concepts\u002F06.journeys","i-lucide-route",{"title":103,"path":104,"stem":105,"icon":106},"Retention","\u002Fconcepts\u002Fretention","3.concepts\u002F07.retention","i-lucide-repeat",{"title":108,"path":109,"stem":110,"icon":111},"Revenue and attribution","\u002Fconcepts\u002Frevenue-and-attribution","3.concepts\u002F08.revenue-and-attribution","i-lucide-wallet",{"title":113,"path":114,"stem":115,"icon":116},"Consent and privacy","\u002Fconcepts\u002Fprivacy","3.concepts\u002F09.privacy","i-lucide-shield-check",{"title":118,"path":119,"stem":120,"icon":121},"Data retention","\u002Fconcepts\u002Fdata-retention","3.concepts\u002F10.data-retention","i-lucide-archive",{"title":123,"icon":124,"path":125,"stem":126,"children":127,"page":35},"Using the dashboard","i-lucide-layout-dashboard","\u002Fdashboard","4.dashboard",[128,133,138,143,146,151,154,157,160,163,167,172,177,182],{"title":129,"path":130,"stem":131,"icon":132},"Overview","\u002Fdashboard\u002Foverview","4.dashboard\u002F01.overview","i-lucide-gauge",{"title":134,"path":135,"stem":136,"icon":137},"Live","\u002Fdashboard\u002Flive","4.dashboard\u002F02.live","i-lucide-radio",{"title":139,"path":140,"stem":141,"icon":142},"Analytics","\u002Fdashboard\u002Fanalytics","4.dashboard\u002F03.analytics","i-lucide-bar-chart-3",{"title":74,"path":144,"stem":145,"icon":19},"\u002Fdashboard\u002Fevents","4.dashboard\u002F04.events",{"title":147,"path":148,"stem":149,"icon":150},"Users","\u002Fdashboard\u002Fusers","4.dashboard\u002F05.users","i-lucide-users",{"title":83,"path":152,"stem":153,"icon":86},"\u002Fdashboard\u002Fsessions","4.dashboard\u002F06.sessions",{"title":93,"path":155,"stem":156,"icon":96},"\u002Fdashboard\u002Ffunnels","4.dashboard\u002F07.funnels",{"title":98,"path":158,"stem":159,"icon":101},"\u002Fdashboard\u002Fjourneys","4.dashboard\u002F08.journeys",{"title":103,"path":161,"stem":162,"icon":106},"\u002Fdashboard\u002Fretention","4.dashboard\u002F09.retention",{"title":164,"path":165,"stem":166,"icon":111},"Revenue","\u002Fdashboard\u002Frevenue","4.dashboard\u002F10.revenue",{"title":168,"path":169,"stem":170,"icon":171},"Alerts","\u002Fdashboard\u002Falerts","4.dashboard\u002F11.alerts","i-lucide-bell",{"title":173,"path":174,"stem":175,"icon":176},"Integrations","\u002Fdashboard\u002Fintegrations","4.dashboard\u002F12.integrations","i-lucide-plug-zap",{"title":178,"path":179,"stem":180,"icon":181},"Project settings","\u002Fdashboard\u002Fproject-settings","4.dashboard\u002F13.project-settings","i-lucide-settings",{"title":183,"path":184,"stem":185,"icon":186},"Organizations and roles","\u002Fdashboard\u002Forganizations-and-roles","4.dashboard\u002F14.organizations-and-roles","i-lucide-building-2",{"title":188,"icon":189,"path":190,"stem":191,"children":192,"page":35},"Plans and billing","i-lucide-credit-card","\u002Fbilling","5.billing",[193,198,202],{"title":194,"path":195,"stem":196,"icon":197},"Plans","\u002Fbilling\u002Fplans","5.billing\u002F1.plans","i-lucide-tags",{"title":199,"path":200,"stem":201,"icon":132},"Usage and overage","\u002Fbilling\u002Fusage-and-overage","5.billing\u002F2.usage-and-overage",{"title":203,"path":204,"stem":205,"icon":206},"Read-only and deletion","\u002Fbilling\u002Fread-only-and-deletion","5.billing\u002F3.read-only-and-deletion","i-lucide-lock",{"title":208,"icon":209,"path":210,"stem":211,"children":212,"page":35},"Limits and troubleshooting","i-lucide-life-buoy","\u002Flimits","6.limits",[213,218],{"title":214,"path":215,"stem":216,"icon":217},"Limits","\u002Flimits\u002Flimits","6.limits\u002F1.limits","i-lucide-ruler",{"title":219,"path":220,"stem":221,"icon":222},"Events not showing","\u002Flimits\u002Ftroubleshooting","6.limits\u002F2.troubleshooting","i-lucide-search-check",{"title":224,"icon":225,"path":226,"stem":227,"children":228,"page":35},"AI connector","i-lucide-sparkles","\u002Fai","7.ai",[229],{"title":224,"path":230,"stem":231,"icon":232},"\u002Fai\u002Fconnector","7.ai\u002F1.connector","i-lucide-plug",{"id":234,"title":83,"body":235,"description":482,"extension":483,"links":484,"meta":485,"navigation":486,"path":84,"seo":487,"stem":85,"__hash__":490},"docs\u002F3.concepts\u002F03.sessions.md",{"type":236,"value":237,"toc":472},"minimark",[238,242,247,311,342,346,353,367,370,374,382,386,433,436,440,459,463,466],[239,240,241],"p",{},"A session is one visit to your website or one stretch of use of your app. The SDK creates the session id, so it knows about tabs, the app going to the background and the app's lifecycle.",[243,244,246],"h2",{"id":245},"when-a-session-starts","When a session starts",[248,249,250,263],"table",{},[251,252,253],"thead",{},[254,255,256,260],"tr",{},[257,258,259],"th",{},"Platform",[257,261,262],{},"A new session starts",[264,265,266,292,300],"tbody",{},[254,267,268,271],{},[269,270,43],"td",{},[269,272,273,274,278,279,278,282,278,285,278,288,291],{},"After 30 minutes without an event. Also when a page loads with campaign parameters (",[275,276,277],"code",{},"utm_*",", ",[275,280,281],{},"gclid",[275,283,284],{},"fbclid",[275,286,287],{},"ttclid",[275,289,290],{},"msclkid",") that differ from the current session's",[254,293,294,297],{},[269,295,296],{},"iOS and Android",[269,298,299],{},"At launch, and on return to the foreground after more than 30 seconds in the background",[254,301,302,305],{},[269,303,304],{},"Every platform",[269,306,307,308],{},"On ",[275,309,310],{},"reset()",[312,313,314,326,336],"ul",{},[315,316,317,321,322,325],"li",{},[318,319,320],"strong",{},"Tabs share a session"," on the web. The session id and last activity live in ",[275,323,324],{},"localStorage",".",[315,327,328,331,332,335],{},[318,329,330],{},"Each device has its own sessions."," They all belong to the same person once ",[275,333,334],{},"identify()"," links the devices.",[315,337,338,341],{},[318,339,340],{},"A session that crosses midnight"," or the end of a month is still one session.",[243,343,345],{"id":344},"changing-the-timeouts","Changing the timeouts",[239,347,348,349,352],{},"In ",[318,350,351],{},"Project settings → Project → Sessions",":",[312,354,355,361],{},[315,356,357,360],{},[318,358,359],{},"Web inactivity timeout:"," 15, 30, 60 or 120 minutes.",[315,362,363,366],{},[318,364,365],{},"Mobile background timeout:"," 10 seconds, 30 seconds, 2 minutes or 5 minutes.",[239,368,369],{},"The SDKs read the timeouts from the project's remote config, which they cache for up to 5 minutes.",[243,371,373],{"id":372},"server-events-and-the-http-api","Server events and the HTTP API",[312,375,376,379],{},[315,377,378],{},"Events sent with a publishable key but without a session id get one from Rabolic, with the web timeout.",[315,380,381],{},"Events from your server with a secret key aren't part of a session.",[243,383,385],{"id":384},"active-time","Active time",[248,387,388,400],{},[251,389,390],{},[254,391,392,394,397],{},[257,393,259],{},[257,395,396],{},"Measured from",[257,398,399],{},"Sent on",[264,401,402,418],{},[254,403,404,406,409],{},[269,405,43],{},[269,407,408],{},"Time the page was visible and interacted with in the last 30 s",[269,410,411,414,415],{},[275,412,413],{},"$page_leave",", as ",[275,416,417],{},"active_ms",[254,419,420,422,425],{},[269,421,296],{},[269,423,424],{},"Time in the foreground",[269,426,427,414,430],{},[275,428,429],{},"$app_background",[275,431,432],{},"foreground_ms",[239,434,435],{},"Time in the background never counts.",[243,437,439],{"id":438},"conversions-and-revenue-in-a-session","Conversions and revenue in a session",[312,441,442,452],{},[315,443,444,445,448,449,325],{},"A session is ",[318,446,447],{},"converted"," when it contains one of the project's conversion events. This is worked out when the report runs, so changing your conversions changes past sessions consistently. See ",[450,451,88],"a",{"href":89},[315,453,454,455,458],{},"A session's ",[318,456,457],{},"revenue"," is the verified purchases the same person made from the start of the session until 30 minutes after its last event. A payment your server confirms a moment later still counts.",[243,460,462],{"id":461},"what-a-session-isnt","What a session isn't",[239,464,465],{},"Rabolic records the events your site and apps send, not the screen. There is no session replay, no heatmap and no click map.",[239,467,468,469,325],{},"See ",[450,470,471],{"href":152},"Sessions in the dashboard",{"title":473,"searchDepth":474,"depth":474,"links":475},"",2,[476,477,478,479,480,481],{"id":245,"depth":474,"text":246},{"id":344,"depth":474,"text":345},{"id":372,"depth":474,"text":373},{"id":384,"depth":474,"text":385},{"id":438,"depth":474,"text":439},{"id":461,"depth":474,"text":462},"How Rabolic starts and ends sessions on the web (30 minutes without events) and in apps (30 seconds in the background), active time, conversions and revenue in a session.","md",null,{},{"icon":86},{"title":488,"description":489},"Sessions on web and mobile","How Rabolic starts and ends sessions on the web (30 minutes without events, new campaign) and in iOS and Android apps (30 seconds in the background), active time, converted sessions and revenue.","05FA-nag5fu7iVRI-xohhb0RyJ0CyrvvEyOJThLwxsE",[492,494],{"title":78,"path":79,"stem":80,"description":493,"icon":81,"children":-1},"How Rabolic links browsers, app installs and server events to one person with identify(), when people are merged, what reset() does, and what doesn't link people yet.",{"title":88,"path":89,"stem":90,"description":495,"icon":91,"children":-1},"Mark the events that matter as key events, and choose the conversions that count as success. How they shape Overview, sessions, journeys, retention and funnels in Rabolic.",1794242364670]