WordPress.org

Ready to get started?Download WordPress

Forums

Conditional Tag Issue (2 posts)

  1. csutoras
    Member
    Posted 6 years ago #

    I am trying to put a tracking code on a specific page to see conversions for some PPC i am running.

    I want to put it on the contact page and the slug for the page is 'contact'

    I am having a problem where id i use any format other than this the whole footer disappears but if i use this then the code in the script section doesnt show up.

    <?php if(is_page('Contact')): ?>

    <SCRIPT language="JavaScript" type="text/javascript">
    tracking stuff
    </SCRIPT>

    <?php endif; ?>

  2. btard
    Member
    Posted 6 years ago #

    Try using the post/page id.

Topic Closed

This topic has been closed to new replies.

About this Topic