How to push DY campaign details to GA via dimensions or metrics?
Issue:
Is it possible to send the DY campaign details to GA via dimensions or metrics instead of events?
Solution:
It is possible to do so. This can be done via the “Custom Analytics Platform” option in the integration page of DY admin.
However there are a few things the customer needs to do know:
- The customer needs to create the dimension in his GA integration and admin. For more details, they can check GA support article: https://support.google.com/analytics/answer/2709829?hl=en
-
Once it is set, the customer can enable the “Custom Analytics Platform”. In this feature, we provide the customer with the campaign details.
They will need to write a custom code to use these details in the GA dimensions (in accordance with the dimensions they created in step 1).
This is a custom way of sending DY campaign details to the customer’s GA account and it requires writing code.
For example:
- Integration code example on site:
// Configures custom dimension<Index> to use the custom parameter
// 'dimension_name' for 'GA_MEASUREMENT_ID', where <Index> is a number
// representing the index of the custom dimension.
gtag('config', 'GA_MEASUREMENT_ID', {
'custom_map': {'dimension<Index>': 'dimension_name'}
});
- Custom Analytics Platform code example:
// Sends the custom dimension to Google Analytics.
gtag('event', 'any_event_name', {'dimension_name': dimension_value});
Please sign in to leave a comment.
Comments
0 comments