Title: Adding A/B testing html scripts tags??
Last modified: August 20, 2016

---

# Adding A/B testing html scripts tags??

 *  [Alex SWeekender](https://wordpress.org/support/users/alex-sweekender/)
 * (@alex-sweekender)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/adding-ab-testing-html-scripts-tags/)
 * Hi,
 * Trying to add code from google website optimiser to do some A/B testing. Need
   to add the html script tags between the <head> tags on individual pages, but 
   as the site is run off a theme I can’t get into the <head> tags for each separate
   page? or can I?
 * all help appreciated!
 * Thanks

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/adding-ab-testing-html-scripts-tags/#post-2403801)
 * you can use conditional tags to add the code only for some of the pages:
 * [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
 * example (to be added in the `<head>` section of hader.php):
 *     ```
       <?php if( is_page('one') ) : ?>
       AB-CODE1
       <?php elseif( is_page('two') ) : ?>
       AB-CODE2
       <?php endif; ?>
       ```
   
 *  Thread Starter [Alex SWeekender](https://wordpress.org/support/users/alex-sweekender/)
 * (@alex-sweekender)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/adding-ab-testing-html-scripts-tags/#post-2403838)
 * Brilliant! thanks it worked…

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

The topic ‘Adding A/B testing html scripts tags??’ is closed to new replies.

## Tags

 * [html-tags](https://wordpress.org/support/topic-tag/html-tags/)
 * [script tags](https://wordpress.org/support/topic-tag/script-tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Alex SWeekender](https://wordpress.org/support/users/alex-sweekender/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/adding-ab-testing-html-scripts-tags/#post-2403838)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
