<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JustOneCX</title>
    <description>The latest articles on DEV Community by JustOneCX (@justonecx).</description>
    <link>https://dev.to/justonecx</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4228935%2Fc725861a-29e2-488f-a101-cebd1ac78cda.png</url>
      <title>DEV Community: JustOneCX</title>
      <link>https://dev.to/justonecx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/justonecx"/>
    <language>en</language>
    <item>
      <title>Product funnel analysis for SaaS: build a 2 to 4 step funnel</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Wed, 25 Nov 2026 18:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/product-funnel-analysis-for-saas-build-a-2-to-4-step-funnel-1l5k</link>
      <guid>https://dev.to/justonecx/product-funnel-analysis-for-saas-build-a-2-to-4-step-funnel-1l5k</guid>
      <description>&lt;p&gt;A product funnel shows how many visitors reach each step of a flow and where they drop off. In JustOneCX you build a funnel of two to four steps, choose how steps must match, and read visitors, conversion from the previous step and median time for each step.&lt;/p&gt;

&lt;p&gt;The rules below come from the &lt;a href="https://docs.justonecx.com/guides/analytics" rel="noopener noreferrer"&gt;analytics definitions guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a funnel step?
&lt;/h2&gt;

&lt;p&gt;A funnel has two to four steps. A step can be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A custom event, optionally filtered by event properties.&lt;/li&gt;
&lt;li&gt;A tour event.&lt;/li&gt;
&lt;li&gt;An announcement event.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That makes it possible to follow a path such as "saw the announcement, started the setup, finished the setup". It also lets you check whether a tour changes what people do next.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do you need to send first?
&lt;/h2&gt;

&lt;p&gt;Funnels need the events you want as steps. For custom events, send them with &lt;code&gt;track()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;track&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"clicked_upgrade_cta"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"growth"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tour and announcement events are available as steps too, so you pick them from the list instead of naming them. If some steps happen on your server, send them from the backend with your Secret key. Server events count in funnels like browser events. See &lt;a href="https://dev.to/blog/server-side-event-tracking-saas"&gt;server-side event tracking for SaaS&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To tie events to people, call &lt;code&gt;identify()&lt;/code&gt; first. See &lt;a href="https://dev.to/blog/identify-users-sdk"&gt;identify users with the SDK&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you build a funnel?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Analytics&lt;/strong&gt; in the dashboard and go to funnels.&lt;/li&gt;
&lt;li&gt;Use two to four steps.&lt;/li&gt;
&lt;li&gt;For each step, pick an event from the list your app sent, or choose a tour or announcement event.&lt;/li&gt;
&lt;li&gt;Optionally filter a custom event by its properties.&lt;/li&gt;
&lt;li&gt;Choose the step matching mode.&lt;/li&gt;
&lt;li&gt;Optionally limit results to one segment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can start from a template. The docs list three: Signup to Activation, Visit to Signup to Activation, and tour or announcement engagement. Templates use placeholder event names. Pick your real ones from the list.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do the match modes mean?
&lt;/h2&gt;

&lt;p&gt;Step matching has three options: any order, sequential and strict order. Choose one when you set up the funnel.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Any order&lt;/strong&gt; counts a visitor who matched the steps, whatever the order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sequential&lt;/strong&gt; counts a visitor who matched the steps one after another.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strict order&lt;/strong&gt; is the tightest option. Check the dashboard's own description of each mode and test it on your data before you rely on a number.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a rule of thumb, use a sequential mode for a fixed path such as signup, and any order for a checklist where people do tasks in any order.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you read the results?
&lt;/h2&gt;

&lt;p&gt;Each step shows these numbers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Visitors.&lt;/strong&gt; Distinct visitors who matched that step.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Of previous step.&lt;/strong&gt; This step's visitors divided by the previous step's visitors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Median time.&lt;/strong&gt; The middle gap between the previous step and this one, over visitors counted at both.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read down the funnel and find the biggest drop in "Of previous step". That is the step to look at first. Then ask why. Is the button hard to find? Is there an error? The Friction signals view can help: it counts rage clicks, dead clicks and JavaScript errors, with no session recording.&lt;/p&gt;

&lt;p&gt;The median time tells you how long people take. A long gap at one step can point at confusion even when conversion looks fine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can you limit a funnel to one segment?
&lt;/h2&gt;

&lt;p&gt;Yes. &lt;strong&gt;Only people in segment&lt;/strong&gt; limits the results to one segment. Segment results look at the first 5,000 visitors who reached step 1. Keep this cap in mind for large audiences.&lt;/p&gt;

&lt;p&gt;Segments are built in the &lt;strong&gt;Segments&lt;/strong&gt; section. See &lt;a href="https://dev.to/blog/user-segmentation-saas"&gt;user segmentation for SaaS&lt;/a&gt;. A common use is to compare a funnel for one plan with the funnel for another.&lt;/p&gt;

&lt;h2&gt;
  
  
  How fresh is the data?
&lt;/h2&gt;

&lt;p&gt;The overview is cached for up to 60 seconds. The page shows "Updated N s ago".&lt;/p&gt;

&lt;h2&gt;
  
  
  What can you do with what you find?
&lt;/h2&gt;

&lt;p&gt;Fix the weak step, or help people through it. For example, show a tour on the step where people stall, then add that tour's event to a funnel and see if conversion changes. Read more in &lt;a href="https://dev.to/blog/product-tour-best-practices"&gt;product tour best practices&lt;/a&gt;. To find the event that best marks success, see the &lt;a href="https://dev.to/blog/activation-event-guide"&gt;activation event guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How many steps can a funnel have?
&lt;/h3&gt;

&lt;p&gt;Two to four.&lt;/p&gt;

&lt;h3&gt;
  
  
  What can a step be?
&lt;/h3&gt;

&lt;p&gt;A custom event (optionally filtered by event properties), a tour event or an announcement event.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does "Of previous step" mean?
&lt;/h3&gt;

&lt;p&gt;It is this step's visitors divided by the previous step's visitors.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I filter a funnel to one group of users?
&lt;/h3&gt;

&lt;p&gt;Yes. Use &lt;strong&gt;Only people in segment&lt;/strong&gt;. Segment results look at the first 5,000 visitors who reached step 1.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>funnels</category>
      <category>conversion</category>
    </item>
    <item>
      <title>NPS vs CSAT vs CES: which survey should you use?</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Wed, 25 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/nps-vs-csat-vs-ces-which-survey-should-you-use-5ep4</link>
      <guid>https://dev.to/justonecx/nps-vs-csat-vs-ces-which-survey-should-you-use-5ep4</guid>
      <description>&lt;p&gt;NPS measures loyalty, CSAT measures satisfaction with one moment, and CES measures how easy something was. Use NPS for the overall relationship, CSAT right after a specific interaction, and CES right after a task the person had to complete. The JustOneCX survey builder supports all three.&lt;/p&gt;

&lt;p&gt;The definitions below are general knowledge about each method. The product details come from the &lt;a href="https://docs.justonecx.com/guides/surveys" rel="noopener noreferrer"&gt;surveys guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does NPS ask?
&lt;/h2&gt;

&lt;p&gt;NPS stands for Net Promoter Score. It asks how likely a person is to recommend your product to others, on a scale from 0 to 10. Answers are usually grouped into promoters, passives and detractors.&lt;/p&gt;

&lt;p&gt;NPS is about the whole relationship with the product. It is not about one click or one support chat. Because of that, ask it of people who have used the product long enough to have an opinion.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does CSAT ask?
&lt;/h2&gt;

&lt;p&gt;CSAT stands for Customer Satisfaction. It asks how satisfied a person is, usually on a short rating scale. The question normally points at one thing: a support reply, a delivery, a new feature.&lt;/p&gt;

&lt;p&gt;CSAT works best right after that thing happens. The memory is fresh, and the answer is tied to a clear moment.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does CES ask?
&lt;/h2&gt;

&lt;p&gt;CES stands for Customer Effort Score. It asks how easy it was to get something done. For example: how easy was it to set up your account?&lt;/p&gt;

&lt;p&gt;CES fits tasks with friction risk, such as onboarding, checkout, or finding help. A low ease score points at a step in the flow that needs work.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do the three compare?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Survey&lt;/th&gt;
&lt;th&gt;Question is about&lt;/th&gt;
&lt;th&gt;Good moment to ask&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;NPS&lt;/td&gt;
&lt;td&gt;Likelihood to recommend, the whole product&lt;/td&gt;
&lt;td&gt;After the person has used the product for a while&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CSAT&lt;/td&gt;
&lt;td&gt;Satisfaction with one interaction&lt;/td&gt;
&lt;td&gt;Right after that interaction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CES&lt;/td&gt;
&lt;td&gt;Ease of completing a task&lt;/td&gt;
&lt;td&gt;Right after the task&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Which one should you use?
&lt;/h2&gt;

&lt;p&gt;Start from the decision you want to make.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Want a read on overall loyalty over time? Use NPS.&lt;/li&gt;
&lt;li&gt;Want to judge a support reply or a new feature? Use CSAT.&lt;/li&gt;
&lt;li&gt;Want to find friction in a flow such as onboarding or checkout? Use CES.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can use more than one. Just keep each survey tied to its own moment, and do not stack them on the same page. For more on this, see &lt;a href="https://dev.to/blog/in-app-survey-best-practices"&gt;in-app survey best practices&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does the survey builder support them?
&lt;/h2&gt;

&lt;p&gt;Surveys in JustOneCX support NPS, CSAT, CES and written feedback. You can also use the block builder for custom layouts, with choice, rating and NPS blocks.&lt;/p&gt;

