Tracking Code for Specific Page

I have a client who wishes to track a Linkedin Campaign by using a Linkedin tracking code. Here is my dillema…How do I get that tracking code to work just on the one page?

Do I put it under the JS section in cornerstone? Do I inject using code in the functions.php?

Hi,

I would suggest injecting it in your child theme’s functions.php file.

function my_new_action() { ?>

  // Insert JS Code HERE

<?php
}

add_action( 'wp_footer', 'my_new_action', 10 );

Hope that helps

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.