Hi @jrgalia,
I’m so sorry about the wait here.
To add some custom code you can use the following filter:
add_filter( 'monsterinsights_frontend_tracking_options_gtag_end', function ( $options, $type ){
if ( 'ua' === $type ) {
$options['test_key_ua'] = 'test_value_ua';
}
if ( 'v4' === $type ) {
$options['test_key_v4'] = 'test_value_v4';
}
return $options;
}, 20, 2 );
And as an example, this will generate (for V4):
__gtagTracker( 'config', 'G-XXXXXXXX', {"test_key_v4":"test_value_v4"} );
If you need further help with this, please feel free to reach out to us https://www.monsterinsights.com/lite-support/.
Thanks so much!