Get site url and updates data, then use them

First of all you should perform $updates = wp_get_update_data(); in the wp_footer() body because till then you don’t have access to $updates variables.

add_action( 'wp_footer', 'my_function' );
function my_function() {
    $updates = wp_get_update_data();
    echo $updates['title'];
}