question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

You should be able to define `custom dimensions` in the UI

See original GitHub issue

Description

I want to be able to create dimensions in the UI for things like bucketing groups. I don’t want to have to do this in dbt because I might not know the groups I want to bucket in, or I might be bucketing things for a one-off analysis (e.g. comparing groups of users that I’ve defined using some product usage dimensions).

this would be like table calculations or custom metrics (but more like table calculations…because you’d be able to write custom SQL).

It would return a dimension type. That means users would be able to group by this field.

E.g. I could create a dimension called age group. I’d define it like this:

CASE 
WHEN age > 20 THEN '20+'
WHEN age <= 20 THEN 'under 20'

This would return a field that I could use in my results table. It would act like a dimension (i.e. I could use it to group in charts).

^This would fix #2699

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
TuringLovesDeathMetalcommented, Sep 15, 2022

^If they’re actually different, then we should keep both! So ignore my comment above about removing table calculations then @PriPatel - I’ll just need to update the docs to explain this a bit better.

1reaction
PriPatelcommented, Sep 14, 2022

@TuringLovesDeathMetal Yes! So instead of custom metrics in the sidebar, we have a Calculations section. From here you can add table calcs, see your custom metrics and the grouped dimensions? Maybe calculations is the wrong word.

If we do this, I suggest that metrics, dimensions and calculations are collapsible somehow!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and edit custom dimensions and metrics - Analytics Help
Custom dimensions and metrics are set at the property level in an Analytics account. You must have the Editor role on the property...
Read more >
A Guide to Custom Dimensions in Google Analytics 4
To do that, you must go to Admin > Custom Definitions > Custom Dimensions and click Create Custom Dimensions. Then enter the following...
Read more >
Custom Dimensions in Google Analytics - Online Metrics
First, you need to define custom dimensions at the property level. This is required to send custom dimension data into Google Analytics.
Read more >
GA4 (Google Analytics 4) Custom Dimensions Tutorial
A custom dimension is the attribute of visitors (users) or events to your website. You can create 25 unique user-specific custom dimensions and ......
Read more >
Google Analytics 4 Custom Dimensions 101 Guide - Databox
In both UA and GA4, there are certain quota limitations that you should know about. Universal Analytics allows users to create a maximum...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found