Site icon Hip-Hop Website Design and Development

Google Analytics tracking code on just one page?

Having an issue where I have a client who wants his Google Analytics code on just one page. I’m using the following is_page code but in the footer.php of my child theme, but it’s not appearing on the page. Is this code correct?

<?php if ( is_page( 'contact' )) {
    echo '<script type="text/javascript">/* <![CDATA[ */
var google_conversion_id = 000000000;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "000000000";
var google_remarketing_only = false;
/* ]]> */</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
<noscript><div style="display:inline;"><img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/000000000/?label=000000000&amp;guid=ON&amp;script=0"/></div></noscript>';
} ?>