I've trying to integrate the custom pixel code to track the leads but it is not able to track.
You can use Google Tag Manager for Lead Event Tracking. Google Tag Manager is event setup tools.