Accept WP_Post object or post id in is_ticket_valid_for_purchase().
Count unique visitors to tickets page.