&lt;p&gt;To create any of them:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Surveys&lt;/strong&gt; in the dashboard.&lt;/li&gt;
&lt;li&gt;Pick a type and write the question.&lt;/li&gt;
&lt;li&gt;Choose where it appears: slide-out, modal or banner.&lt;/li&gt;
&lt;li&gt;Choose when it appears: on page load, after scrolling, or when your code sends a specific event.&lt;/li&gt;
&lt;li&gt;Set repeat frequency.&lt;/li&gt;
&lt;li&gt;On the &lt;strong&gt;Settings&lt;/strong&gt; tab, choose who sees it, then publish.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The step-by-step version is in &lt;a href="https://dev.to/blog/add-nps-survey-to-web-app"&gt;how to add an NPS survey to your web app&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;One rule matters here. A survey type cannot change after its first response. If you pick CSAT and later want CES, create a new survey.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you ask CSAT or CES at the right moment?
&lt;/h2&gt;

&lt;p&gt;Use an event trigger. Set the survey trigger to &lt;strong&gt;event&lt;/strong&gt;, enter an event name, and call &lt;code&gt;track()&lt;/code&gt; when the moment happens.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;track&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@justonecx/sdk"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;track&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"completed_onboarding"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The next &lt;code&gt;track()&lt;/code&gt; call with that exact name shows the survey once. This works well for CES after onboarding, or CSAT after a task. See &lt;a href="https://dev.to/blog/in-app-survey-trigger-events"&gt;in-app survey trigger events&lt;/a&gt; for the full options, including asking once per order.&lt;/p&gt;

&lt;p&gt;NPS usually does not need an event. You can show it on page load or after scrolling, to people who match a segment such as an older account.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can you follow up on low or high scores?
&lt;/h2&gt;

&lt;p&gt;Yes. You can show different follow-up questions by score band. For example, ask detractors what went wrong and ask promoters what they like. This turns a number into a reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you read and share the results?
&lt;/h2&gt;

&lt;p&gt;Responses appear under the survey on the &lt;strong&gt;Results&lt;/strong&gt; tab. Choose &lt;strong&gt;Download responses (CSV)&lt;/strong&gt; to get one row per response with the answers, score, person and time.&lt;/p&gt;

&lt;p&gt;Before you go live, use the &lt;strong&gt;Test survey&lt;/strong&gt; mode to see the survey without saving a response.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Which survey types does JustOneCX support?
&lt;/h3&gt;

&lt;p&gt;NPS, CSAT, CES and written feedback. You can also build custom layouts with the block builder, using choice, rating and NPS blocks.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I turn an NPS survey into a CSAT survey later?
&lt;/h3&gt;

&lt;p&gt;No. A survey type cannot change after its first response. Create a new survey instead.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I show a survey right after a task?
&lt;/h3&gt;

&lt;p&gt;Set the trigger to &lt;strong&gt;event&lt;/strong&gt; and call &lt;code&gt;track()&lt;/code&gt; with that event name when the task finishes. The next matching call shows the survey once.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I see the raw answers?
&lt;/h3&gt;

&lt;p&gt;Yes. Open the &lt;strong&gt;Results&lt;/strong&gt; tab and choose &lt;strong&gt;Download responses (CSV)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>surveys</category>
      <category>nps</category>
      <category>csat</category>
    </item>
    <item>
      <title>NPS survey examples for SaaS: the question, the follow-ups and when to ask</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Tue, 24 Nov 2026 18:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/nps-survey-examples-for-saas-the-question-the-follow-ups-and-when-to-ask-1l3k</link>
      <guid>https://dev.to/justonecx/nps-survey-examples-for-saas-the-question-the-follow-ups-and-when-to-ask-1l3k</guid>
      <description>&lt;p&gt;An NPS survey is one question and one follow-up. The question is "How likely are you to recommend us to a friend or colleague?", answered from 0 to 10. The follow-up depends on the score. This post gives examples you can copy and says when to show them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the standard NPS question?
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;On a scale from 0 to 10, how likely are you to recommend [product] to a friend or colleague?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Keep the wording as it is. Changing it makes your scores hard to compare with your own past scores. Answers of 9 or 10 are promoters, 7 or 8 are passives and 0 to 6 are detractors. You can work out the score with the &lt;a href="https://dev.to/tools/nps-calculator"&gt;NPS calculator&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What follow-up question should you ask?
&lt;/h2&gt;

&lt;p&gt;Ask one open question, and make it match the score band. In JustOneCX Surveys you can show a different follow-up by score band.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Promoters (9-10):&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What do you like most about [product]?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Passives (7-8):&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What is one thing that would make [product] better for you?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Detractors (0-6):&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What is the main reason for your score? What should we fix first?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;One follow-up is enough. A second open question lowers the number of people who finish.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should you ask?
&lt;/h2&gt;

&lt;p&gt;Ask after a person has used the product enough to have an opinion, not on the first visit. Two options inside a product:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;After an event.&lt;/strong&gt; Set the survey trigger to an event, such as &lt;code&gt;completed_onboarding&lt;/code&gt;, and call &lt;code&gt;track()&lt;/code&gt; with that name. The next call shows the survey once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;After scrolling or on page load&lt;/strong&gt;, for a page that is the natural end of a task.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to ask after every order or ticket, use the setting that shows the survey once per event property, such as &lt;code&gt;order_id&lt;/code&gt;. Each order is then a new chance to ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  How often should you ask?
&lt;/h2&gt;

&lt;p&gt;By default a person sees a survey once, or again after a throttle period. Do not ask the same person again within a few months. Compare scores over time with the same wording and the same kind of users.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do you do with the answers?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Read the detractor comments first. They show what to fix.&lt;/li&gt;
&lt;li&gt;Tag the repeats. If many people name the same problem, it belongs on your &lt;a href="https://dev.to/blog/build-public-product-roadmap"&gt;roadmap&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Close the loop with people who gave a reason, when you can.&lt;/li&gt;
&lt;li&gt;Download the answers as a CSV from the survey's Results tab if you want to look at them in a spreadsheet.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Build it
&lt;/h2&gt;

&lt;p&gt;The steps are in the guide for &lt;a href="https://dev.to/blog/add-nps-survey-to-web-app"&gt;adding an NPS survey to a web app&lt;/a&gt;. You can see a survey in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>surveys</category>
      <category>nps</category>
      <category>feedback</category>
    </item>
    <item>
      <title>Next.js product tour: add one to the App Router</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/nextjs-product-tour-add-one-to-the-app-router-4o1c</link>
      <guid>https://dev.to/justonecx/nextjs-product-tour-add-one-to-the-app-router-4o1c</guid>
      <description>&lt;p&gt;To add a product tour to the Next.js App Router, create one client component that calls &lt;code&gt;init()&lt;/code&gt; and &lt;code&gt;identify()&lt;/code&gt;, then render it once in &lt;code&gt;app/layout.tsx&lt;/code&gt;. The &lt;code&gt;"use client"&lt;/code&gt; line keeps the SDK in the browser. You build and publish the tour in the dashboard, and the SDK plays it for matching visitors.&lt;/p&gt;

&lt;p&gt;This works for any App Router app, including SaaS starters and paid boilerplates.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do you need first?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Your &lt;strong&gt;public key&lt;/strong&gt; (starts with &lt;code&gt;pk_&lt;/code&gt;) from &lt;strong&gt;Settings, Developers&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Your origin in &lt;strong&gt;Settings, Developers, Domains &amp;amp; CORS&lt;/strong&gt;, for example &lt;code&gt;https://app.example.com&lt;/code&gt;. For local work add &lt;code&gt;http://localhost:3000&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The package: &lt;code&gt;npm install @justonecx/sdk&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do you store the public key?
&lt;/h2&gt;

&lt;p&gt;The public key is safe in the browser. In Next.js a variable that starts with &lt;code&gt;NEXT_PUBLIC_&lt;/code&gt; is sent to the browser:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# .env.local&lt;/span&gt;
&lt;span class="nv"&gt;NEXT_PUBLIC_JUSTONECX_PUBLIC_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;pk_your_workspace_key
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;code&gt;NEXT_PUBLIC_*&lt;/code&gt; value is read at build time. If it is empty, the SDK is skipped and no request is made. Rebuild after you set it, and make sure your CI build sets it too.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you write the client component?
&lt;/h2&gt;

&lt;p&gt;Create a component that starts the SDK once and identifies the signed-in user:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// components/justonecx.tsx&lt;/span&gt;
&lt;span class="s2"&gt;"use client"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;useEffect&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;identify&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reset&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@justonecx/sdk"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;Props&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;userHash&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;JustOneCX&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Props&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;publicKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;NEXT_PUBLIC_JUSTONECX_PUBLIC_KEY&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;apiUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://api.justonecx.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;trackRouteChanges&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;identify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;plan&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;userHash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;userHash&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;trackRouteChanges: true&lt;/code&gt; matters in an App Router app. Navigation between pages happens in the browser, and the SDK needs the option to check page targeting again after each change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where do you render it?
&lt;/h2&gt;

&lt;p&gt;In &lt;code&gt;app/layout.tsx&lt;/code&gt;, render &lt;code&gt;&amp;lt;JustOneCX user={...} /&amp;gt;&lt;/code&gt; once. Get &lt;code&gt;user&lt;/code&gt; from wherever your app reads the signed-in user on the server, such as your auth helper or session call. Pass only what the component needs: the id, a trait such as the plan, and later the hash.&lt;/p&gt;

&lt;p&gt;If your layout is a server component, that is fine. The &lt;code&gt;"use client"&lt;/code&gt; line in the component file makes it run in the browser. Never call &lt;code&gt;init()&lt;/code&gt; in server code. It uses &lt;code&gt;window&lt;/code&gt; and &lt;code&gt;document&lt;/code&gt;, and you will see errors during server-side rendering.&lt;/p&gt;

