How to add Analytics CODE to my webdirectory....

Discussion in 'Google Analytics' started by theolasys, Dec 9, 2012.

  1. #1
    Hi Friends,

    How can I add a phpld 2.0 web directory to my analytics account. I added the code on footer.tpl, header.tpl but it didn't worked.


    Thanks in advance.
     
    theolasys, Dec 9, 2012 IP
  2. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #2
    You have to wrap the code in literal tags like this:
    <literal>
    anayltics code here
    </literal>
     
    dvduval, Dec 9, 2012 IP
  3. heph

    heph Greenhorn

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #3
    just place it in your header.php and you will get all stats
     
    heph, Dec 9, 2012 IP
  4. theolasys

    theolasys Member

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Thanks guys... I just added the code in header.tpl like this <literal>code</literal> and hope that now I will get the statistics.
     
    theolasys, Dec 9, 2012 IP
  5. Cedricsami

    Cedricsami Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I too had a same a problem and I wraped the code using literal tags that worked out well.
     
    Cedricsami, Dec 9, 2012 IP