How we add Gtag Code on particular page?

Hello Friends,

I need your help for add below code in thank you page.
gtag(‘event’, ‘conversion’, {‘send_to’: ‘AW-44/XXX’});

Any idea how we implement this code?

I have added google tag manager and analysis code it’s working fine.

Thanks.