&lt;p&gt;The longer walkthrough is in &lt;a href="https://docs.justonecx.com/guides/nextjs-saas-boilerplate" rel="noopener noreferrer"&gt;Add JustOneCX to a Next.js SaaS boilerplate&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you create the tour?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the dashboard open &lt;strong&gt;Tours&lt;/strong&gt; and create a tour.&lt;/li&gt;
&lt;li&gt;On the &lt;strong&gt;Builder&lt;/strong&gt; tab, add a step and pick the element it points at.&lt;/li&gt;
&lt;li&gt;On the &lt;strong&gt;Settings&lt;/strong&gt; tab, set targeting.&lt;/li&gt;
&lt;li&gt;Set the tour to &lt;strong&gt;Published&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Open your app in a new browser window. The tour starts. For a draft, use &lt;strong&gt;Preview on your site&lt;/strong&gt;, which uses the JustOneCX browser extension.&lt;/p&gt;

&lt;p&gt;Tooltips can find an element by selector, visible text, an ARIA role with an accessible name, or a &lt;code&gt;data-jcx&lt;/code&gt; anchor. In a framework that generates class names, text, role and anchor targets are the stable choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about a tour that spans several pages?
&lt;/h2&gt;

&lt;p&gt;Each step can have its own page rule, and the SDK saves where the visitor is. Because the App Router navigates in the browser, &lt;code&gt;trackRouteChanges: true&lt;/code&gt; lets the SDK check again after each navigation and continue the tour. Read &lt;a href="https://dev.to/blog/multi-page-product-tour"&gt;how a multi-page product tour works&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you do about identity verification?
&lt;/h2&gt;

&lt;p&gt;Before you go live, turn on identity verification. Your server signs the user id with HMAC-SHA256, and the SDK sends &lt;code&gt;userHash&lt;/code&gt;. The secret key stays in your server environment as &lt;code&gt;JUSTONECX_SECRET_KEY&lt;/code&gt; and never reaches the browser. See &lt;a href="https://dev.to/blog/secure-identify-user-hash"&gt;secure identify with a user hash&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you debug a tour that does not show?
&lt;/h2&gt;

&lt;p&gt;Open the console. The SDK logs every problem with the prefix &lt;code&gt;[JustOneCX]&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You see&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No request, no message&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;init()&lt;/code&gt; never ran, or the build had an empty &lt;code&gt;NEXT_PUBLIC_*&lt;/code&gt; key. Rebuild.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CORS error or status 403&lt;/td&gt;
&lt;td&gt;Add the origin in &lt;strong&gt;Domains &amp;amp; CORS&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Status 401&lt;/td&gt;
&lt;td&gt;The public key is wrong or was rotated. Copy it again.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nothing wrong in the console&lt;/td&gt;
&lt;td&gt;The tour may be a draft, already seen, or targeted away from you. Test with Everyone targeting, in a private window.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If targeted content does not appear right after sign-in, traits must be saved first. Run &lt;code&gt;await identify(...)&lt;/code&gt;, then call &lt;code&gt;init()&lt;/code&gt; again.&lt;/p&gt;

&lt;p&gt;See &lt;a href="https://dev.to/blog/product-tour-not-showing"&gt;why a product tour is not showing&lt;/a&gt; and the &lt;a href="https://docs.justonecx.com/troubleshooting" rel="noopener noreferrer"&gt;troubleshooting page&lt;/a&gt;. For a plain React setup, see &lt;a href="https://dev.to/blog/react-product-tour"&gt;the React product tour guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you check before you ship?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The tour is published and you saw it in a private window.&lt;/li&gt;
&lt;li&gt;Your production origin is in &lt;strong&gt;Domains &amp;amp; CORS&lt;/strong&gt;, not only localhost.&lt;/li&gt;
&lt;li&gt;The build sets the public key, including your CI build.&lt;/li&gt;
&lt;li&gt;Sign-out calls &lt;code&gt;reset()&lt;/code&gt;, so a shared browser does not carry state over.&lt;/li&gt;
&lt;li&gt;Identity verification is set up on your server before you go live.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The SDK also logs one warning and stays inactive if a second copy loads on the same page, for example a tag manager plus the npm package. That keeps tours from appearing twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does the component need to be a client component?
&lt;/h3&gt;

&lt;p&gt;Yes. Use &lt;code&gt;"use client"&lt;/code&gt;, because &lt;code&gt;init()&lt;/code&gt; must run in the browser only.&lt;/p&gt;

&lt;h3&gt;
  
  
  How many times should I render it?
&lt;/h3&gt;

&lt;p&gt;Once, in the root layout.&lt;/p&gt;

&lt;h3&gt;
  
  
  What do I do on sign-out?
&lt;/h3&gt;

&lt;p&gt;Call &lt;code&gt;reset()&lt;/code&gt;. It clears identity and starts a new anonymous visitor, so the next person does not inherit the previous person's state.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does it work in Remix?
&lt;/h3&gt;

&lt;p&gt;Yes. React, Next.js, Remix and Preact share the same example in the docs.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>tours</category>
      <category>sdk</category>
    </item>
    <item>
      <title>Multi-page product tour: how a tour crosses pages</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Mon, 23 Nov 2026 18:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/multi-page-product-tour-how-a-tour-crosses-pages-4f2h</link>
      <guid>https://dev.to/justonecx/multi-page-product-tour-how-a-tour-crosses-pages-4f2h</guid>
      <description>&lt;p&gt;A multi-page product tour is one tour whose steps belong to different pages. Each step can have its own page rule. The SDK saves where the visitor is, so the tour carries on after a page change, in another tab or on another device once the person is identified.&lt;/p&gt;

&lt;p&gt;This guide explains how to set the pages, what happens when a visitor leaves, and how to read the results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why use one tour across pages?
&lt;/h2&gt;

&lt;p&gt;Real tasks span screens. A user creates a project on one page, invites a teammate on another and sees the result on a third. Three separate tours need three triggers and three completion records. One tour keeps a single story and a single result report.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you put a step on a page?
&lt;/h2&gt;

