Custom Event
Custom Event
Categories:
Send custom event
gtag('event', '<event_name>', {
<event_params>
});
gtag('event', 'screen_view', {
'app_name': 'myAppName',
'screen_name': 'Home'
});
Set up parameters for every event
1. Set to specific measurement id
gtag('config', 'MEASUREMENT_ID', {
'page_title': 'Travel Destinations',
'currency': 'USD'
});
2. Set to every measurement id
gtag('set', {
'page_title': 'Travel Destinations',
'currency': 'USD'
});
gtag('config', 'MEASUREMENT_ID_1');
gtag('config', 'MEASUREMENT_ID_2');
gtag('config', 'MEASUREMENT_ID_3');