Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom dimensions to page views / events #552

4 tasks
adriaanvanrossum opened this issue Mar 26, 2021 · 1 comment
4 tasks

Add custom dimensions to page views / events #552

adriaanvanrossum opened this issue Mar 26, 2021 · 1 comment
enterprise All tasks related to enterprise customers


Copy link


  • Find a way to not end up with PII data in our tool
    • For example grab category, title, og:data, date, tags, ... from page
    • Or get custom dimensions set by developer
  • Allow custom dimensions to be send to our database
  • Make custom dimensions show up in our dashboard
  • Filter on custom dimensions
Talk with a customer who explained very well how they would use dimensions


As part of our Google Analytics installation we've set the following dimensions on our story pages, via variables provided by our CMS. This allows us to segment traffic based on the content itself. None of them tell us about the visitor themselves (we have GA set to anonymize visits). We'd like to continue to segment our content as we move away from Google Analytics.

I hope this helps to explain our use case. Thanks!

Here's the code:

ga("set", "dimension1", "\n ***\u003C\/a\u003E");
ga("set", "dimension2", "The ***, The ***");
ga("set", "dimension3", "October 28, 2020 - 10:45pm, \u003Cspan class=\u0022date-display-single\u0022 property=\u0022dc:date\u0022 datatype=\u0022xsd:dateTime\u0022 content=\u00222021-11-28T22:10:00-01:00\u0022\u003E2020-10-2");
ga("set", "dimension4", ", , title");
ga("set", "dimension5", ", Lifestyle \u0026amp; tag1, tag2, tag4, ");
ga("set", "dimension6", "name");
ga("set", "dimension7", "location");

Simple Analytics:

So you basically fill an amount of dimensions and in GA you can filter on those? Could you share a screenshot of GA where you use the filtering? That would be great! That way I can learn about the UI and what is currently working (well) for you (please hide sensitive numbers of course).

We need to find a way where customers can insert custom data without it being user IDs or any personal data. If you have any ideas on that, please let me know!


Funny enough, Google Analytics is not loading properly for me today. So it will be tough to get screenshots - but I'll point you to resources that explain what GA is doing

  1. In GA's admin there's a section where I can create custom dimensions - essentially defining it. This article is a nice summation of how it works in GA:
  2. In the GA tracking script that I embed on to our site, I define variables from the story page to pass into each numbered slot (as I noted in the previous email).
  3. Then if I want to view the results, like how well a category is performing, I can create a "Segment" referencing the dimension (like Author or Category). Its basically a filter that gets applied to the entire dashboard. As an example, I can say "category" contains "Every 30 Seconds", and I will only see data that filters to this condition.

There are other ways to do it in GA, it can get into the weeds a bit. Its part of the reason we are looking for a new solution. Its a complex tool and we want to make it easier for our team to find the data they need more quickly.

Also, GA uses the segment tool to do some gross things from a privacy perspective. We have our data anonymized as much as possible and that still isn't enough. I'm not a lawyer, but I think you can protect your platform by a strong privacy policy and frequent warnings to users of how this can or cannot be used.

@adriaanvanrossum adriaanvanrossum added the enterprise All tasks related to enterprise customers label Mar 26, 2021
@adriaanvanrossum adriaanvanrossum added this to Features & bugs in Public roadmap via automation Mar 26, 2021
Copy link
Contributor Author

This is currently being worked on.

@adriaanvanrossum adriaanvanrossum moved this from Features & bugs to In progress in Public roadmap Oct 12, 2021
This was referenced Oct 12, 2021
@jibsaramnim jibsaramnim removed their assignment Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
enterprise All tasks related to enterprise customers
Public roadmap
In progress

No branches or pull requests

2 participants