Dimensions and other event objects
Experienced event designers may notice that it is possible to create a dimension that is populated directly from a source hit attribute. Discover does not recommend this approach.
- By creating an event that is populated from the hit attribute first, you can apply modifications to the conditions and states in which the event is triggered, limiting the processing.
- If the dimension is populated directly from the hit attribute, the dimension is updated with each hit, which is not necessarily true in most cases.
- Particularly for user agent data, which may not change from hit to hit, it is a best practice to create an event source from the hit attribute, which is used in turn as the source of the dimension.