Questions tagged [custom-dimensions]

74 questions
9
votes
2 answers

Google Analytics custom dimension not working: gtag set() method issues

I'm trying to set up a custom dimension for GA4 called chain_id using the gtag set method. I've also added a custom_map property in the config but I'm not even sure if that is necessary. The issue is that the chain_id is never being sent with the…
Nenad Vracar
  • 118,580
  • 15
  • 151
  • 176
7
votes
1 answer

Azure Application Insight. Custom attribute length restriction

I'm using Azure App Insight as a logging tool and store log data by the following code: private void SendTrace(LoggingEvent loggingEvent) { loggingEvent.GetProperties(); string message = "TestMessage"; var trace =…
dododo
  • 3,872
  • 1
  • 14
  • 37
5
votes
1 answer

gtag multiple custom dimensions

I searched the web for the solution to send multiple custom dimensions to google analytics. the old tag ga was easy to configure like so : ga('create', 'UA-ID', 'auto'); ga('set', 'dimension1', value1); ga('set', 'dimension2', value2); …
Maxim Kogan
  • 135
  • 1
  • 11
3
votes
1 answer

Combining/Linking custom events in Google Analytics 4

I am using GA-4 to track user activity on my nextJs website. I have a few custom dimensions and custom metrics to satisfy my requirements. For example, I am firing the event, userDetailsEvent with user details when the user logs…
3
votes
1 answer

Create Array with Dimension selected by User

The User should choose the Dimension (1, 2). After the user chose the Dimension, an Array with the dimension should be created. After this the array will be filled randomly, sorted and printed. I have created Methods for this that take a reference…
toni
  • 133
  • 1
  • 13
3
votes
1 answer

google analytics send custom data about user from backend using measurements protocol

I want to send data about users to GA from my backend (e.g. status, age, gender, ...) I have already figured out how to do this for events, but I am not sure how to send data that is not related to a session/event, but is rather a simple attribute…
Chris
  • 13,100
  • 23
  • 79
  • 162
2
votes
0 answers

GA4 Engagement rate is zero when adding custom dimension to the report

I'm using custom dimensions in my GA4. GA4 works fine when there are predefined dimensions. For example, Here I have used Date which is a predefined dimension provided by GA4. report with predefined dimension When I use a custom dimension: Is site…
2
votes
0 answers

Google Analytics 4 gtag Custom dimension not set