Title: Adding Google Conversion Code to pages
Last modified: August 19, 2016

---

# Adding Google Conversion Code to pages

 *  [ktdenterprises](https://wordpress.org/support/users/ktdenterprises/)
 * (@ktdenterprises)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/)
 * I’m using the Inove template.
 * I’m wanting to put the google conversion code / script on to a couple of pages
   but for the life of me cannot find where to get to the individual pages <body
   > tag.
 * In the page itself, going into the source doesn’t have it.
 * I’ve gone to the editer to look for the pages individually with no luck.
 * I’m just figuring things out so obviously having a brain lapse with this.
 * thanks for the help

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379840)
 * Google conversion code? Do you mean the analytics code?
 *  Thread Starter [ktdenterprises](https://wordpress.org/support/users/ktdenterprises/)
 * (@ktdenterprises)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379864)
 * It’s actually conversion code but it’s a similar script to analytics.
 * I want to be able to put this on say like a order confirmation page or such.
 * I need to be able to get into a specific pages template I guess so that I can
   access the </body> tag
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379866)
 * You could try using the [is_page conditional](http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page)
 *     ```
       <?php if( is_page('Foobar') ) :?>
       [ google code ]
       <?php endif;?>
       ```
   
 *  Thread Starter [ktdenterprises](https://wordpress.org/support/users/ktdenterprises/)
 * (@ktdenterprises)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379889)
 * Not sure if that will work or not.
 * I’ll need to put different code on each page as well so in essence I will have
 * code 1 on page 1
    code 2 on page 2 etc…
 * As from google, it has to go:
    <body>
 *  Paste the code between the body tags of your conversion pages.
 * </body>
 * I guess I’m just trying to find where the </body> tag would be on not only the
   index page but individual pages as well. Not seeming to find it but of course,
   I’m used to regular html not php which is probably the problem.
 * thanks so much for your help on this btw
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379895)
 * The `</body>` tag will be in footer.php.
 *  Thread Starter [ktdenterprises](https://wordpress.org/support/users/ktdenterprises/)
 * (@ktdenterprises)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379933)
 * I just spotted that after I replied the last time.
 * That’s where the analytics code is although it was put there by a plugin [“google analytics for wordpress”](http://yoast.com/wordpress/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress)
 * So now that’s going to be on all pages.
 * Is there a way to access each individual page on your site like this?
 * Maybe I’m missing something with your original comment about the ‘is___’ function
 *  [amalroy](https://wordpress.org/support/users/amalroy/)
 * (@amalroy)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379937)
 * For individual page you can use the conditional tags as esmi told above. But 
   as the number of pages increase it turns out to be a problem.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379938)
 * The usual way is to use is_page() to determine what to add to which page. But
   I agree – with a lot of pages and page-specific code being needed for each one–
   is_page() isn’t exactly practical.
 * How many pages are we talking about?
 *  Thread Starter [ktdenterprises](https://wordpress.org/support/users/ktdenterprises/)
 * (@ktdenterprises)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379940)
 * actually only 2 or 3 pages that the code would need to go on no matter how many
   webpages the website has.
 * for the number of total pages on the site, I have a couple that I’m doing this
   for so anywhere from 5 to 50.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379946)
 * For 1 – 6 pages, I’d say that is_page would be the best option. Over 6 and it’s
   getting clunky. 20 or 30 and you’ll start to hit slowdown. Saw a site the other
   week with about 50 is_page() conditionals in just one function. It was slowing
   down…
 *  Thread Starter [ktdenterprises](https://wordpress.org/support/users/ktdenterprises/)
 * (@ktdenterprises)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1379955)
 * well for a couple of sites it should work then.
 * any other thoughts on how to make it work?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1380122)
 * Um… look at the [Pods](http://wordpress.org/extend/plugins/pods/) or [Flutter](http://wordpress.org/extend/plugins/fresh-page/)
   plugins?

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

The topic ‘Adding Google Conversion Code to pages’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/adding-google-conversion-code-to-pages/#post-1380122)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
