Hello,
Its not actually a new page, its a AJAX message displayed on the same page.
You can use the below code snippet to achive what you want (you can even add in JS, or call Google analytics event)
add_filter('geodir_ajax_save_post_message','_my_post_save_message',10,2);
function _my_post_save_message($message, $post_data){
if ( isset( $post_data['post_parent'] ) && $post_data['post_parent'] ) {
// update post
}else{
// new post
$package_id = isset($post_data['package_id']) ? absint($post_data['package_id']) : '';
if($package_id){
$message = sprintf( __('Post received for package %s, your listing may need to be reviewed before going live, you can preview it %shere%s.', 'geodirectory'),$package_id, "<a href='$preview_link' >", "</a>" );
$message .= "<script>alert($package_id)</script>";
}
}
return $message;
}