In 2018, I created four custom dimensions for my GA property. They have been correctly collected and are available through the relevant GA reports.
Last week, I added an extra custom dimension, but this custom dimension is not being recorded. I fail to see why.
First, I added the custom dimension under "Custom Definitions" -> "Custom Dimensions", for the property in question.
Then, I map the name of the custom dimension to something more readable, in the header of each page that's recording pageviews through GA.
gtag('config', 'UA-XXXXXXXX-X', {
'custom_map': {
...
'dimension5': 'primaryCategory'
}
});
Finally, I assign values to the custom dimensions.
gtag('event', 'add_dimensions', {
...
'primaryCategory' : '<?php print $primaryCategory; ?>'
});
But, in no report is this new custom dimension available.
What am I doing wrong?