• A friend wants me to put some floodlight tracking code into the home page of their site. It has to be put as close as possible to the <body> tag.
    However, if the body tag is in the header.php…won’t putting it there make it show up on everypage???

    I just need it to track the home page.

    Can someone assist me please? I am not a programmer so don’t have a clue.
    Thank you!

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter elames

    (@elames)

    So Does this look correct? THANK YOU!

    <body id="<?php echo $sBody; ?>">
    <?php if( is_front_page() ) : ?>
    <!--
    Start of DoubleClick Floodlight Tag: Please do not remove
    Activity name of this tag: Luray-Page Homepage
    URL of the webpage where the tag is expected to be placed: https://www.luraypage.com
    This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
    Creation Date: 04/10/2013
    -->
    <script type="text/javascript">
    var axel = Math.random() + "";
    var a = axel * 10000000000000;
    document.write('<iframe src="https://3734884.fls.doubleclick.net/activityi;src=3734884;type=Homep-;cat=Puray-;ord=1;num=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
    </script>
    <noscript>
    <iframe src="https://3734884.fls.doubleclick.net/activityi;src=3734884;type=Homep-;cat=Puray-;ord=1;num=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
    </noscript>
    <!-- End of DoubleClick Floodlight Tag: Please do not remove -->
    <?php endif; ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    looks OK
    – make sure to have a background copy of the template (as it was before the edits); and simply try it.

    Thread Starter elames

    (@elames)

    OH yes…I have backups ??
    thank you

    Holy cow! What a hassle! Did that work?

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Putting Floodlight Code into home page’ is closed to new replies.