Title: Adding Tracking code from PPC vendor
Last modified: May 28, 2024

---

# Adding Tracking code from PPC vendor

 *  [jscullion](https://wordpress.org/support/users/jscullion/)
 * (@jscullion)
 * [2 years ago](https://wordpress.org/support/topic/adding-tracking-code-from-ppc-vendor/)
 * I need to add tracking code from a PPC vendor to a specific page on my wordpress
   site. ( not for the entire site) Where can I add this so the tracking is only
   for that page?
 * Here is what the PPC vendor sent me:
 * **Conversion Tracking Setup**
 * Insert the following code right before the closing </body> tag , in the page 
   that your visitors will immediately see after the action you want them to take.
 *     ```wp-block-code
       <!-- eLearning Industry PPC Campaign Conversion: WestNetLMS --><img src="https://cp-ppc.nextclick.app/?offer_id=c7e775d9-e16b-5dfa-a3f3-21ff5314cfad" width="1" height="1" /><!-- End eLearning Industry PPC Campaign Conversion -->
       ```
   
 * Thanks for any help!
    -  This topic was modified 2 years ago by [jscullion](https://wordpress.org/support/users/jscullion/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years ago](https://wordpress.org/support/topic/adding-tracking-code-from-ppc-vendor/#post-17787388)
 * Use the following code snippet:
 *     ```wp-block-code
       add_action( 'wp_footer', function() {
       	if( is_page() && 42 === get_queried_object_id() ) {
       	?> 
       	<img src="https://cp-ppc.nextclick.app/?offer_id=c7e775d9-e16b-5dfa-a3f3-21ff5314cfad" width="1" height="1" />
       	<?php
       	}
       }, 5 );
       ```
   
 * Adjust the ID (42 in my example) to the page id where you want to use the code.
 * Add the code in the functions.php of your theme or via Code Snippet plugin.
 *  Thread Starter [jscullion](https://wordpress.org/support/users/jscullion/)
 * (@jscullion)
 * [2 years ago](https://wordpress.org/support/topic/adding-tracking-code-from-ppc-vendor/#post-17787408)
 * Thank you so much!
 * Where would I find the functions.php file? We use Pantheon with wordpress.
 * Thanks again! Joe
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years ago](https://wordpress.org/support/topic/adding-tracking-code-from-ppc-vendor/#post-17787479)
 * You should only have these and take them into account if you have a child theme.
   If you don’t have a child theme, see: [https://developer.wordpress.org/themes/advanced-topics/child-themes/](https://developer.wordpress.org/themes/advanced-topics/child-themes/)
   or contact the support of your theme. If this is too much effort for you, use
   the Code Snippet plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding Tracking code from PPC vendor’ is closed to new replies.

## Tags

 * [tracking](https://wordpress.org/support/topic-tag/tracking/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 3 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/adding-tracking-code-from-ppc-vendor/#post-17787479)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
