Tracking a specific site

Real quick ! :slight_smile:

If I want to track a specific page and must add a tracking code only on this one page in the body where must I place it?

I have found this support request, but don’t see how I can specify my single page with the CSS.

Thank you!

Hi Nimue,

Thanks for writing in! Make sure that you have setup a child theme correctly and activate it ().

function my_new_action() { 
  if (is_page(46) ) : ?>
    <!-- Replace your JavaScript with this line -->

 endif; }

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

You can replace page id 46 with your specific page ID. Here’s how you can locate your page IDs(

Hope that helps.

Thank you! great advice!

Glad we were able to help :slight_smile:

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