&lt;p&gt;Open the step's &lt;strong&gt;Pages, targets and completion&lt;/strong&gt; section. Two settings matter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Same page as the step before.&lt;/strong&gt; This is the default. Switch it off to give the step its own page rule. The operators are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;is exactly&lt;/li&gt;
&lt;li&gt;starts with&lt;/li&gt;
&lt;li&gt;contains&lt;/li&gt;
&lt;li&gt;matches pattern, where &lt;code&gt;*&lt;/code&gt; is one path segment and &lt;code&gt;**&lt;/code&gt; is any depth&lt;/li&gt;
&lt;li&gt;regex&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a pattern like &lt;code&gt;/projects/*/settings&lt;/code&gt; matches the settings page of any project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Button takes the visitor to.&lt;/strong&gt; Enter a path or URL. When the next step is on another page, this step's button goes there. &lt;strong&gt;Button text when it leads to another page&lt;/strong&gt; replaces the button label, for example "Go to settings".&lt;/p&gt;

&lt;p&gt;Until the visitor is on a matching page, nothing shows. When they arrive, the tour continues from that step.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the SDK need on each page?
&lt;/h2&gt;

&lt;p&gt;Call &lt;code&gt;init()&lt;/code&gt; on every page, or use &lt;code&gt;trackRouteChanges: true&lt;/code&gt; in a single-page app, so the SDK can check again after each navigation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;init&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@justonecx/sdk"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;publicKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pk_your_workspace_key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;apiUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://api.justonecx.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;trackRouteChanges&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Calling &lt;code&gt;init()&lt;/code&gt; again is safe. A tour already on screen is not fetched and shown a second time. For a site without a bundler, the script tag on every page does the same job. Add &lt;code&gt;data-track-route-changes="true"&lt;/code&gt; if the site navigates on the client. Framework setups are on the &lt;a href="https://docs.justonecx.com/install/frameworks" rel="noopener noreferrer"&gt;frameworks page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens if the visitor leaves in the middle?
&lt;/h2&gt;

&lt;p&gt;A multi-page tour that is interrupted by navigation is &lt;strong&gt;paused&lt;/strong&gt;, not dismissed. Its place is saved.&lt;/p&gt;

&lt;p&gt;A tour with no per-step pages still counts a navigation away as dismissing it. That matters when you plan a tour. If the steps are on different pages, give each step its page rule. Otherwise a click on a link ends the tour.&lt;/p&gt;

&lt;p&gt;Dismissing and finishing are different. Finishing or dismissing a tour marks it as seen, and it is not shown again automatically. A pause does not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where is progress saved?
&lt;/h2&gt;

&lt;p&gt;On the server, for each person. The SDK saves the current step and what happened on each step. That lets a tour resume after a reload. It follows the person to another browser once they call &lt;code&gt;identify()&lt;/code&gt;. When a person returns after a while, the tour continues from where they stopped.&lt;/p&gt;

&lt;p&gt;Call &lt;code&gt;identify&lt;/code&gt; after sign-in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;JustOneCX&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;identify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"user-42"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"growth"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"admin"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To start one person over, use &lt;strong&gt;Start one person over&lt;/strong&gt; in the tour's &lt;strong&gt;Results&lt;/strong&gt; tab, or &lt;strong&gt;Restart&lt;/strong&gt; next to a tour in a customer's &lt;strong&gt;Insights&lt;/strong&gt; in the chat inbox. Read more about the call in &lt;a href="https://dev.to/blog/identify-users-sdk"&gt;how to identify users with the SDK&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you keep steps working when the page changes?
&lt;/h2&gt;

&lt;p&gt;A tooltip finds its element by selector first. It can list more ways, tried in order: visible text, an ARIA role with an accessible name, a &lt;code&gt;data-jcx&lt;/code&gt; anchor, or a CSS selector. Text and role targets keep working when generated class names change. A tooltip needs at least one of these.&lt;/p&gt;

&lt;p&gt;If the element is not on the page yet, the SDK waits for it. The wait is 5 seconds by default and up to 30 seconds per step. If it never appears, the step is skipped, the skip is recorded, and the tour finishes as finished with skips. The builder marks such steps "never saw it".&lt;/p&gt;

&lt;h2&gt;
  
  
  Can a step wait for the user to do something?
&lt;/h2&gt;

&lt;p&gt;Yes. Steps can finish on a button click, a click on the element, or an event. An event can also be required to come from your server only. See &lt;a href="https://docs.justonecx.com/guides/server-confirmed-steps" rel="noopener noreferrer"&gt;server-confirmed steps&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can also mark a step &lt;strong&gt;Required&lt;/strong&gt;. When a visitor closes it, they pick a reason first. Set the list in the tour's &lt;strong&gt;Settings&lt;/strong&gt; tab, &lt;strong&gt;Targeting&lt;/strong&gt; section, &lt;strong&gt;Skip reasons&lt;/strong&gt;. The defaults are Not relevant, Already done and Later. The reasons appear per step in &lt;strong&gt;Results&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you read the results?
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;Results&lt;/strong&gt; tab shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Started, finished, finished with skips, and abandoned (no activity for 7 days).&lt;/li&gt;
&lt;li&gt;The biggest drop-off, with its page.&lt;/li&gt;
&lt;li&gt;A per-step table: reached, skipped by reason, target missing, median time.&lt;/li&gt;
&lt;li&gt;A split by any user trait you send with &lt;code&gt;identify()&lt;/code&gt;, for example &lt;code&gt;plan&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The page shown with the drop-off tells you whether people stop on a page or while moving between pages. If many steps show target missing on one page, the page rule or the target needs a fix.&lt;/p&gt;

&lt;p&gt;For design advice, read &lt;a href="https://dev.to/blog/product-tour-best-practices"&gt;product tour best practices&lt;/a&gt;. Targeting details are in &lt;a href="https://docs.justonecx.com/guides/targeting" rel="noopener noreferrer"&gt;targeting and segments&lt;/a&gt;. The full guide is &lt;a href="https://docs.justonecx.com/guides/multi-page-tours" rel="noopener noreferrer"&gt;multi-page tours&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is a tour dismissed when the visitor navigates away?
&lt;/h3&gt;

&lt;p&gt;Not if its steps have per-step pages. It is paused and its place is saved. A tour with no per-step pages still counts a navigation away as dismissing it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does progress follow the user to another device?
&lt;/h3&gt;

&lt;p&gt;Yes, once they &lt;code&gt;identify()&lt;/code&gt;. Progress is kept on the server for each person.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I restart a tour for one person?
&lt;/h3&gt;

&lt;p&gt;Use &lt;strong&gt;Start one person over&lt;/strong&gt; in the tour's &lt;strong&gt;Results&lt;/strong&gt; tab, or &lt;strong&gt;Restart&lt;/strong&gt; in the customer's &lt;strong&gt;Insights&lt;/strong&gt; in the chat inbox.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need init on every page?
&lt;/h3&gt;

&lt;p&gt;Call &lt;code&gt;init()&lt;/code&gt; on every page, or use &lt;code&gt;trackRouteChanges: true&lt;/code&gt; in a single-page app.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>tours</category>
      <category>onboarding</category>
      <category>targeting</category>
    </item>
    <item>
      <title>How to measure feature adoption in a SaaS product</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/how-to-measure-feature-adoption-in-a-saas-product-3j22</link>
      <guid>https://dev.to/justonecx/how-to-measure-feature-adoption-in-a-saas-product-3j22</guid>
      <description>&lt;p&gt;To measure feature adoption, send an event each time someone uses the feature, and tie those events to an account with &lt;code&gt;group()&lt;/code&gt;. JustOneCX then shows, for each event name, the share of active accounts that used it in the period you choose.&lt;/p&gt;

&lt;p&gt;The definitions here come from the &lt;a href="https://docs.justonecx.com/guides/analytics" rel="noopener noreferrer"&gt;analytics definitions guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does feature adoption mean here?
&lt;/h2&gt;

&lt;p&gt;For each event name, feature adoption is the number of accounts that sent that event in the period, divided by the number of accounts that sent any event in the period.&lt;/p&gt;

&lt;p&gt;So if 40 accounts were active and 10 of them used your export feature, adoption of that event is 10 out of 40. The numbers here are only an illustration of the formula. They are not real data.&lt;/p&gt;

&lt;p&gt;Friction events (&lt;code&gt;$rage_click&lt;/code&gt;, &lt;code&gt;$dead_click&lt;/code&gt;, &lt;code&gt;$js_error&lt;/code&gt;) are left out of this report.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do you need to send?
&lt;/h2&gt;

&lt;p&gt;Feature adoption needs events tied to an account. The docs list the requirement plainly: use &lt;code&gt;group()&lt;/code&gt; or an account in &lt;code&gt;identify()&lt;/code&gt;, then &lt;code&gt;track()&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You want&lt;/th&gt;
&lt;th&gt;You must send&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Feature adoption&lt;/td&gt;
&lt;td&gt;Events tied to an account: &lt;code&gt;group()&lt;/code&gt; or an account in &lt;code&gt;identify()&lt;/code&gt;, then &lt;code&gt;track()&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a chart is empty, the page tells you which of these is missing.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you send the account?
&lt;/h2&gt;

&lt;p&gt;Call &lt;code&gt;group()&lt;/code&gt; after &lt;code&gt;init()&lt;/code&gt; to set the account (company, team, organisation) the user belongs to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"acme-inc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"growth"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;seats&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The signature is &lt;code&gt;group(accountId: string, traits?: Traits, options?: { accountHash?: string }): Promise&amp;lt;void&amp;gt;&lt;/code&gt;. Traits merge, so call it on every page load to keep them fresh.&lt;/p&gt;

&lt;p&gt;You should also identify the person:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;identify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"user-42"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"growth"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;See &lt;a href="https://dev.to/blog/identify-users-sdk"&gt;identify users with the SDK&lt;/a&gt; for more. Full reference: &lt;a href="https://docs.justonecx.com/api/identify" rel="noopener noreferrer"&gt;identify, group, track&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you send the feature event?
&lt;/h2&gt;

&lt;p&gt;Call &lt;code&gt;track()&lt;/code&gt; when the person uses the feature. It is tied to whatever &lt;code&gt;identify&lt;/code&gt; and &lt;code&gt;group&lt;/code&gt; calls came before it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;track&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"clicked_upgrade_cta"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"growth"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use clear, stable names. For a feature, something like &lt;code&gt;exported_report&lt;/code&gt; tells you more than &lt;code&gt;click_7&lt;/code&gt;. The name is your choice. Properties can be strings, numbers, booleans or null.&lt;/p&gt;

&lt;p&gt;If the action happens on your server, send the event from the backend with your Secret key and an &lt;code&gt;accountId&lt;/code&gt;. The endpoint is &lt;code&gt;POST /ingest/events/track&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST https://api.justonecx.com/ingest/events/track \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $JUSTONECX_SECRET_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"userId": "user-123", "eventName": "subscription_upgraded", "accountId": "acme", "properties": {"plan": "pro"}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server events count toward analytics, segments and funnels like browser events. See &lt;a href="https://dev.to/blog/server-side-event-tracking-saas"&gt;server-side event tracking for SaaS&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the Analytics page show?
&lt;/h2&gt;

&lt;p&gt;The Analytics page has several views. According to the docs they are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Activation.&lt;/strong&gt; Activation rate and median time to value for new identified users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feature adoption.&lt;/strong&gt; Accounts that used each event, as described above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stickiness.&lt;/strong&gt; DAU, WAU and MAU, plus DAU/WAU and WAU/MAU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Friction signals.&lt;/strong&gt; Rage clicks, dead clicks and JavaScript errors, sent by the SDK itself. No session recording.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Funnels.&lt;/strong&gt; Two to four steps. See &lt;a href="https://dev.to/blog/product-funnel-analysis-saas"&gt;product funnel analysis for SaaS&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The overview is cached for up to 60 seconds, and the page shows "Updated N s ago".&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you read the adoption numbers?
&lt;/h2&gt;

&lt;p&gt;Read each event as a share of active accounts. A few things to check.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pick the period first.&lt;/strong&gt; Adoption depends on the period you choose, so compare like with like.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare features with each other.&lt;/strong&gt; A low share is not bad on its own if the feature is for a small group. It is a signal to look closer when you expected wide use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the denominator.&lt;/strong&gt; Accounts that sent any event in the period form the base. If few accounts are active, the share can swing a lot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-check with stickiness.&lt;/strong&gt; DAU, WAU and MAU show whether people come back.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These reading tips are general analytics practice. After you find a gap, you can act on it. For example, show a tour or an announcement to accounts that never used the feature. A segment with the &lt;strong&gt;Never performed event&lt;/strong&gt; attribute fits this. See &lt;a href="https://dev.to/blog/user-segmentation-saas"&gt;user segmentation for SaaS&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why must adoption be account-based?
&lt;/h2&gt;

&lt;p&gt;Adoption counts accounts, not single users. That fits B2B products, where one company has many users. An account with ten users who all use a feature counts once. This is why &lt;code&gt;group()&lt;/code&gt; or an account in &lt;code&gt;identify()&lt;/code&gt; is required.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What do I need to send for feature adoption?
&lt;/h3&gt;

&lt;p&gt;Events tied to an account. Use &lt;code&gt;group()&lt;/code&gt; or an account in &lt;code&gt;identify()&lt;/code&gt;, then &lt;code&gt;track()&lt;/code&gt; the feature event.&lt;/p&gt;

&lt;h3&gt;
  
  
  How is feature adoption calculated?
&lt;/h3&gt;

&lt;p&gt;For each event name: accounts that sent it in the period divided by accounts that sent any event in the period. Friction events are left out.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why is my adoption chart empty?
&lt;/h3&gt;

&lt;p&gt;An empty chart says which data is missing. Check that your events are tied to an account: call &lt;code&gt;group()&lt;/code&gt; (or pass an account in &lt;code&gt;identify()&lt;/code&gt;) before &lt;code&gt;track()&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I send adoption events from my server?
&lt;/h3&gt;

&lt;p&gt;Yes. Use &lt;code&gt;POST /ingest/events/track&lt;/code&gt; with the Secret key, a &lt;code&gt;userId&lt;/code&gt; and an &lt;code&gt;accountId&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>featureadoption</category>
      <category>events</category>
    </item>
    <item>
      <title>Intercom alternatives for small SaaS: what to compare in 2026</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/intercom-alternatives-for-small-saas-what-to-compare-in-2026-697</link>
      <guid>https://dev.to/justonecx/intercom-alternatives-for-small-saas-what-to-compare-in-2026-697</guid>
      <description>&lt;p&gt;Intercom is built around support: an inbox, a Messenger, tickets and an AI agent. For a small SaaS the question is usually not "which tool is best" but "which one prices in a way that suits my team, and do I want more than chat". This post compares the common alternatives on those two things. Prices were read from each vendor's own page on 2026-11-05 and can change.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does Intercom price?
&lt;/h2&gt;

&lt;p&gt;Per seat. On its pricing page Essential is $19 per seat per month, Advanced $85 and Expert $132, with at least one full seat on Essential. The Fin AI Agent is priced separately, from $0.99 per outcome. The page does not say whether $19 is the monthly or the annual rate. All plans include unlimited live chat, in-app chats, banners and tooltips, according to the page.&lt;/p&gt;

&lt;p&gt;Per-seat pricing suits a small team with many users. It gets expensive as the number of people answering grows.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the alternatives?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;How it prices&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Tidio&lt;/td&gt;
&lt;td&gt;By billable conversations. Free plan with 50, Starter $24.17 per month, Growth from $49.17&lt;/td&gt;
&lt;td&gt;Live chat, ticketing and an AI agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Featurebase&lt;/td&gt;
&lt;td&gt;Per seat. Free plan for one seat, Growth $29 per seat per month&lt;/td&gt;
&lt;td&gt;Feedback boards, roadmap, changelog, surveys, live chat and help center&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Crisp&lt;/td&gt;
&lt;td&gt;Per workspace. Free plan, Mini $45 per month (checked November 2026)&lt;/td&gt;
&lt;td&gt;Support suite: inbox, chat widget, chatbot, help center&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JustOneCX&lt;/td&gt;
&lt;td&gt;By monthly active users. Starter $199 per month for up to 2,000 MAU&lt;/td&gt;
&lt;td&gt;Chat and help center with tours, announcements, surveys, a feature board and analytics&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Which one fits which team?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chat and tickets are the whole job, volume is low:&lt;/strong&gt; Tidio's conversation-based pricing and its free plan are the cheapest way to start.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You also want a feedback board and a changelog:&lt;/strong&gt; Featurebase puts those next to chat, priced per seat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want a flat price per workspace for support:&lt;/strong&gt; Crisp.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You also want tours, surveys and analytics for the people inside your app:&lt;/strong&gt; a one-platform tool such as JustOneCX avoids running four tools. I am the builder of JustOneCX, so weigh that. It has no free plan; there is a live demo you can try without signing up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Support is your whole business, with a large team:&lt;/strong&gt; Intercom goes deeper than the others here.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What should you compare before switching?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The unit.&lt;/strong&gt; Seats, conversations, workspaces or monthly active users. Which one grows when you grow?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What is included.&lt;/strong&gt; Is the help center in the price? Surveys? A feedback board?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where chat shows.&lt;/strong&gt; Inside your app, with the user's context, or only on a website.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Moving cost.&lt;/strong&gt; Conversation history and saved replies do not always move. Run both for a while.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Next steps
&lt;/h2&gt;

&lt;p&gt;See the &lt;a href="https://dev.to/alternatives/intercom"&gt;Intercom alternative page&lt;/a&gt; for a feature-by-feature table, the &lt;a href="https://dev.to/best/live-chat-for-saas"&gt;best live chat for SaaS&lt;/a&gt; list, or work out what your stack costs with the &lt;a href="https://dev.to/tools/cx-stack-cost-calculator"&gt;CX stack cost calculator&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>chat</category>
      <category>support</category>
      <category>comparison</category>
    </item>
    <item>
      <title>In-app survey trigger events: show a survey after an action</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/in-app-survey-trigger-events-show-a-survey-after-an-action-51la</link>
      <guid>https://dev.to/justonecx/in-app-survey-trigger-events-show-a-survey-after-an-action-51la</guid>
      <description>&lt;p&gt;To trigger an in-app survey from an event, set the survey trigger to &lt;strong&gt;event&lt;/strong&gt; in the builder, enter an event name, and call &lt;code&gt;track()&lt;/code&gt; with that exact name in your code. The next matching call shows the survey once. You can also send the event from your server with the Secret key.&lt;/p&gt;

&lt;p&gt;An event trigger lets you ask right after something happens, such as finishing onboarding or completing a purchase. The code on this page comes from the &lt;a href="https://docs.justonecx.com/guides/surveys" rel="noopener noreferrer"&gt;surveys guide&lt;/a&gt; and the &lt;a href="https://docs.justonecx.com/api/server-events" rel="noopener noreferrer"&gt;server events API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is an event trigger?
&lt;/h2&gt;

&lt;p&gt;A survey can open in three ways: on page load, after scrolling, or when your code sends a specific event. The event option ties the survey to a moment in your product. The person has just done something, so the question is fresh.&lt;/p&gt;

&lt;p&gt;Your event names are your own. You choose a name such as &lt;code&gt;completed_onboarding&lt;/code&gt; and use the same string in the builder and in your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you trigger a survey from track()?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Surveys&lt;/strong&gt; and create or edit a survey.&lt;/li&gt;
&lt;li&gt;Set the trigger to &lt;strong&gt;event&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter the event name, for example &lt;code&gt;completed_onboarding&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Publish the survey.&lt;/li&gt;
&lt;li&gt;Call &lt;code&gt;track()&lt;/code&gt; in your code when the action happens.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;track&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@justonecx/sdk"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;track&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"completed_onboarding"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The next &lt;code&gt;track()&lt;/code&gt; call with that exact name shows the survey once. The name must match exactly, so check spelling and case.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;track()&lt;/code&gt; runs after &lt;code&gt;init()&lt;/code&gt;. Its signature is &lt;code&gt;track(eventName: string, properties?: Traits): void&lt;/code&gt;. See &lt;a href="https://docs.justonecx.com/api/identify" rel="noopener noreferrer"&gt;identify, group, track&lt;/a&gt; for details.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you show a survey once per order, ticket or purchase?
&lt;/h2&gt;

&lt;p&gt;By default a person sees a survey once, or again after a throttle period. To ask after every order instead, set &lt;strong&gt;Show once per (event property)&lt;/strong&gt; in the &lt;strong&gt;Delivery&lt;/strong&gt; panel of the survey builder. This option is for event triggers only. Enter a property name, for example &lt;code&gt;order_id&lt;/code&gt;, and send that property with the event:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;track&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"purchase_completed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"A-1042"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The survey now shows at most once for each different &lt;code&gt;order_id&lt;/code&gt;, for each person. A second &lt;code&gt;track()&lt;/code&gt; with the same order does nothing, whether the person answered or dismissed.&lt;/p&gt;

&lt;p&gt;Every order is a new chance to ask. For that reason, the Frequency setting and the throttle between surveys do not apply to a survey with this option.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you trigger a survey from your server?
&lt;/h2&gt;

&lt;p&gt;Some events never reach the browser: a payment webhook, a finished job, a shipped order. You can send these from your backend with the Secret key. Use the same property as in the browser call, and send a &lt;code&gt;userId&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The endpoint is &lt;code&gt;POST /ingest/events/track&lt;/code&gt;. The fields are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;userId&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Your own user id, the one you pass to &lt;code&gt;identify()&lt;/code&gt;. Recommended.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;visitorId&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;One browser's visitor id. Use only if you have it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;accountId&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Optional. Links the person to an account, like &lt;code&gt;group()&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;eventName&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;For example &lt;code&gt;purchase_completed&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;properties&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Optional. Strings, numbers, booleans or null.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Example with curl, adapted from the docs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST https://api.justonecx.com/ingest/events/track \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $JUSTONECX_SECRET_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"userId": "user-123", "eventName": "purchase_completed", "properties": {"order_id": "A-1042"}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The call returns &lt;code&gt;204&lt;/code&gt; and no body. The survey then shows on that person's next page load, once for that order.&lt;/p&gt;

&lt;p&gt;Keep the Secret key on the server. Set it as &lt;code&gt;JUSTONECX_SECRET_KEY&lt;/code&gt; in your server environment and never put it in browser code. See &lt;a href="https://docs.justonecx.com/guides/keys" rel="noopener noreferrer"&gt;Keys&lt;/a&gt;. More on this approach is in &lt;a href="https://dev.to/blog/server-side-event-tracking-saas"&gt;server-side event tracking for SaaS&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does the person need to be identified?
&lt;/h2&gt;

&lt;p&gt;A server event with &lt;code&gt;userId&lt;/code&gt; goes to that person's profile across all their browsers. If the person has never opened your app, a profile is created and joins the later &lt;code&gt;identify()&lt;/code&gt; for the same id. So call &lt;code&gt;identify()&lt;/code&gt; with the same id in your app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;identify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"user-42"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"growth"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For identity and trust, see &lt;a href="https://dev.to/blog/identify-users-sdk"&gt;identify users with the SDK&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What if the event fires on a different page?
&lt;/h2&gt;

&lt;p&gt;You can add page rules to the survey in its &lt;strong&gt;Settings&lt;/strong&gt; tab. A survey with page rules only opens when the visitor is on a matching page. An event trigger that fires on another page waits and shows when the person reaches a matching page.&lt;/p&gt;

&lt;h2&gt;
  
  
  What errors can the server call return?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;400&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The body has neither &lt;code&gt;userId&lt;/code&gt; nor &lt;code&gt;visitorId&lt;/code&gt;, or a field is too long or the wrong type.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;401&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The Secret key is missing, wrong or was rotated.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;429&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Too many calls for this key (3000 per minute). Slow down and retry.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does the event name have to match exactly?
&lt;/h3&gt;

&lt;p&gt;Yes. The next &lt;code&gt;track()&lt;/code&gt; call with that exact name shows the survey once.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I ask after every order?
&lt;/h3&gt;

&lt;p&gt;Set &lt;strong&gt;Show once per (event property)&lt;/strong&gt; in the &lt;strong&gt;Delivery&lt;/strong&gt; panel, for example &lt;code&gt;order_id&lt;/code&gt;, and send that property with &lt;code&gt;track()&lt;/code&gt;. The survey shows at most once for each different value.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I trigger a survey without the browser?
&lt;/h3&gt;

&lt;p&gt;Yes. Send the event from your server with the Secret key, using &lt;code&gt;userId&lt;/code&gt; and the same property. The survey shows on the person's next page load.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the Frequency setting apply to once-per-order surveys?
&lt;/h3&gt;

&lt;p&gt;No. The Frequency setting and the throttle between surveys do not apply when you use &lt;strong&gt;Show once per (event property)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>surveys</category>
      <category>events</category>
      <category>sdk</category>
    </item>
    <item>
      <title>In-app survey best practices: timing, frequency and follow-ups</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Sat, 21 Nov 2026 18:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/in-app-survey-best-practices-timing-frequency-and-follow-ups-3j03</link>
      <guid>https://dev.to/justonecx/in-app-survey-best-practices-timing-frequency-and-follow-ups-3j03</guid>
      <description>&lt;p&gt;The best in-app surveys ask one clear question, right after the action they are about, to the right people, and not too often. Trigger on an event, limit how often a person sees it, add follow-ups by score band, test before you publish, and read the answers on the Results tab.&lt;/p&gt;

&lt;p&gt;The advice on timing and wording is general practice. The settings named below come from the &lt;a href="https://docs.justonecx.com/guides/surveys" rel="noopener noreferrer"&gt;surveys guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should an in-app survey appear?
&lt;/h2&gt;

&lt;p&gt;Ask right after the action the question is about. Someone who just finished onboarding can say how it went. Someone who is halfway through a task will find a survey annoying and may not answer honestly.&lt;/p&gt;

&lt;p&gt;Use an event trigger for this. Set the survey trigger to &lt;strong&gt;event&lt;/strong&gt;, enter an event name, and call &lt;code&gt;track()&lt;/code&gt; when the moment happens:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;track&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@justonecx/sdk"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;track&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"completed_onboarding"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The next &lt;code&gt;track()&lt;/code&gt; call with that exact name shows the survey once. The other triggers are page load and scroll. They suit general questions, such as an NPS for established users. See &lt;a href="https://dev.to/blog/in-app-survey-trigger-events"&gt;in-app survey trigger events&lt;/a&gt; for more.&lt;/p&gt;

&lt;h2&gt;
  
  
  How often should you ask?
&lt;/h2&gt;

&lt;p&gt;By default a person sees a survey once, or again after a throttle period. Set the repeat frequency in the builder (step 5 of the create flow) and keep it low. Asking the same person again and again lowers answer quality and wears out their patience.&lt;/p&gt;

&lt;p&gt;There is one case where you ask more often on purpose: after every order, ticket or purchase. Set &lt;strong&gt;Show once per (event property)&lt;/strong&gt; in the &lt;strong&gt;Delivery&lt;/strong&gt; panel, for example &lt;code&gt;order_id&lt;/code&gt;, and send the property:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;track&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"purchase_completed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"A-1042"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The survey shows at most once for each different &lt;code&gt;order_id&lt;/code&gt;, for each person. A repeat &lt;code&gt;track()&lt;/code&gt; with the same order does nothing, whether the person answered or dismissed. Because every order is a new chance to ask, the Frequency setting and the throttle do not apply to such a survey.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you choose the right people?
&lt;/h2&gt;

&lt;p&gt;Not every visitor should see every survey. Open the survey's &lt;strong&gt;Settings&lt;/strong&gt; tab. Surveys use the same targeting editor as tours and announcements. You choose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Who sees it, using segments and conditions.&lt;/li&gt;
&lt;li&gt;Which pages, using "show on" and "hide on" rules.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The server applies the audience before content is sent. A person outside it never receives the survey. Read &lt;a href="https://dev.to/blog/user-segmentation-saas"&gt;user segmentation for SaaS&lt;/a&gt; and the &lt;a href="https://docs.justonecx.com/guides/targeting" rel="noopener noreferrer"&gt;targeting guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A survey with page rules only opens when the visitor is on a matching page. If an event fires on another page, the survey waits and shows when the person reaches a matching page.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you pick the survey type?
&lt;/h2&gt;

&lt;p&gt;Choose the type by the decision you want to make. NPS asks about the overall relationship, CSAT about one interaction, and CES about how easy a task was. The &lt;a href="https://dev.to/blog/nps-vs-csat-vs-ces"&gt;NPS vs CSAT vs CES&lt;/a&gt; article compares them.&lt;/p&gt;

&lt;p&gt;Pick the type before you publish. A survey type cannot change after its first response.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should you add follow-up questions?
&lt;/h2&gt;

&lt;p&gt;Yes, when a number alone will not tell you what to fix. You can show different follow-up questions by score band. For example, ask a detractor what went wrong and ask a promoter what they value most.&lt;/p&gt;

&lt;p&gt;Keep follow-ups short. One extra question is usually enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you test a survey before it goes live?
&lt;/h2&gt;

&lt;p&gt;Use the &lt;strong&gt;Test survey&lt;/strong&gt; mode in the builder to see the survey without saving a response. Check the wording, the placement and the page rules. A test that saves no response keeps your results clean.&lt;/p&gt;

&lt;p&gt;Also check the trigger. If you use an event, call &lt;code&gt;track()&lt;/code&gt; with the exact name and confirm the survey appears on the page you expect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where should the survey appear on screen?
&lt;/h2&gt;

&lt;p&gt;You can show a survey as a slide-out, a modal or a banner. A modal asks for full attention. A slide-out or banner is easier to ignore. Choose by how important the question is. This is general design advice.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you read the answers?
&lt;/h2&gt;

&lt;p&gt;Responses appear under the survey on the &lt;strong&gt;Results&lt;/strong&gt; tab. For deeper work, choose &lt;strong&gt;Download responses (CSV)&lt;/strong&gt;. The file has one row per response with the answers, score, person and time.&lt;/p&gt;

&lt;p&gt;Look at the follow-up text next to the score. A few written comments often show a pattern faster than the average does. When you find a pattern, tie it to something you can change, then ask again later with a new survey or a fresh trigger.&lt;/p&gt;

&lt;p&gt;If you have not built a survey yet, follow &lt;a href="https://dev.to/blog/add-nps-survey-to-web-app"&gt;how to add an NPS survey to your web app&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is the best time to show a survey?
&lt;/h3&gt;

&lt;p&gt;Right after the action it asks about. Use an event trigger and call &lt;code&gt;track()&lt;/code&gt; when that action finishes.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I keep from asking the same person too often?
&lt;/h3&gt;

&lt;p&gt;By default a person sees a survey once, or again after a throttle period. Set the repeat frequency in the builder. For per-order surveys, &lt;strong&gt;Show once per (event property)&lt;/strong&gt; limits it to once per property value.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I show a different follow-up to unhappy users?
&lt;/h3&gt;

&lt;p&gt;Yes. You can show different follow-up questions by score band, for example one prompt for detractors and another for promoters.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I preview a survey without collecting answers?
&lt;/h3&gt;

&lt;p&gt;Use the &lt;strong&gt;Test survey&lt;/strong&gt; mode in the builder. It shows the survey without saving a response.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>surveys</category>
      <category>feedback</category>
      <category>bestpractices</category>
    </item>
    <item>
      <title>In-app announcement best practices: formats, targeting and timing</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Sat, 21 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/in-app-announcement-best-practices-formats-targeting-and-timing-100d</link>
      <guid>https://dev.to/justonecx/in-app-announcement-best-practices-formats-targeting-and-timing-100d</guid>
      <description>&lt;p&gt;A good in-app announcement has one message, the right format, a clear call to action and the right audience. In JustOneCX you pick a format, set a schedule, choose who sees it and how often, preview it, and publish. This guide walks through each choice.&lt;/p&gt;

&lt;p&gt;The settings come from the &lt;a href="https://docs.justonecx.com/guides/announcements" rel="noopener noreferrer"&gt;announcements guide&lt;/a&gt;. Advice on what to write is general practice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is an in-app announcement?
&lt;/h2&gt;

&lt;p&gt;An announcement is a message you show inside your product: a new feature, a maintenance notice or a promotion. Visitors see it where they already are, so it reaches people who use the product.&lt;/p&gt;

&lt;p&gt;Announcements are separate from your public changelog. See &lt;a href="https://dev.to/blog/how-to-write-a-changelog"&gt;how to write a changelog&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you create one?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Announcements&lt;/strong&gt; in the dashboard and create one.&lt;/li&gt;
&lt;li&gt;On the &lt;strong&gt;Builder&lt;/strong&gt; tab, pick a format (modal, slideout, banner or changelog popover) and write the content.&lt;/li&gt;
&lt;li&gt;On the &lt;strong&gt;Settings&lt;/strong&gt; tab, set the &lt;strong&gt;Schedule&lt;/strong&gt;, then under &lt;strong&gt;Targeting&lt;/strong&gt; choose who sees it (everyone, or a segment) and how often. An &lt;strong&gt;A/B test&lt;/strong&gt; section is there too.&lt;/li&gt;
&lt;li&gt;Publish.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Use &lt;strong&gt;Preview&lt;/strong&gt; in the header to click through the announcement before it goes live. Results are on the &lt;strong&gt;Results&lt;/strong&gt; tab.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which format should you pick?
&lt;/h2&gt;

&lt;p&gt;There are four formats.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Behaviour&lt;/th&gt;
&lt;th&gt;Fits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Modal&lt;/td&gt;
&lt;td&gt;Centre of the screen, asks for attention&lt;/td&gt;
&lt;td&gt;Something most people must see&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Slide-out&lt;/td&gt;
&lt;td&gt;A panel at the side&lt;/td&gt;
&lt;td&gt;A new feature with a short explanation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Banner&lt;/td&gt;
&lt;td&gt;Pinned to the top of the page, needs no target element&lt;/td&gt;
&lt;td&gt;A notice such as maintenance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changelog popover&lt;/td&gt;
&lt;td&gt;Points at your changelog&lt;/td&gt;
&lt;td&gt;A summary of what is new&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The banner behaviour is from the docs. The "fits" column is general advice. Use a modal sparingly, since it blocks the page. For small news, a banner or slide-out is less disruptive.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should it run?
&lt;/h2&gt;

&lt;p&gt;Set the &lt;strong&gt;Schedule&lt;/strong&gt; on the &lt;strong&gt;Settings&lt;/strong&gt; tab. A schedule has a start and an end time, which suits a launch, a maintenance window or a time-limited offer. Match the end time to the end of the event, so a stale message does not stay on screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who should see it?
&lt;/h2&gt;

&lt;p&gt;Under &lt;strong&gt;Targeting&lt;/strong&gt;, choose everyone or a segment. Announcements use the same targeting model as tours and surveys, so you can use segments, conditions and page rules. Read &lt;a href="https://dev.to/blog/user-segmentation-saas"&gt;user segmentation for SaaS&lt;/a&gt; and the &lt;a href="https://docs.justonecx.com/guides/targeting" rel="noopener noreferrer"&gt;targeting guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Good targets are plain. Tell people about a feature they can use. For example, target accounts on the plan that has it, or people who never performed the related event. Leaving targeting empty shows it to everyone, everywhere.&lt;/p&gt;

&lt;p&gt;The server applies the audience before content is sent, so people outside it never receive the announcement.&lt;/p&gt;

&lt;h2&gt;
  
  
  How often should it show?
&lt;/h2&gt;

&lt;p&gt;Set how often under &lt;strong&gt;Targeting&lt;/strong&gt;. A visitor who dismisses an announcement does not see it again. Keep the frequency low so a message does not feel like nagging. One notice per topic is a good rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should the call-to-action button do?
&lt;/h2&gt;

&lt;p&gt;An announcement can have a call-to-action button that opens a link or starts a tour. Pick one action. If the news is a new feature, a button that starts a tour of it lets people try it right away. Read &lt;a href="https://dev.to/blog/product-tour-best-practices"&gt;product tour best practices&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Only &lt;code&gt;http&lt;/code&gt; and &lt;code&gt;https&lt;/code&gt; links are allowed in announcement content. Other link types are removed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should you A/B test an announcement?
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;A/B test&lt;/strong&gt; section on the &lt;strong&gt;Settings&lt;/strong&gt; tab is there for this. Test one change at a time, such as the headline or the button text, so you know what caused a difference. Check the Results tab to compare. The docs describe the section but not its detailed behaviour, so open it in the dashboard to see the options.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you preview before publishing?
&lt;/h2&gt;

&lt;p&gt;Use &lt;strong&gt;Preview&lt;/strong&gt; in the header. It lets you click through the announcement before it goes live. Check the text, the button and how it looks next to your own page.&lt;/p&gt;

&lt;p&gt;Announcements and tours load independently. A problem with one never blocks the other.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does this relate to the changelog and What's new?
&lt;/h2&gt;

&lt;p&gt;Announcements are messages inside your product. Your public changelog is separate. You write and publish its entries under &lt;strong&gt;Roadmap &amp;amp; Changelog &amp;gt; Changelog&lt;/strong&gt;. Publishing an entry can also create a banner announcement that links to it. See &lt;a href="https://dev.to/blog/whats-new-widget"&gt;what's new widget&lt;/a&gt; for an in-app panel with an unread badge.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Which formats can an announcement use?
&lt;/h3&gt;

&lt;p&gt;Modal, slideout, banner or changelog popover.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will a visitor see a dismissed announcement again?
&lt;/h3&gt;

&lt;p&gt;No. A visitor who dismisses an announcement does not see it again.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can the button start a tour?
&lt;/h3&gt;

&lt;p&gt;Yes. An announcement can have a call-to-action button that opens a link or starts a tour.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I check an announcement before it goes live?
&lt;/h3&gt;

&lt;p&gt;Yes. Use &lt;strong&gt;Preview&lt;/strong&gt; in the header to click through it before you publish.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>announcements</category>
      <category>releasecommunication</category>
      <category>targeting</category>
    </item>
    <item>
      <title>How to identify users with the JustOneCX SDK</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Fri, 20 Nov 2026 18:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/how-to-identify-users-with-the-justonecx-sdk-2507</link>
      <guid>https://dev.to/justonecx/how-to-identify-users-with-the-justonecx-sdk-2507</guid>
      <description>&lt;p&gt;To identify users with the JustOneCX SDK, call &lt;code&gt;identify(userId, traits)&lt;/code&gt; after the user signs in, &lt;code&gt;group(accountId, traits)&lt;/code&gt; to set their account, and &lt;code&gt;reset()&lt;/code&gt; when they sign out. Traits are properties such as plan or role that merge into the profile. Add a &lt;code&gt;userHash&lt;/code&gt; from your server so nobody can claim another person's id.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does identify() do?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;identify()&lt;/code&gt; tells JustOneCX who the current user is.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;identify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"user-42"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"admin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"growth"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Traits merge into what the user already has. Call it on every page load after login, not only on the login event, to keep traits fresh. The order relative to &lt;code&gt;init()&lt;/code&gt; does not matter. A call made before &lt;code&gt;init()&lt;/code&gt; is queued and runs when &lt;code&gt;init()&lt;/code&gt; does.&lt;/p&gt;

&lt;p&gt;The signature is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;identify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;traits&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="nc"&gt;Traits&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;userHash&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The promise resolves when the backend has saved the traits. It never rejects. If you need targeted tours to appear straight away, await it and then call &lt;code&gt;init()&lt;/code&gt; again. Traits must be saved before targeting can match them.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should you call group()?
&lt;/h2&gt;

&lt;p&gt;Call &lt;code&gt;group()&lt;/code&gt; to set the account, company, team or organisation the user belongs to.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"acme-inc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"growth"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;seats&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The signature is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;accountId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;traits&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="nc"&gt;Traits&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;accountHash&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;accountHash&lt;/code&gt; is the HMAC signature of &lt;code&gt;accountId&lt;/code&gt;, computed the same way as &lt;code&gt;userHash&lt;/code&gt;. Call &lt;code&gt;group()&lt;/code&gt; right after &lt;code&gt;identify()&lt;/code&gt; for products where people work in shared accounts. This lets you read analytics and votes by account.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are traits?
&lt;/h2&gt;

&lt;p&gt;Traits are key and value pairs about a person or an account. Examples are &lt;code&gt;role&lt;/code&gt;, &lt;code&gt;plan&lt;/code&gt; and &lt;code&gt;seats&lt;/code&gt;. Use them for targeting and for reading your data. Keep trait names stable. Changing &lt;code&gt;plan&lt;/code&gt; to &lt;code&gt;tier&lt;/code&gt; later splits your data.&lt;/p&gt;

&lt;p&gt;Do not put secrets or unstructured personal notes in traits. Send only what you need for targeting and analysis. To see how audiences use traits, read the user segmentation article.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should you call reset()?
&lt;/h2&gt;

&lt;p&gt;Call &lt;code&gt;reset()&lt;/code&gt; when the user signs out.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;reset&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@justonecx/sdk"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                    &lt;span class="c1"&gt;// clear identity, start a new anonymous visitor, run init() again&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;remount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// clear only, do not run init() again&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The visitor id is a permanent id in &lt;code&gt;localStorage&lt;/code&gt;. On a shared browser, the next person who signs in would otherwise inherit the previous person's open chat and other visitor state. &lt;code&gt;reset()&lt;/code&gt; removes the chat bubble, stops any tour still playing, deletes the stored visitor id and creates a new one. Then it runs &lt;code&gt;init()&lt;/code&gt; again unless you pass &lt;code&gt;remount: false&lt;/code&gt;. A new chat bubble appears after &lt;code&gt;reset()&lt;/code&gt;. This is by design.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is userHash and why use it?
&lt;/h2&gt;

&lt;p&gt;Your Public key is in your page source, so anyone can read it. Without more protection, any page that has it can call &lt;code&gt;identify("someone-else")&lt;/code&gt;. The &lt;code&gt;identify()&lt;/code&gt; call alone is not proof of identity.&lt;/p&gt;

&lt;p&gt;Identity verification closes that gap. After sign-in, your server signs the user id with the Secret key. The SDK sends the result as &lt;code&gt;userHash&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;createHmac&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"node:crypto"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;userHash&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createHmac&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sha256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;JUSTONECX_SECRET_KEY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"hex"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then pass it in the browser:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;identify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;plan&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;userHash&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;plan&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;accountHash&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sign exactly the same string you pass to &lt;code&gt;identify()&lt;/code&gt;. A number in one place and a string in the other gives a rejected hash.&lt;/p&gt;

&lt;p&gt;The Secret key stays in your server environment as &lt;code&gt;JUSTONECX_SECRET_KEY&lt;/code&gt;. Never compute the hash in the browser. Turn on &lt;strong&gt;Require identity verification&lt;/strong&gt; in &lt;strong&gt;Settings → Developers → Identity verification&lt;/strong&gt; only after your live site sends &lt;code&gt;userHash&lt;/code&gt;. If you turn it on first, all your existing users count as unverified. See &lt;a href="https://docs.justonecx.com/guides/identity-verification" rel="noopener noreferrer"&gt;identity verification&lt;/a&gt; and the post on &lt;a href="https://dev.to/blog/secure-identify-user-hash"&gt;securing identify with a user hash&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;When verification is on and you do not pass &lt;code&gt;userHash&lt;/code&gt;, the call is rejected and the SDK logs &lt;code&gt;identify() was rejected&lt;/code&gt; in the browser console.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the single-page app gotcha?
&lt;/h2&gt;

&lt;p&gt;In a single-page app the browser does not reload when the route changes. The SDK then does not fetch content for the new page. Tours and announcements do not change when the page changes.&lt;/p&gt;

&lt;p&gt;Pass &lt;code&gt;trackRouteChanges: true&lt;/code&gt; to &lt;code&gt;init()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;init&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@justonecx/sdk"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;publicKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pk_your_workspace_key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;apiUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://api.justonecx.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;trackRouteChanges&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the script tag, use &lt;code&gt;data-track-route-changes="true"&lt;/code&gt;. Leave it off if you already call &lt;code&gt;init()&lt;/code&gt; from your router. Calling &lt;code&gt;init()&lt;/code&gt; again is safe. A tour or announcement already on screen is not shown a second time.&lt;/p&gt;

&lt;p&gt;Also call &lt;code&gt;init()&lt;/code&gt; in the browser only. In a framework, call &lt;code&gt;init()&lt;/code&gt; in your top-level component and &lt;code&gt;identify()&lt;/code&gt; in an effect that runs after it. If you see &lt;code&gt;identify() called before init()&lt;/code&gt;, that order is the cause. If a tour still does not appear, see &lt;a href="https://dev.to/blog/product-tour-not-showing"&gt;product tour not showing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does one person on two devices count once?
&lt;/h2&gt;

&lt;p&gt;The visitor id is per browser. If the same user calls &lt;code&gt;identify("user-42")&lt;/code&gt; from two devices, JustOneCX links both to the same person for analytics and targeting. Chat is the exception. A conversation stays with the browser that started it, so a claimed identity cannot read another person's chat history.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Should I call identify() only at login?
&lt;/h3&gt;

&lt;p&gt;No. Call it on every page load after login to keep traits fresh.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the order of init() and identify() matter?
&lt;/h3&gt;

&lt;p&gt;No. An &lt;code&gt;identify()&lt;/code&gt; call made before &lt;code&gt;init()&lt;/code&gt; is queued and runs when &lt;code&gt;init()&lt;/code&gt; does.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens to a call without a valid hash?
&lt;/h3&gt;

&lt;p&gt;When verification is on, the call returns normally but is ignored. It cannot merge into another person's profile or change their traits.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where do I find the full API?
&lt;/h3&gt;

&lt;p&gt;See the &lt;a href="https://docs.justonecx.com/api/identify" rel="noopener noreferrer"&gt;identify, group, track reference&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>sdk</category>
      <category>identity</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to write a changelog customers read</title>
      <dc:creator>JustOneCX</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/justonecx/how-to-write-a-changelog-customers-read-52g2</link>
      <guid>https://dev.to/justonecx/how-to-write-a-changelog-customers-read-52g2</guid>
      <description>&lt;p&gt;A changelog is a list of dated entries that tell customers what changed in your product. To write one well, start each entry with the customer benefit, say in two or three sentences what changed and where to find it, and publish entries newest first. In JustOneCX you write and publish entries in the Roadmap &amp;amp; Changelog module, and customers can mark each one helpful.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should one changelog entry contain?
&lt;/h2&gt;

&lt;p&gt;Keep every entry to the same shape. Readers learn the shape and scan faster.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A title that names the change.&lt;/strong&gt; Use the words a customer would use. "Export reports as CSV" is better than "Reporting module v2".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One sentence on the benefit.&lt;/strong&gt; What can the customer do now that they could not do before?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two or three sentences of detail.&lt;/strong&gt; Where is it? How do they start?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A link or a picture, if it helps.&lt;/strong&gt; A link to the page, or a screenshot of the new screen.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Leave out internal ticket numbers, code names and long lists of small fixes. If you fixed a dozen small bugs, one line is enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you use your customers' words?
&lt;/h2&gt;

&lt;p&gt;Write the way the customer asked. If ten people voted for "Add a Zapier integration", the entry title should say "Zapier integration". Do not rename it to something that sounds more like your team.&lt;/p&gt;

&lt;p&gt;This is also why the changelog works well next to an ideas board. The idea already has the wording, the votes and the people who care. When the idea is done, the entry can reuse its words. The same idea is covered in the feedback board to changelog guide.&lt;/p&gt;

&lt;p&gt;Do not copy a person's comment into a public entry without their permission. Describe the request in your own sentence instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does an idea become a changelog entry?
&lt;/h2&gt;

&lt;p&gt;In the Roadmap &amp;amp; Changelog module the path is short.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A customer submits an idea, or you add one yourself.&lt;/li&gt;
&lt;li&gt;You move it through the roadmap: &lt;strong&gt;Planned&lt;/strong&gt;, &lt;strong&gt;In progress&lt;/strong&gt;, &lt;strong&gt;Shipped&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;When you mark it &lt;strong&gt;Shipped&lt;/strong&gt;, its voters get an email and a changelog &lt;strong&gt;draft&lt;/strong&gt; is created for it.&lt;/li&gt;
&lt;li&gt;You edit the draft in the &lt;strong&gt;Changelog&lt;/strong&gt; tab and publish it. Optionally, publishing also shows a banner in your product that links to the entry.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Nothing reaches the changelog until you publish it. For a change that no customer asked for, you can write an entry directly in the Changelog tab.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where do customers see the changelog?
&lt;/h2&gt;

&lt;p&gt;You turn each place on or off in &lt;strong&gt;Roadmap &amp;amp; Changelog &amp;gt; Publish&lt;/strong&gt;. All of them show the same entries, newest first.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;On your website&lt;/strong&gt;, with an embedded board. See the embed guide in the docs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On your own subdomain&lt;/strong&gt;, such as &lt;code&gt;roadmap.yourcompany.com&lt;/code&gt;. See &lt;a href="https://dev.to/blog/roadmap-custom-domain"&gt;roadmap custom domain&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On the hosted page&lt;/strong&gt; at &lt;code&gt;boards.justonecx.com/&amp;lt;workspace-slug&amp;gt;/changelog&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The embed for a plain HTML page is one element:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;justonecx-changelog&amp;gt;&amp;lt;/justonecx-changelog&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Put it after the SDK script tag, or call &lt;code&gt;mountChangelog&lt;/code&gt; from your framework code after mount.&lt;/p&gt;

&lt;p&gt;Each entry has its own link, for example under &lt;code&gt;/&amp;lt;workspace-slug&amp;gt;/ideas/...&lt;/code&gt; for ideas. You can also turn on &lt;strong&gt;Offer an RSS feed of the changelog&lt;/strong&gt; in the Publish tab. It serves a feed at &lt;code&gt;/&amp;lt;workspace-slug&amp;gt;/changelog/feed.xml&lt;/code&gt;. It is off by default.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the helpful signal?
&lt;/h2&gt;

&lt;p&gt;Visitors can mark a changelog entry helpful. It is a one-click response. It tells you which entries customers found useful, without asking them to write anything.&lt;/p&gt;

&lt;p&gt;Use it as a hint, not as a score. If an entry gets no response, it may simply be a change few people use. Look at the wording and the placement before you change your plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does the What's new panel work?
&lt;/h2&gt;

&lt;p&gt;The What's new panel shows your changelog inside your product. It has a badge for unread entries. It opens from your own button or from a floating button the SDK adds.&lt;/p&gt;

&lt;p&gt;Turn it on under &lt;strong&gt;Roadmap &amp;amp; Changelog &amp;gt; Publish &amp;gt; On your website&lt;/strong&gt;. Then add an attribute to any button:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;data-justonecx-whats-new&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;What's new&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An entry is unread when it was published after the visitor last opened the panel. Identified visitors keep that state across devices. The full setup is in the &lt;a href="https://dev.to/blog/whats-new-widget"&gt;What's new widget article&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the difference between a changelog and an announcement?
&lt;/h2&gt;

&lt;p&gt;An announcement is a message that appears in your product for a chosen audience, such as a modal or a banner. A changelog is the permanent record. Announcements you publish in your product do not add changelog entries. Read &lt;a href="https://dev.to/blog/announcement-vs-changelog"&gt;announcement vs changelog&lt;/a&gt; to decide which one fits.&lt;/p&gt;

&lt;h2&gt;
  
  
  How often should you publish?
&lt;/h2&gt;

&lt;p&gt;Publish when something ships. A short entry the same week is better than a long entry a month later. Keep a steady rhythm so customers learn that the page is current. An empty or stale changelog signals that nothing is happening.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does a Shipped idea publish itself to the changelog?
&lt;/h3&gt;

&lt;p&gt;No. Marking an idea Shipped creates a changelog draft and emails the voters. You edit the draft and publish it. Nothing reaches the changelog until you do.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I show a banner when I publish an entry?
&lt;/h3&gt;

&lt;p&gt;Yes. Publishing can optionally show a banner in your product that links to the entry.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is the changelog newest first?
&lt;/h3&gt;

&lt;p&gt;Yes. Visitors see published entries newest first and can mark an entry helpful.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can the changelog be private?
&lt;/h3&gt;

&lt;p&gt;Yes. Set the access mode to Private in the Publish tab. Only customers you signed in with a verified identity can read it.&lt;/p&gt;

&lt;p&gt;See how it works in the &lt;a href="https://app.justonecx.com/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>changelog</category>
      <category>product</category>
      <category>saas</category>
    </item>
  </channel>
</rss>
