How to add Analytics code to Phpld directory

Discussion in 'Directories' started by casperl, Dec 7, 2006.

  1. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #21
    It goes in footer.tpl not main.tpl.
     
    mikey1090, Dec 29, 2008 IP
  2. thundercow

    thundercow Well-Known Member

    Messages:
    246
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    #22
    Here's What You do...get your adsense code and open the file "footer.tpl".

    Now, all themes are different, but 99.99% of them are going to have this tag: </body>, in the footer.tpl file

    Put this right before the </body> tag.
    {literal}
    paste
    adsense
    code
    here
    {/literal}

    If it doesn't work, PM me.

     
    thundercow, Jan 1, 2009 IP
  3. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #23
    I think you mean analytics code ;)
     
    mikey1090, Jan 1, 2009 IP
    lightless likes this.
  4. gonecrazy

    gonecrazy Guest

    Messages:
    605
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #24
    This is the correct way. I just tested it on PHPLD 4. Thanks.
     
    gonecrazy, Feb 15, 2010 IP