Tagged: x
-
AuthorPosts
-
March 16, 2017 at 10:12 am #1409707
crucialtimParticipantHello,
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?March 16, 2017 at 10:13 am #1409708
crucialtimParticipantThis reply has been marked as private.March 16, 2017 at 11:48 am #1409841
RupokMemberHi 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!
March 16, 2017 at 11:52 am #1409845
crucialtimParticipantHi 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?March 16, 2017 at 7:48 pm #1410438
Rue NelModeratorHello 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.
March 16, 2017 at 8:01 pm #1410457
crucialtimParticipantThanks, will let you know! I appreciate the help, as always!
March 16, 2017 at 10:19 pm #1410602
NicoModeratorLet us know how it goes.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1409707 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
