1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Analytis issues

Discussion in 'XenForo Questions and Support' started by cdub, Apr 17, 2013.

  1. cdub

    cdub Well-Known Member

    I'm having some Analytics issues connecting my Adsense to Analytics...blah blah blah.

    Long story short is Google wants me to move where my Analytics code is to right under the body:

    So - to do this I remove the Analytics info from the Statistics tab and paste it into the bottom of the PAGE_CONTAINER?

    Is the PAGE_CONTAINER for ALL pages? (i don't want it to miss any)
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Aren't you using the field in the ACP?

    Options -> Statistics and Metrics
     
  3. cdub

    cdub Well-Known Member

    I am.... but they are saying it isn't working. (and the code is properly implemented - analytics works just not the adsense integration)
     
  4. cdub

    cdub Well-Known Member

    But going back to my original question - is the PAGE_CONTAINER template used in every single page? So if I put the code in that template it'll be used on every page?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-181112


    Where can additional JavaScript be placed?
    Additional JavaScript can be placed in the PAGE_CONTAINER, page_container_js_head or page_container_js_body templates. If PAGE_CONTAINER is used, it can be placed anywhere in the template. If page_container_js_head is used, it will be included in the head section of PAGE_CONTAINER. If page_container_js_body is used, it will be included in the body section of PAGE_CONTAINER, after the footer. It depends on the JavaScript to a large extent; some require to be placed in the head, some in the body.
     
  6. cdub

    cdub Well-Known Member

    But this applies it to every single page on the forum?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, otherwise it would be pointless placing it there and why it has been added to the FAQ.

    Did you actually read the FAQ?
    The entry above is:

    Which template should I edit if I want it to be applied to all pages?
    The PAGE_CONTAINER template.
     
  8. cdub

    cdub Well-Known Member

    Yes - I know - that's why I was making sure before I made the changes. Thank you.
     

Share This Page