I'm using the following if statements within header.php to load custom tracking codes.
<?php if ( is_singular( array( 'custom-post-type', 'post-name' ) ) ) : ?>
// Specific tracking code here
<?php endif ?>
<?php if ( is_singular( array( 'custom-post-type', 'another-post' ) ) ) : ?>
// Specific tracking code here
<?php endif ?>
When I go to each post, both tracking codes are showing up. Am I doing something wrong here?