google analytics
  • hi all
    i want to use google analytics for stat of my newscoop
    i add the google code in index
    but i need to know about my articles visitor?
    should i add the code in other file such as section or article?
    please help me

    best regards
  • 2 Comments sorted by
  • Hi,

    If you're using one of Sourcefabric template packs, copy/paste the Analytics code immediately before the closing </head> tag in your _html-head.tpl. This template is included in all pages. Alternatively, you can create new template, analytics.tpl and copy/paste code there. Then just include this template

    {{ include file="analytics.tpl" }}

    in the head section of pages you want to track.
    --
    Ljuba Rankovic
    Senior Front End Developer, Sourcefabric
    ljuba.rankovic@sourcefabric.org

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric
  • thanks liuba
    it works
    regards