Title: After body fallback behavior
Last modified: June 18, 2019

---

# After body fallback behavior

 *  Resolved [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/after-body-fallback-behavior/)
 * Hi,
 * I just have a suggestion for the plugin. Currently if the theme does not use 
   the `wp_body_open()` function or action then any scripts attached to “After <
   body>” are not output at all.
 * My suggestion is to output the “After <body>” scripts in the footer if the theme
   does not support `wp_body_open()`. This could be achieved by adding these lines
   to the `find_footer_tracking_codes()` function:
 *     ```
       if ( ! did_action( 'wp_body_open' ) ) {
       	$this->find_page_tracking_codes();
       }
       ```
   
 * This is the solution suggested in this trac ticket:
    [https://core.trac.wordpress.org/ticket/46743#comment:13](https://core.trac.wordpress.org/ticket/46743#comment:13)

The topic ‘After body fallback behavior’ is closed to new replies.

 * ![](https://ps.w.org/tracking-script-manager/assets/icon-256x256.png?rev=1299830)
 * [Tracking Script Manager](https://wordpress.org/plugins/tracking-script-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tracking-script-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tracking-script-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/tracking-script-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tracking-script-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tracking-script-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/after-body-fallback-behavior/)
 * Status: resolved