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

XF 1.2 Make non-xf visitors show up in XF stats?

Discussion in 'XenForo Questions and Support' started by craigiri, Oct 1, 2013.

  1. craigiri

    craigiri Well-Known Member

    Is there a piece of php or js code which I can embed in other pages on my site which will make those visitors show up (as guests, obviously, unless logged in) on my XF stats?
     
  2. Jeremy

    Jeremy Well-Known Member

    If you create a session for them, they should be counted.
     
  3. craigiri

    craigiri Well-Known Member

    So, is there a reference here to a piece of code I can copy and paste?

    I know how to do that, but not write a session piece...
     
  4. Jeremy

    Jeremy Well-Known Member

    I do not have a reference on me, and can't write one up write now. I do believe it may be a function within XenForo_Session.
     
  5. craigiri

    craigiri Well-Known Member

    Oh, thanks!
    I assumed that someone had probably asked or done this before and a small piece of php was sitting around somewhere buried. I'll try some searches on that function.
     

Share This Page