Better Analytics

Better Analytics 3.1.1

No permission to download
Has anyone been using the heatmaps to dig into data to find anything interesting? I was poking around at them for my site, and realized that Tuesdays are our best day of the week. The most registrations, most traffic coming from organic search, most social interactions, etc. And by a pretty significant amount.

For example heatmaps breaking down user registration by hour/day:

upload_2015-4-20_9-36-32.webp

It even seems like more ads are clicked on Tuesdays:

upload_2015-4-20_9-37-44.webp
 
Finding the same but my blue blocks are spread across weekdays. Thursday is marginally better if I had to call it.
 
I was just looking at the heatmap and suddenly it stopped working
I just get a white page now.

And loads of these errors in the error log.

Code:
Server Error Log
Error Info
ErrorException: Fatal Error: Call to a member function getBody() on null - library/DigitalPointBetterAnalytics/Helper/Reporting.php:524
Generated By: Fred., 46 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
  ["url"] => string(54) "https://www.example.com/admin.php?analytics/heatmap"
  ["_GET"] => array(1) {
    ["analytics/heatmap"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
I was just looking at the heatmap and suddenly it stopped working
I just get a white page now.

And loads of these errors in the error log.

Code:
Server Error Log
Error Info
ErrorException: Fatal Error: Call to a member function getBody() on null - library/DigitalPointBetterAnalytics/Helper/Reporting.php:524
Generated By: Fred., 46 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
  ["url"] => string(54) "https://www.example.com/admin.php?analytics/heatmap"
  ["_GET"] => array(1) {
    ["analytics/heatmap"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
That's going to be an issue with the Google API. Double check your credentials and also you might want to up the number of concurrent API calls. You can find that under the Google Developer Console (under your project) at APIs & auth -> APIs -> Analytics API -> Quotas. From there, you can raise the per user/requests/second limit if you have hit that.

Hmmmm... Yes I am tracking it. This mod (crucial for my site) is maybe preventing tracking?https://xenforo.com/community/resources/external-authentication-privacy-by-waindigo.2858/
I wouldn't think so, but no idea... I don't run it myself. Can't imagine why it would be interfering with something that has nothing to do with it. If it totally takes over the registration process, then yes... that could be an issue because the Better Analytics add-on, hooks into XF's registration process for the registration event logging.
 
Tag manager has nothing to do with Google Analytics does it? I thought it was more for DFP?

I mean I know they work together, but if you deploy Google Tag Manager, it's not by changing Google Analytics JS code is it?
 
Tag manager has nothing to do with Google Analytics does it? I thought it was more for DFP?

I mean I know they work together, but if you deploy Google Tag Manager, it's not by changing Google Analytics JS code is it?
I'm learning about tag manager and it's presented as a simpler way to manage all your tags including GA tags without editing the templates.
 
Tag manager has nothing to do with Google Analytics does it? I thought it was more for DFP?

I mean I know they work together, but if you deploy Google Tag Manager, it's not by changing Google Analytics JS code is it?

Not a DFP thing. It's basically a way to give the marketing team access to all their various tags without them needing access to the rest of the site code. There's some other fancy stuff you can do with it because they have an embed layer, but primary use case is when marketing is constantly pinging an engineer to add this retargeting pixel or that analytics code or xyz tag.

It's definitely handy, but for most folks it's simpler to just use Xenforo/this addon for Google Analytics, and not add the Tag manager abstraction. Even if you have a bunch of other tags, I'd still recommend handling GA tags through @digitalpoint 's addon, and then run all your other tags through Tag Manager... just add the tag manager code in the header template.

You generally don't run ad tags in Tag manager BTW. You might run audience-cookie'ing tags, but that's it.
 
Last edited:
Not sure...

Code:
2015/05/09 13:53:10 [error] 24429#0: *290 open() "/misc/a.js" failed (2: No such file or directory), client: clientip, server: www.gamingforums.net, request: "GET /misc/a.js?_v=a636fa28 HTTP/1.1", host: "www.gamingforums.net", referrer: "https://www.gamingforums.net/"
2015/05/09 13:57:00 [error] 24431#0: *354 open() "/misc/a.js" failed (2: No such file or directory), client: clientip, server: www.gamingforums.net, request: "GET /misc/a.js?_v=a636fa28 HTTP/1.1", host: "www.gamingforums.net", referrer: "https://www.gamingforums.net/"
2015/05/09 13:58:42 [error] 24430#0: *401 open() "/misc/a.js" failed (2: No such file or directory), client: clientip, server: www.gamingforums.net, request: "GET /misc/a.js?_v=a636fa28 HTTP/1.1", host: "www.gamingforums.net", referrer: "https://www.gamingforums.net/"
2015/05/09 13:59:10 [error] 24428#0: *427 open() "/misc/a.js" failed (2: No such file or directory), client: clientip, server: www.gamingforums.net, request: "GET /misc/a.js HTTP/1.1", host: "www.gamingforums.net"

Is /misc/a.js a real file?
 
No, it's not a real file... but some server configurations are set up to validate files exist in the file system based on extension, rather than passing the request to the Application. There is an option to include the JavaScript code inline in that case.
 
No, it's not a real file... but some server configurations are set up to validate files exist in the file system based on extension, rather than passing the request to the Application. There is an option to include the JavaScript code inline in that case.
Actual URL being https://www.gamingforums.net/index.php?misc/a.js
Well, not sure why my config is looking at the extension and making a request, it should ignore it. I know how to make it work but another location or something should be unnecessary, it's probably something I've written somewhere.
 
Yep that will work because you are effectively changing the extension from .js to .php. You can tell it's something outside/upstream of XenForo because it's an Nginx error, not a XF error. So something is intercepting the request before it's sent to the application (XenForo).
 
Back
Top Bottom