Solved

How to measure CCU with amplitude

  • 15 March 2023
  • 1 reply
  • 166 views

Hi all, 

I’m looking for a solution native to amplitude to measure the concurrent connected users on my platform.
Can’t seem to find one, so here to get your feedback and help.

I would love to be able to measure: 

  • Peak CCU
  • Average CCU

I’m almost sure there is a way since amplitude sdk is working and that it’s already listening to a variety of events!

icon

Best answer by tsegalla 16 March 2023, 15:11

View original

1 reply

Userlevel 3
Badge +5

Hi @soliton,

Great question.  It may depend slightly on your business use case, but if you can support an increment/decrement function, one way you could do this is via user properties in the SDK.  Perhaps the user property name would be ‘ccu’, the value of which changes depending on how many concurrent locations/machines are being used by the same user in a given timeframe.  Here’s a link to our documentation for our Browser SDK, but in theory this could work on other SDKs or via our Identify API.

After Amplitude receives those values, you should be able to use “max” and “average” functions easily on the numeric values.

Let me know if you have any doubts about this!

Reply