Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.