Tracking an additional ID is as simple as adding another config rule to the tracking code. In CAOS this can be achieved by using a filter in a custom plugin.
add_filter('caos_gtag_additional_config', 'daan_add_additional_ids');
function daan_add_additional_ids() {
echo "gtag('config', 'G-123ABC456');" // Replace with your Measurement ID
}
That should do it! If you need more help, you know where to find me!
Thanks. There’s a typo on the last line, should be
)";
Ah, sorry, you’re right, here’s the correct code:
add_filter('caos_gtag_additional_config', 'daan_add_additional_ids');
function daan_add_additional_ids() {
echo "gtag('config', 'G-123ABC456');"; // Replace with your Measurement ID
}