Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1409707
    crucialtim
    Participant

    Hello,
    I’ve seen this thread and implemented the code https://community.theme.co/forums/topic/adding-adwords-conversion-tracking/ and it seems to be working, but my client has two pages they’d like to track. How do I specify two pages to track?

    #1409708
    crucialtim
    Participant
    This reply has been marked as private.
    #1409841
    Rupok
    Member

    Hi there,

    Thanks for writing in! There is example for adding on specific page if you follow the thread – https://community.theme.co/forums/topic/adding-adwords-conversion-tracking/#post-742114

    Cheers!

    #1409845
    crucialtim
    Participant

    Hi Rupok,
    That’s what I’ve done – I’ve added it to one specific page, but I’m unsure how to track two specific pages with the same piece of code. Do I just copy the code and swap out the page IDs?

    #1410438
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! If you want to track multiple pages, you can have a code like this:

    add_action( 'wp_head', 'x_wp_head' );
    function x_wp_head(){
      if( is_page(1) || is_page(2) || is_page(3) ) : ?>
    
    	<!-- Your code will go here -->
      
    
      <?php endif;
    }

    The code is using an “OR” condition so make sure to swap out the correct page IDs.

    Hope this helps. Please let us know how it goes.

    #1410457
    crucialtim
    Participant

    Thanks, will let you know! I appreciate the help, as always!

    #1410602
    Nico
    Moderator

    Let us know how it goes.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1409707 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>