To add a tracking code to your forms, you need to edit the @app/views/app/embed.php file.
So, for example, you can use this code to add the tracking code depending of the Form ID:
<?php if($formModel->id === FORM_ID): ?> REPLACE THIS LINE BY YOUR TRACKING CODE <?php endif; ?>
Don’t forget to replace the FORM_ID by the ID of your form.