Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #835471

    is there a way to add LinkedIn Conversion Tracking JavaScript snippet to a child theme – functions.php

    #835481

    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

    • This reply was modified 7 years, 3 months ago by Yigit.
    #835484

    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 !

    #835485

    Hi,

    Glad you figured it out! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘add LinkedIn Conversion Tracking to child theme – functions.php’ is closed to new replies.