is there a way to add LinkedIn Conversion Tracking JavaScript snippet to a child theme – functions.php
Hey
Please use following code to add the code in <head>
tag
function my_custom_code_head(){
?>
//Your code goes here
<?php
}
add_action('wp_head', 'my_custom_code_head');
and following code to add in <body>
tag
function my_custom_code_body(){
?>
// Your code goes here
<?php
}
add_action('wp_footer', 'my_custom_code_body');
Best regards,
Yigit
thank you Yigit, i have tried for now just adding to the Google Analytics Tracking Code section in theme options , i am using Complete Analytics Optimization Suite (CAOS) for the GA snippet, it’s showing up on every page so hopefully it can work this way, thank you for your quick response and support, appreciate it !