WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to add some tracking code for Aweber and they said to add it before the </body> tag. I've looked through all the Genesis files and cannot find it!

share|improve this question

In every good theme, the </body> tag is located in the footer.php file.

However, unless you're using a child theme, any modification will be lost on a theme update. That's why it's better to use the wp_footer filter hook like so:

add_action( 'wp_footer', 'wpse_76330_aweber_tracking_code' );

function wpse_76330_aweber_tracking_code() { ?>

    %%%% insert tracking code here %%%%

<?php }
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.