[{"data":1,"prerenderedAt":900},["ShallowReactive",2],{"docs-pages-en":3,"doc-en-analytics":339},[4,9,15,20,25,30,35,41,52,60,69,77,84,92,96,105,109,117,122,127,132,138,143,148,153,158,163,168,174,179,184,189,194,200,205,210,215,220,225,230,235,240,245,250,255,260,265,270,275,280,285,291,296,300,304,309,314,319,324,329,334],{"path":5,"title":6,"description":7,"order":8,"group":8,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fpermissions","Who can do what","[object Object]",null,{"path":10,"title":11,"description":12,"order":13,"group":14,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Finstallation","Installation","Install CloseYourIt on your own server with one command.",1,"start",{"path":16,"title":17,"description":18,"order":19,"group":14,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fsettings","Settings","Every setting in the .env file, what it does and which ones you must never change.",2,{"path":21,"title":22,"description":23,"order":24,"group":14,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fdatabase","Database","What the database is, what is inside, how long data stays and how much room it takes.",3,{"path":26,"title":27,"description":28,"order":29,"group":14,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fupdates-and-backups","Updates and backups","Update to a new version, back up and restore the database, check the install.",4,{"path":31,"title":32,"description":33,"order":34,"group":14,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Ftroubleshooting","Troubleshooting","What to check when the install, the certificate, email or incoming data do not work.",5,{"path":36,"title":37,"description":38,"order":39,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fconnect-your-apps","Connect your apps","Every tool that sends data to CloseYourIt, and what each one collects.",6,"connect",{"path":42,"title":43,"description":44,"order":45,"group":8,"parent":46,"package":47,"note":48,"collects":49,"status":8},"\u002Fdocs\u002Fsdk-ruby","Ruby \u002F Rails","The closeyourit-ruby gem sends errors, logs, slow queries and job metrics from a Rails app.",7,"connect-your-apps","closeyourit-ruby","Errors, logs, slow queries and methods, background jobs.",{"errors":50,"logs":50,"performance":50,"visits":51,"servers":51},"full","none",{"path":53,"title":54,"description":55,"order":56,"group":8,"parent":46,"package":57,"note":58,"collects":59,"status":8},"\u002Fdocs\u002Fsdk-javascript","JavaScript","The @bussolabs\u002Fcloseyourit-js package works in the browser and on Node 20.16 or newer.",8,"@bussolabs\u002Fcloseyourit-js","Browser and Node, framework adapters and database queries from 0.13.0.",{"errors":50,"logs":50,"performance":50,"visits":50,"servers":51},{"path":61,"title":62,"description":63,"order":64,"group":8,"parent":46,"package":65,"note":66,"collects":67,"status":8},"\u002Fdocs\u002Fsdk-dart","Dart \u002F Flutter","The closeyourit package captures the errors of Flutter apps, even when the phone is offline.",9,"closeyourit","Public errors, logs and metrics from 0.9.3.",{"errors":50,"logs":68,"performance":68,"visits":51,"servers":51},"partial",{"path":70,"title":71,"description":72,"order":73,"group":8,"parent":46,"package":65,"note":74,"collects":75,"status":76},"\u002Fdocs\u002Fsdk-python","Python","The closeyourit package sends errors, logs and metrics from server-side Python applications.",10,"Server side. SQLAlchemy; Django query monitoring and FastAPI\u002FStarlette from 0.4.0.",{"errors":50,"logs":50,"performance":68,"visits":51,"servers":51},"pre_alpha",{"path":78,"title":79,"description":80,"order":81,"group":8,"parent":46,"package":79,"note":82,"collects":83,"status":8},"\u002Fdocs\u002Fsdk-sentry","Sentry SDK","Send errors with a compatible Sentry SDK; sessions and crashes have separate profiles.",11,"Compatible errors; sessions and crashes require a verified profile.",{"errors":50,"logs":51,"performance":51,"visits":51,"servers":51},{"path":85,"title":86,"description":87,"order":88,"group":8,"parent":46,"package":89,"note":90,"collects":91,"status":8},"\u002Fdocs\u002Fagent-server","Server agent","A small program on the server that sends the state of the machine every 60 seconds.",12,"closeyourit-agent","CPU, memory, disks, network, containers and services.",{"errors":51,"logs":68,"performance":51,"visits":51,"servers":50},{"path":93,"title":94,"description":95,"order":88,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fnuxt","Vue and Nuxt","Connect Nuxt browser errors and Nitro server errors without exposing a server token.",{"path":97,"title":98,"description":99,"order":100,"group":8,"parent":46,"package":101,"note":102,"collects":103,"status":104},"\u002Fdocs\u002Fagent-kubernetes","Kubernetes","A read-only observer of the cluster: one copy per cluster.",13,"closeyourit-kube","Machines, apps and error events of the cluster.",{"errors":51,"logs":51,"performance":51,"visits":51,"servers":50},"coming",{"path":106,"title":107,"description":108,"order":100,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fopentelemetry","OpenTelemetry","Send server traces, metrics and logs through the optional OTLP receiver.",{"path":110,"title":111,"description":112,"order":113,"group":8,"parent":46,"package":114,"note":115,"collects":116,"status":8},"\u002Fdocs\u002Fcli","cyi CLI","The closeyourit command, cyi for short: manage projects, errors and tickets from the terminal.",14,"@bussolabs\u002Fcloseyourit-cli","It collects no data: it drives CloseYourIt from the terminal.",{"errors":51,"logs":51,"performance":51,"visits":51,"servers":51},{"path":118,"title":119,"description":120,"order":121,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fhttp-api","HTTP API","Send errors, logs, metrics and page views with plain HTTP requests, without an SDK.",15,{"path":123,"title":124,"description":125,"order":126,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fgithub-app","GitHub","Connect GitHub repositories to tickets and releases with your own GitHub App.",16,{"path":128,"title":129,"description":130,"order":131,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fingest-gateway","Ingest gateway","Keep incoming errors, logs and metrics safe when the app is slow or restarting.",17,{"path":133,"title":134,"description":135,"order":136,"group":137,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fai","AI","Turn on assistant, analysis, dictation and smart search with a CloseYourIt AI key or your own provider.",18,"automation",{"path":139,"title":140,"description":141,"order":142,"group":137,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fautomator","Automator","Let tickets be worked automatically on your own Linux machine, with Claude Code, Codex or both.",19,{"path":144,"title":145,"description":146,"order":147,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fstack-coverage","Frameworks and stack coverage","Choose a published SDK or understand the limits of a locally tested integration.",20,{"path":149,"title":150,"description":151,"order":152,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fmonitoring","Traces, measurements and sessions","Explore the new signals, compare releases and recover original error locations.",21,{"path":154,"title":155,"description":156,"order":157,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fnode-database","Node databases","Monitor slow and repeated queries with pg, mysql2, Drizzle and Prisma PostgreSQL.",22,{"path":159,"title":160,"description":161,"order":162,"group":137,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fclaude-code","Claude Code","CloseYourIt inside Claude Code, in a column next to the conversation with production and your open tickets.",23,{"path":164,"title":165,"description":166,"order":167,"group":40,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fcollected-data","Data the SDKs send","For each SDK, what it sends on its own, what only when you turn it on, and what never leaves your app.",24,{"path":169,"title":170,"description":171,"order":172,"group":173,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Frecipes","Recipes","Four guides from start to finish, each one crossing several parts of CloseYourIt.",25,"recipes",{"path":175,"title":176,"description":177,"order":178,"group":8,"parent":173,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Frecipe-payment-alert","A Telegram alert when a payment fails","Your Rails app writes the failed payment, and the message reaches you in a Telegram chat.",26,{"path":180,"title":181,"description":182,"order":183,"group":8,"parent":173,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Frecipe-error-to-agent","From an error to a ticket worked by an agent","A browser error becomes a ticket, and an agent on your machine proposes the fix for you to approve.",27,{"path":185,"title":186,"description":187,"order":188,"group":8,"parent":173,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Frecipe-status-page","Site checks with a public status page","CloseYourIt checks that your site answers, alerts you when it falls and shows the status to your customers.",28,{"path":190,"title":191,"description":192,"order":193,"group":8,"parent":173,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Frecipe-request-logs","Logs tied to the same request","The messages of your Rails app line up with the error they explain, request by request.",29,{"path":195,"title":196,"description":197,"order":198,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Ftickets","Tickets and ideas","Open and follow tickets on the board, group them into milestones, ask questions and turn voted ideas into work.",30,"use",{"path":201,"title":202,"description":203,"order":204,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Ferrors","Errors","How your apps' errors become single rows, and how to resolve, ignore, merge or turn them into tickets.",31,{"path":206,"title":207,"description":208,"order":209,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fperformance","Performance","Find slow queries and methods, read the problems detected automatically and get an alert when one appears.",32,{"path":211,"title":212,"description":213,"order":214,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Flogs","Logs","Search your apps' messages, follow a request from start to end and link a message to an error or a ticket.",33,{"path":216,"title":217,"description":218,"order":219,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fsecrets","Secrets","Passwords, keys and private files in one place, per project and environment, read by your app without a .env on disk.",34,{"path":221,"title":222,"description":223,"order":224,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fservers","Servers","The state of your machines on one page, with history and alerts when something breaks or fills up.",35,{"path":226,"title":227,"description":228,"order":229,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fuptime","Uptime","Check that your sites answer, keep count of outages and show them to customers on a status page.",36,{"path":231,"title":232,"description":233,"order":234,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fcrons","Scheduled jobs","Notice when a job that should run on its own stops running, or runs and ends badly.",37,{"path":236,"title":237,"description":238,"order":239,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Falerts","Alerts","The rules that create an alert, the notification center and where each person chooses to receive them.",38,{"path":241,"title":242,"description":243,"order":244,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fhelpdesk","Help desk","Visitors of a project's site write to the team with the \"Need help?\" button, and the request lands in the right project.",39,{"path":246,"title":247,"description":248,"order":249,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fanalytics","Site analytics","How many people visit the site, what they look at and where they come from, without cookies.",40,{"path":251,"title":252,"description":253,"order":254,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Freplays","Session replay","Record how people move through the site and watch it back like a video, even next to an error.",41,{"path":256,"title":257,"description":258,"order":259,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Freleases","Releases","The versions running in each environment, bound to GitHub tags, and the errors that come back after a fix.",42,{"path":261,"title":262,"description":263,"order":264,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fvulnerabilities","Vulnerabilities","Known security problems in your projects' libraries, and the languages that no longer get fixes.",43,{"path":266,"title":267,"description":268,"order":269,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fseo","SEO","CloseYourIt visits your sites like a search engine and tells you what keeps your pages from being found.",44,{"path":271,"title":272,"description":273,"order":274,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fknowledge","Knowledge base","Write notes, decisions and guides for your projects, find them by meaning and ask questions with sources.",45,{"path":276,"title":277,"description":278,"order":279,"group":199,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fagents","AI agents","Which tickets agents take, what they hand you, where you decide and how each machine is measured.",46,{"path":281,"title":282,"description":283,"order":284,"group":14,"parent":8,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog","Versions","Every CloseYourIt system with its latest version, and the notes of each release.",50,{"path":286,"title":287,"description":288,"order":289,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-app","App","Every stable version of App, newest first.",51,"changelog",{"path":292,"title":293,"description":294,"order":295,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-cli","Command line (cyi)","Every stable version of Command line (cyi), newest first.",52,{"path":297,"title":140,"description":298,"order":299,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-automator","Every stable version of Automator, newest first.",53,{"path":301,"title":86,"description":302,"order":303,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-agent-server","Every stable version of Server agent, newest first.",54,{"path":305,"title":306,"description":307,"order":308,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-agent-kubernetes","Kubernetes agent","Every stable version of Kubernetes agent, newest first.",55,{"path":310,"title":311,"description":312,"order":313,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-sdk-javascript","JavaScript SDK","Every stable version of JavaScript SDK, newest first.",56,{"path":315,"title":316,"description":317,"order":318,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-sdk-ruby","Ruby SDK","Every stable version of Ruby SDK, newest first.",57,{"path":320,"title":321,"description":322,"order":323,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-sdk-python","Python SDK","Every stable version of Python SDK, newest first.",58,{"path":325,"title":326,"description":327,"order":328,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-sdk-dart","Dart SDK","Every stable version of Dart SDK, newest first.",59,{"path":330,"title":331,"description":332,"order":333,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-skills","Skills for AI assistants","Every stable version of Skills for AI assistants, newest first.",60,{"path":335,"title":336,"description":337,"order":338,"group":8,"parent":290,"package":8,"note":8,"collects":8,"status":8},"\u002Fdocs\u002Fchangelog-site","Website and docs","Every stable version of Website and docs, newest first.",61,{"id":340,"title":247,"body":341,"collects":8,"description":248,"extension":894,"group":199,"meta":895,"navigation":896,"note":8,"order":249,"package":8,"parent":8,"path":246,"seo":897,"status":8,"stem":898,"__hash__":899},"docs_en\u002Fdocs\u002Fanalytics.md",{"type":342,"value":343,"toc":884},"minimark",[344,351,356,359,376,502,510,521,525,541,544,568,572,620,623,627,630,651,654,658,661,713,716,720,726,733,786,795,799,806,842,869,873,880],[345,346,347,350],"p",{},[348,349,247],"strong",{}," tells you how many visits and visitors the site has, which pages are viewed most and where the traffic comes from. It uses no cookies and stores no personal data.",[352,353,355],"h2",{"id":354},"turn-on-analytics","Turn on analytics",[345,357,358],{},"You need a project with the Web platform and two things together: the switch and the code in the pages.",[360,361,362,373],"ol",{},[363,364,365,366,368,369,372],"li",{},"In the project ",[348,367,17],{}," turn on ",[348,370,371],{},"Collect site analytics",".",[363,374,375],{},"Paste this code in the site pages, inside the head:",[377,378,383],"pre",{"className":379,"code":380,"language":381,"meta":382,"style":382},"language-html shiki shiki-themes github-light github-dark","\u003Cscript src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002F@bussolabs\u002Fcloseyourit-js@0\u002Fdist\u002Fcloseyourit.min.js\">\u003C\u002Fscript>\n\u003Cscript>\n  CloseYourIt.init({\n    endpointUrl: \"https:\u002F\u002Fbugs.example.com\",\n    publicKey: \"\u003Cproject public key>\",\n    projectId: \"\u003Cproject id>\",\n    environment: \"production\",\n    trackPageviews: true,\n  })\n\u003C\u002Fscript>\n","html","",[384,385,386,417,425,436,447,457,467,477,488,493],"code",{"__ignoreMap":382},[387,388,390,394,398,402,405,409,412,414],"span",{"class":389,"line":13},"line",[387,391,393],{"class":392},"sVt8B","\u003C",[387,395,397],{"class":396},"s9eBZ","script",[387,399,401],{"class":400},"sScJk"," src",[387,403,404],{"class":392},"=",[387,406,408],{"class":407},"sZZnC","\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002F@bussolabs\u002Fcloseyourit-js@0\u002Fdist\u002Fcloseyourit.min.js\"",[387,410,411],{"class":392},">\u003C\u002F",[387,413,397],{"class":396},[387,415,416],{"class":392},">\n",[387,418,419,421,423],{"class":389,"line":19},[387,420,393],{"class":392},[387,422,397],{"class":396},[387,424,416],{"class":392},[387,426,427,430,433],{"class":389,"line":24},[387,428,429],{"class":392},"  CloseYourIt.",[387,431,432],{"class":400},"init",[387,434,435],{"class":392},"({\n",[387,437,438,441,444],{"class":389,"line":29},[387,439,440],{"class":392},"    endpointUrl: ",[387,442,443],{"class":407},"\"https:\u002F\u002Fbugs.example.com\"",[387,445,446],{"class":392},",\n",[387,448,449,452,455],{"class":389,"line":34},[387,450,451],{"class":392},"    publicKey: ",[387,453,454],{"class":407},"\"\u003Cproject public key>\"",[387,456,446],{"class":392},[387,458,459,462,465],{"class":389,"line":39},[387,460,461],{"class":392},"    projectId: ",[387,463,464],{"class":407},"\"\u003Cproject id>\"",[387,466,446],{"class":392},[387,468,469,472,475],{"class":389,"line":45},[387,470,471],{"class":392},"    environment: ",[387,473,474],{"class":407},"\"production\"",[387,476,446],{"class":392},[387,478,479,482,486],{"class":389,"line":56},[387,480,481],{"class":392},"    trackPageviews: ",[387,483,485],{"class":484},"sj4cs","true",[387,487,446],{"class":392},[387,489,490],{"class":389,"line":64},[387,491,492],{"class":392},"  })\n",[387,494,495,498,500],{"class":389,"line":73},[387,496,497],{"class":392},"\u003C\u002F",[387,499,397],{"class":396},[387,501,416],{"class":392},[360,503,504],{"start":24},[363,505,506,507,509],{},"Open ",[348,508,247],{},": the first visit shows up within a few seconds.",[345,511,512,513,516,517,520],{},"The in-app guide gives you the same code already filled in for the project you pick. If you already use the SDK, just add ",[384,514,515],{},"trackPageviews: true"," (see ",[518,519,54],"a",{"href":53},").",[352,522,524],{"id":523},"what-is-counted","What is counted",[526,527,528,531,538],"ul",{},[363,529,530],{},"One visit on every page load and on every page change in single-page apps. A change that stays on the same page does not count.",[363,532,533,534,537],{},"Of the page, only the domain and the path are sent, never the parameters after ",[384,535,536],{},"?",". The referring page and the UTM campaign parameters are sent too.",[363,539,540],{},"The visitor is an anonymous code computed by the server, which changes every day. The network address and the browser are used to compute it and are not stored.",[345,542,543],{},"To count a page by hand, for example a step of a wizard:",[377,545,549],{"className":546,"code":547,"language":548,"meta":382,"style":382},"language-js shiki shiki-themes github-light github-dark","CloseYourIt.capturePageview({ path: \"\u002Fwizard\u002Fstep-2\" })\n","js",[384,550,551],{"__ignoreMap":382},[387,552,553,556,559,562,565],{"class":389,"line":13},[387,554,555],{"class":392},"CloseYourIt.",[387,557,558],{"class":400},"capturePageview",[387,560,561],{"class":392},"({ path: ",[387,563,564],{"class":407},"\"\u002Fwizard\u002Fstep-2\"",[387,566,567],{"class":392}," })\n",[352,569,571],{"id":570},"what-you-see","What you see",[526,573,574,577,583,592,606,612],{},[363,575,576],{},"The numbers for the period: pageviews, visitors, bounce, average visit length, pages per visit. Changes are compared with the previous period of the same length.",[363,578,579,582],{},[348,580,581],{},"Now",": the visitors of the last 30 minutes.",[363,584,585,588,589,372],{},[348,586,587],{},"Top pages"," and ",[348,590,591],{},"Entry & exit pages",[363,593,594,595,598,599,602,603,372],{},"Where they come from: ",[348,596,597],{},"Top referrers",", ",[348,600,601],{},"Channels"," (direct, search, social, AI assistants, other sites, email, paid campaigns) and ",[348,604,605],{},"Campaigns (UTM)",[363,607,608,611],{},[348,609,610],{},"Locations",": the country.",[363,613,614,598,617,372],{},[348,615,616],{},"Browser & operating system",[348,618,619],{},"Device & screen",[345,621,622],{},"You can pick project, environment and period: last 24 hours, 7 days, 30 days or one year.",[352,624,626],{"id":625},"custom-events","Custom events",[345,628,629],{},"An event marks an action that matters, for example a sign-up:",[377,631,633],{"className":546,"code":632,"language":548,"meta":382,"style":382},"CloseYourIt.captureEvent(\"Signup\")\n",[384,634,635],{"__ignoreMap":382},[387,636,637,639,642,645,648],{"class":389,"line":13},[387,638,555],{"class":392},[387,640,641],{"class":400},"captureEvent",[387,643,644],{"class":392},"(",[387,646,647],{"class":407},"\"Signup\"",[387,649,650],{"class":392},")\n",[345,652,653],{},"Events do not count as visits: they feed the goals.",[352,655,657],{"id":656},"goals","Goals",[345,659,660],{},"A goal is a visit or an event that counts as a target reached.",[360,662,663,673,708],{},[363,664,665,666,669,670,372],{},"Press ",[348,667,668],{},"Manage goals",", then ",[348,671,672],{},"New goal",[363,674,675,676,679,680,683,684],{},"Give it a ",[348,677,678],{},"Name"," and pick the ",[348,681,682],{},"Type",":\n",[526,685,686,700],{},[363,687,688,691,692,695,696,699],{},[348,689,690],{},"Pageview path",": an exact path, or a prefix with ",[384,693,694],{},"*"," (for example ",[384,697,698],{},"\u002Fblog\u002F*",");",[363,701,702,705,706,372],{},[348,703,704],{},"Custom event",": the name passed to ",[384,707,641],{},[363,709,665,710,372],{},[348,711,712],{},"Save goal",[345,714,715],{},"For each goal you see unique visitors, the total and the conversion rate. Deleting a goal removes only its count: visits and events stay.",[352,717,719],{"id":718},"share-the-analytics","Share the analytics",[345,721,722,725],{},[348,723,724],{},"Create link"," publishes a read-only page with the project's analytics. You get the public address and a code to embed it in another site. The page shows only aggregated numbers, never single visitors.",[345,727,728,729,732],{},"To protect the link with a password, create it from the ",[518,730,731],{"href":110},"command line",":",[377,734,738],{"className":735,"code":736,"language":737,"meta":382,"style":382},"language-bash shiki shiki-themes github-light github-dark","cyi analytics share --project \u003Cid or key> --password \u003Cpassword>\n","bash",[384,739,740],{"__ignoreMap":382},[387,741,742,745,748,751,754,758,761,764,767,770,773,776,778,781,784],{"class":389,"line":13},[387,743,744],{"class":400},"cyi",[387,746,747],{"class":407}," analytics",[387,749,750],{"class":407}," share",[387,752,753],{"class":484}," --project",[387,755,757],{"class":756},"szBVR"," \u003C",[387,759,760],{"class":407},"id",[387,762,763],{"class":407}," or",[387,765,766],{"class":407}," ke",[387,768,769],{"class":392},"y",[387,771,772],{"class":756},">",[387,774,775],{"class":484}," --password",[387,777,757],{"class":756},[387,779,780],{"class":407},"passwor",[387,782,783],{"class":392},"d",[387,785,416],{"class":756},[345,787,788,791,792,520],{},[348,789,790],{},"Revoke"," turns the link off. Creating and revoking the link needs a dedicated permission (see ",[518,793,794],{"href":5},"Permissions",[352,796,798],{"id":797},"read-the-data-from-a-program","Read the data from a program",[345,800,801,802,805],{},"With a project token that has the ",[384,803,804],{},"read"," permission:",[377,807,809],{"className":735,"code":808,"language":737,"meta":382,"style":382},"curl https:\u002F\u002Fbugs.example.com\u002Fapi\u002Fv1\u002Fprojects\u002F$PROJECT_ID\u002Fanalytics?range=30d \\\n  -H \"Authorization: Bearer $CYI_TOKEN\"\n",[384,810,811,828],{"__ignoreMap":382},[387,812,813,816,819,822,825],{"class":389,"line":13},[387,814,815],{"class":400},"curl",[387,817,818],{"class":407}," https:\u002F\u002Fbugs.example.com\u002Fapi\u002Fv1\u002Fprojects\u002F",[387,820,821],{"class":392},"$PROJECT_ID",[387,823,824],{"class":407},"\u002Fanalytics?range=30d",[387,826,827],{"class":484}," \\\n",[387,829,830,833,836,839],{"class":389,"line":19},[387,831,832],{"class":484},"  -H",[387,834,835],{"class":407}," \"Authorization: Bearer ",[387,837,838],{"class":392},"$CYI_TOKEN",[387,840,841],{"class":407},"\"\n",[345,843,844,847,848,598,851,598,854,857,858,861,862,865,866,372],{},[384,845,846],{},"range"," is ",[384,849,850],{},"24h",[384,852,853],{},"7d",[384,855,856],{},"30d"," or ",[384,859,860],{},"1y","; ",[384,863,864],{},"environment"," picks the environment. The answer holds the summary, the trend over time, the breakdowns, the channels and the goals. From the command line: ",[384,867,868],{},"cyi analytics show --project \u003Cid or key>",[352,870,872],{"id":871},"how-long-the-data-stays","How long the data stays",[345,874,875,876,879],{},"One year by default. Change it in ",[348,877,878],{},"Site analytics retention (days)",", in the organization or project settings.",[881,882,883],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}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 .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":382,"searchDepth":19,"depth":19,"links":885},[886,887,888,889,890,891,892,893],{"id":354,"depth":19,"text":355},{"id":523,"depth":19,"text":524},{"id":570,"depth":19,"text":571},{"id":625,"depth":19,"text":626},{"id":656,"depth":19,"text":657},{"id":718,"depth":19,"text":719},{"id":797,"depth":19,"text":798},{"id":871,"depth":19,"text":872},"md",{},true,{"title":247,"description":248},"docs\u002Fanalytics","8AcHo8pB5BCULFHS7CQtk4hHbSDGKDTXplSB21XazXk",1796225781499]