PHP
//Add GA4 linker for cross-domain tracking
add_action(‘nebula_ga_before_pageview’, function(){
//The below code is inside of a script tag already, so it is JavaScript (not HTML):
?>
if ( nebula?.pageviewProperties ){
nebula.pageviewProperties.linker = {
domains: [‘example.com’, ‘testing.com’]
};
}
<!--?php <br ?--> });