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!


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 }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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