Adding code to a post under a custom post type

You can mix two functions:

if( is_singular( $post_type ) && is_single( $post_slug ) ):
// Insert analytics code;
endif;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)