Membership 2 thank you page pixel

Hi there,

I'm trying to place a conversion/confirmation pixel onto the thank you page of a Membership 2 Pro thank you page - but I can't see anything clear on how to add this in.

I have a page template that the majority of the website uses, and I was looking for some kind of function to check if the current page is a thank you page, e.g.
<?php
if( is_thank_you_page( $membership_id ) ){
echo $tracking_pixel;
}
?>

is there anything available for this plugin?

or is there an alternative way I can place a conversion pixel into a specific thank you page (to make sure the pixel doesn't fire on other pages or memberships)?

Thanks