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

Google Analytics Question

Discussion in 'XenForo Questions and Support' started by Kenneth Holland, Aug 4, 2012.

  1. Kenneth Holland

    Kenneth Holland Active Member

    Hello All,

    I currently use Google Analytics on my main site (which is Wordpress) and have installed XF in a subdirectory.

    QUESTON(S): Can I set up a separate Analytics account for the XF side to keep the two separate or is that not possible because it's in a subdirectory?

    And if I can 'go separate', where would I install the Analytics code?

    Thanks. :)

    Ken
     
  2. CyclingTribe

    CyclingTribe Well-Known Member

    Yes, just use the Admin tab in Analytics (on the right) and create a new site (which gets you the separate tracking code).

    Then in your XF Admin Control Panel, go to Options > Statistics and Metrics and fill in your code in the Google Analytics Web Property ID field. (y)

    Cheers,
    Shaun :D
     
    Kenneth Holland likes this.
  3. Kenneth Holland

    Kenneth Holland Active Member

    I'm assuming I put in the ID that starts with 'UA' then a dash and then a number.

    I set it up so I'll make sure it works after a bit.

    Thanks Shaun!
     
  4. DBA

    DBA Well-Known Member

    You'd be better off using the same code and creating different profiles for your sub-directories. This allows you to look at each profile as if it were its own code but still let's you view your stats for the whole site.
     
  5. Kenneth Holland

    Kenneth Holland Active Member

    Do you mean the same Analytics code that I'm using now for my root site (Wordpress)?
     
  6. CyclingTribe

    CyclingTribe Well-Known Member

    That sounds interesting. I wasn't aware you could do that. Any chance of posting a few details on how to set one/a few up?

    Thanks,
    Shaun :D
     
  7. Kenneth Holland

    Kenneth Holland Active Member

    I was just posting again to ask how to set up a different profile for the same site? :)
     
  8. Kenneth Holland

    Kenneth Holland Active Member

    I created a different profile but it gives me the same ID code as the main tracking.
     
  9. DBA

    DBA Well-Known Member

    Sorry I'm on the cell phone right, Google has pretty extensive how to's on this.
     
  10. DBA

    DBA Well-Known Member

    Correct you use the same ID code.
     
  11. DBA

    DBA Well-Known Member

  12. CyclingTribe

    CyclingTribe Well-Known Member

Share This Page