1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Xenforo Better Analytics installation guide

Discussion in 'Better Analytics' started by AnC02, Jun 14, 2016.

  1. #1
    Hi,
    I am looking for a step by step installation guide on how to link google analytics to the xenforo Better Analytics add on.
    I want to be able to track activity by users on the forum, such as posting and viewing and dropping out. Is this possible and if so how do I set it up in both the add-on and google analytics?
    Where does the GA code go in xenforo? I tried linking it to the ID and that isn't showing me anything.
    Thanks
    An
    SEMrush
     
    AnC02, Jun 14, 2016 IP
    SEMrush
  2. seoaceindia

    seoaceindia Banned

    Messages:
    441
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    33
    #2
    follow this video
     
    seoaceindia, Jun 14, 2016 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,207
    Likes Received:
    2,584
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    For Better Analytics you would just need to install the addon. Are you getting any specific error?
     
    digitalpoint, Jun 15, 2016 IP
  4. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    Thanks the video helps, originally the identifier wasn't sticking for me. Seems to be resolved.
     
    AnC02, Jun 16, 2016 IP
  5. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    I didn't get an error message just the google identifier didn't want to stick in the statistics and metrics screen.

    What I want to be able to track is as follows:
    member logins
    comments/posts
    most popular threads and resources
    what is searched and viewed

    How do I make sure this is set-up, does it require the paid version (which I have now bought)?

    Can I also through your add-on track which members are not logging in? If yes, how do I do this?
     
    AnC02, Jun 16, 2016 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,207
    Likes Received:
    2,584
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    There isn't going to be a way to log someone performing the action of logging in, if that's what you mean?

    Logging comments and posts is done through the "Content Being Create" event option.

    The most popular content, you can see in your Google Analytics reporting under Behavior -> Site Content

    What people are searching for on your site can be seen under Behavior -> Site Search

    To see which users are logging in, you can go to Audience -> Behavior -> User-ID Coverage
     
    digitalpoint, Jun 17, 2016 IP
  7. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #7
    I bought the pro version of better analytics, yet in statistics and metrics in xenforo, a lot of the functionality is still greyed out. It says I am using an unlicensed version of better analytics. How can I verify the license?

    also when I look to authenticate the google API project credentials, I receive an error 401 in Google, what needs to be done?
     
    AnC02, Jun 19, 2016 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,207
    Likes Received:
    2,584
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    If you go to Admin -> Tools -> Diagnostics -> Test Analytics Setup

    What do you get there?
     
    digitalpoint, Jun 19, 2016 IP
  9. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #9
    Couldn't attach screenshots, so just copied in content from the test analytics page
    Things That Can Be Automatically Checked
    Web Property ID Defined:

    Cache Setup:

    Not required, but recommended for reporting speed.

    cURL Installed:

    Not required, but recommended to have the cURL extensions enabled in PHP.

    API Project Credentials:

    Google Analytics Account Linked:

    Analytics Profile Selected:

    Site Search Setup:

    Found in Google Analytics account under View Settings -> Query Parameter (should be set to "q").

    Ecommerce Tracking Enabled:

    Found in Google Analytics account under Ecommerce Settings.

    Enhanced Ecommerce Tracking Enabled:

    Found in Google Analytics account under Ecommerce Settings.

    Industry Vertical Set:

    Found in Google Analytics account under Property Settings.

    Custom Dimension For User Tracking:

    Found in Google Analytics account under Custom Definitions -> Custom Dimensions (should be named "User" and scoped for "Hit").

    Custom Dimension For Forum Tracking:

    Found in Google Analytics account under Custom Definitions -> Custom Dimensions (should be named "Forum" and scoped for "Hit").

    User Tracking Dimension Index Set:

    Forum Tracking Dimension Index Set:

    Better Analytics License:

    A few extra advanced features are available when you license the Better Analytics add-on. Please don't steal, a crazy amount of work went into this. Some of the extra features:
    • Heatmaps
    • More Event Tracking (for example knowing when a user opened an email)
    • Ability To Track Users With Analytics Blockers
    • Charts On Member's Analytics Tab
    • Reporting And Backend Tracking Is Faster (utilizes a multi-threaded mechanism)
    • A Warm & Fuzzy Feeling Knowing You Are Helping To Continue Future Development

    Things That Need To Be Checked Manually
    User-ID Tracking:
    Found in Google Analytics account under Tracking Info -> User-ID.

    Demographic and Interest Reports:
    Found in Google Analytics account under Property Settings.
     
    AnC02, Jun 19, 2016 IP
  10. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #10
    Any answer for my previous post on this?
     
    AnC02, Jun 22, 2016 IP
  11. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,207
    Likes Received:
    2,584
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #11
    I'd go down in order on things. If you have already created a project and put in the project credentials, you would want to link your Google Analytics account next (it should give you a link to do that).
     
    digitalpoint, Jun 22, 2016 IP
  12. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #12
    I hav one that on both the statistics and metrics page and the google page in xenforo, the outcome however remains error 401 when I try to authenticate.
     
    AnC02, Jun 22, 2016 IP
  13. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,207
    Likes Received:
    2,584
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #13
    I suspect your project credentials are incorrect in that case. You would want you double (triple) check that.
     
    digitalpoint, Jun 22, 2016 IP
  14. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #14
    I copied and pasted them directly from analytics?
     
    AnC02, Jun 22, 2016 IP
  15. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,207
    Likes Received:
    2,584
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #15
    Well for whatever reason Google thinks the credentials are wrong. I'd maybe try to copy/paste from the API Console again... maybe a stray space got in there or something.
     
    digitalpoint, Jun 23, 2016 IP
  16. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #16
    that hasn't worked
     
    AnC02, Jun 29, 2016 IP
  17. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #17
    Also I paid $50 to have the licensed full version of this add-on, but it isn't recognising that. Where do I find my license key and how do I put it into the add on? Do I need to download a new licensed version of the add-on?
    and how on earth do I get it to work with google analytics?
     
    AnC02, Jun 29, 2016 IP
  18. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,207
    Likes Received:
    2,584
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #18
    Well no matter what, it's not going to work as far as the API stuff if your Google Project credentials are incorrect. If you say they are correct, you might need to contact Google directly to find out why your Project credentials are not working. I would guess they are simply not correct though, as I've never heard of Google Project credentials not working. The whole reason they give you the API credentials is to use them for your API projects.

    Also, make sure you are using the right type of credentials from your project (should be OAuth2 credentials for a web application).
     
    digitalpoint, Jun 29, 2016 IP
  19. AnC02

    AnC02 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #19
    I restarted the oAuth2 credentials process and linking it to xenforo again, now the authenticate option in statistics and metrics does link to the correct google analytics.
    But now I receive the following error in xenforo:
    Server Error
    Invalid chunk size "" unable to read chunked body

    1. Zend_Http_Client_Adapter_Socket->read() in Zend/Http/Client.php at line 989
    2. Zend_Http_Client->request() in DigitalPointBetterAnalytics/Helper/Reporting.php at line 72
    3. DigitalPointBetterAnalytics_Helper_Reporting::exchangeCodeForToken() in DigitalPointBetterAnalytics/ControllerAdmin/Analytics.php at line 31
    4. DigitalPointBetterAnalytics_ControllerAdmin_Analytics->actionAuth() in XenForo/FrontController.php at line 351
    5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    6. XenForo_FrontController->run() in /home/gamifica/public_html/levelup/admin.php at line 13
     
    AnC02, Jun 29, 2016 IP
  20. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,207
    Likes Received:
    2,584
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #20
    That's going to be an underlying issue with the Zend Framework in XenForo. What version of PHP/XenForo are you using?
     
    digitalpoint, Jun 29, 2016 IP