Join us at Microsoft Ignite in Chicago, Nov 19-21. Booth 614! ->->

Blog / User stories

Optimizing your customer-facing analytics experience with Luzmo and ClickHouse

author avatar
Luzmo
Jun 29, 2022 - 6 minutes read

We’d like to welcome Luzmo as a guest to our blog. Read on to find out how Luzmo is using ClickHouse to enable their users to build embedded, customer-facing analytics.

Your software application generates terabytes of data. And with that data, your users can make smart, confident decisions faster. But how do you transform all that product data into visual insights for your users?

In this article, we’ll discuss how to build empowering customer-facing analytics in no time, with a well-designed, modern data architecture using Luzmo and ClickHouse as building blocks.

The challenges of building customer-facing analytics

Delivering analytics in SaaS is a two-fold challenge because you are balancing two work streams:

  • User experience: you want to provide an easy-to-use, interactive and personalized experience for your end-users
  • Data architecture: you want to build a coherent and high-performing data architecture with tailored visualizations fast and painlessly, without dedicating weeks of engineering time

Typically, the more advanced analytics you want to build, the harder it becomes for developers to maintain. And there’s the extra complexity of data security. Every user should only get access to their personal data, and not to the data of another user. How do you scale tailored insights to hundreds or even thousands of users?

Embedded analytics tools offer the perfect sweet spot. They combine an easy-to-use UI for non-technical users with a powerful and consistent API, accessible to developers. You can even bring your own authentication into dashboard filtering, keeping your user data strictly on your premises. Below, you’ll learn how to build an embedded analytics setup using Luzmo for visualizations, and ClickHouse as your data infrastructure.

Building embedded analytics with Luzmo

What your users want is an engaging customer analytics experience:

  • Personalized reports and dashboards that show relevant insights in a flash
  • Dashboards with interactive exploring: let users filter, drill down or receive alerts when they reach a certain a threshold
  • Dashboards that look nice and load fast

With the embedded analytics platform of Luzmo, you can inject all of the above functionality into your platform with one snippet of code. You won’t need to develop a single chart: non-technical colleagues can completely manage the creation of dashboards using Luzmo’s drag-and-drop UI.

Luzmo_1.png

As a developer, you’ll be more interested in Luzmo’s powerful API. By using the embedding libraries, you can plug Luzmo’s analytics straight into your platform, while re-using any authentication or business logic you’ve already built inside your software. This will considerably speed up your development cycle, while retaining full control over your analytics feature set. To get up and running, all you need to do is create a dashboard in Luzmo, make a server-side request to our API to generate an authorization token (or SSO token), and embed the code snippet below into your application. This article will take you through a step-by-step guide!

<luzmo-dashboard
  appServer="< Luzmo App server, defaults to https://app.luzmo.com >"
  apiHost="< Luzmo API server, defaults to https://api.luzmo.com >"
  authKey="< SSO authorization key >"
  authToken="< SSO authorization token >"
  dashboardId="< dashboard id you want to embed >"
  dashboardSlug="< instead of dashboardId: a dashboard slug as specified in the Integration. >"
></luzmo-dashboard>

Below is a basic diagram of how the embedding process works:

Luzmo2.png

As a developer, you can use the SSO token to set as many additional rules as you want for every user or user group. For example, customize the styling of your dashboards, show different statistics depending on the user role, adapt the language or timezone, etc. All with just a few lines of additional code.

Using ClickHouse as a data infrastructure for embedded analytics

Any embedded analytics solution will only provide a good experience if the data model behind it is performant.

Like many companies, maybe you are already using a relational database for your operations. The problem with relational databases is that they aren’t optimal for analytical queries. As a result, dashboards may load more slowly, causing frustration for your end-users.

Is your data model complex, with a lot of joins or aggregations? A columnar database is designed with aggregations in mind, rather than row-level queries. For this use case, ClickHouse provides a high-performance and scalable database solution for customer-facing, ad-hoc aggregations and analytics.

TEIMAS, a software company building solutions for waste management, has been using Luzmo for its customer-facing analytics for over 3 years. Their platform’s backend runs on MySQL, but the more data they were dealing with, the more they felt the need for a separate analytical database like ClickHouse. “We needed to connect directly to an analytical database,” said Iago Elizechea, CTO at Teimas. “Not only to improve the speed of our dashboards, but also to ensure the performance of the entire platform.”

Elizechea started using ClickHouse in their setup because of its accessibility. Because it’s open-source, they can easily deploy it into their own infrastructure. When the setup is well-designed, Elizechea claims ClickHouse has amazing performance: “For some types of queries, ClickHouse can be up to 100x faster than MySQL. Even when there’s a huge amount of data, I get the results immediately.”

Getting started with ClickHouse and Luzmo

With Luzmo’s easy-to-deploy visualization and ClickHouse’s laser-fast performance, you can provide a seamless analytics experience to your customers without the stress of clunky deployment.

If you’d like to explore further, below are a few resources:

Share this post

Subscribe to our newsletter

Stay informed on feature releases, product roadmap, support, and cloud offerings!
Loading form...
Follow us
Twitter imageSlack imageGitHub image
Telegram imageMeetup imageRss image