[DigitalPoint] Better Google Analytics

[DigitalPoint] Better Google Analytics 1.0.7.2

No permission to download
Sometimes, it can be a simple as a moment of internet connection failure and things like that happen.

Thanks for bringing this most needed addon for free.
 

digitalpoint

Well-known member
digitalpoint updated [DigitalPoint] Better Google Analytics with a new update entry:

Adds support for XenForo's cookie consent system

This version has nothing added other than support for XenForo's new cookie consent system. If you are using a version of XenForo prior 2.2.12, it has no effect. There's also no effect if you aren't using the new cookie consent system.

The only situation where this update would be needed is if you are using XenForo 2.2.12+ and you are using the new Advanced (Beta) cookie consent option.

Read the rest of this update entry...
 

AndrewSimm

Well-known member
I am getting this error when clicking on "Client side errors"

Code:
InvalidArgumentException: Please remove pageLocation to make the request compatible. The request's dimensions & metrics are incompatible. To learn more, see https://ga-dev-tools.web.app/ga4/dimensions-metrics-explorer/ in src/addons/DigitalPoint/Analytics/GoogleApi/AbstractApi.php at line 31
DigitalPoint\Analytics\GoogleApi\AbstractApi->makeApiCall() in src/addons/DigitalPoint/Analytics/GoogleApi/Data.php at line 15
DigitalPoint\Analytics\GoogleApi\Data->runReport() in src/addons/DigitalPoint/Analytics/Repository/Reporting.php at line 159
DigitalPoint\Analytics\Repository\Reporting->runReport() in src/addons/DigitalPoint/Analytics/Repository/Reporting.php at line 524
DigitalPoint\Analytics\Repository\Reporting->getExceptions() in src/addons/DigitalPoint/Analytics/Admin/Controller/Analytics.php at line 156
DigitalPoint\Analytics\Admin\Controller\Analytics->actionExceptions() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2483
XF\App->run() in src/XF.php at line 524
XF::runApp() in admin.php at line 13
 

digitalpoint

Well-known member
It looks like the issue with pageLocation has already been reported to Google via their Google Analytics issue/bug tracker by others. There's nothing in the reporting change log that happened since it stopped working, and the API documentation still says it should work. I think we are probably just going to have to wait until Google fixes the reporting issue on that one. :(

From the little bit of testing I did, it appears pageLocation stopped working in conjunction with any other dimensions. Which would make it more or less useless for anything until they fix it.
 

AndrewSimm

Well-known member
Do the logs update daily? Looks like GA4 data started rolling in at 11PM last night but I show nothing for today.
 

digitalpoint

Well-known member
The data from Google Analytics should be as realtime as you can see in the normal Google Analytics reporting interface on their website. Is there a specific report you are talking about that you see something in the normal GA reporting interface, but you aren't seeing in XF admin?
 

AndrewSimm

Well-known member
Google Analytics shows 9.9K page-views today but that number is really lower considering I have been in the 140K range. The only thing that seems right is the real time users.
Screen Shot 2023-01-01 at 2.41.44 PM.png
Screen Shot 2023-01-01 at 2.40.59 PM.png
 

digitalpoint

Well-known member
Well you can't really compare UA with GA4 if that's what you are trying to do. What I meant by reporting matching is it should match between the same property in XF admin and Google Analytics' interface. It looks like you are comparing a GA4 property in XF admin and a UA property in Google Analytics' interface. If you look at the property in Google Analytics, do the pageviews match there (again, the GA4 property in Google Analytics, not a UA property). This add-on doesn't do anything with UA properties and definitely can't report on data from a UA property.
 

AndrewSimm

Well-known member
Well you can't really compare UA with GA4 if that's what you are trying to do. What I meant by reporting matching is it should match between the same property in XF admin and Google Analytics' interface. It looks like you are comparing a GA4 property in XF admin and a UA property in Google Analytics' interface. If you look at the property in Google Analytics, do the pageviews match there (again, the GA4 property in Google Analytics, not a UA property). This add-on doesn't do anything with UA properties and definitely can't report on data from a UA property.
I am still getting use to GA4 (switched yesterday) and thus far I don't fully understand how to pull comparable data.

The report below shows 9.9k page view events today This number has not changed in hours, despite is showing 4,845 events in the last 30 mins. The real-time screenshot above looks correct.

My point with showing UA is that the data appears off. How would I consistently have 600 - 700 users online but only 9.9K page views (which hasn't changed in hours). Why would this add-on show 663 users online in real time but no page views?

Screen Shot 2023-01-01 at 3.41.29 PM.png

Screen Shot 2023-01-01 at 3.44.24 PM.png
 

digitalpoint

Well-known member
If it's a brand new GA4 property, it can take 24-48 hours for data to show up in reports. If you are seeing data under the realtime report, I think it's safe to say that Google is properly receiving data from your property (which is the most important thing). And if it's a new property, give it a day or two before the reports start looking more normal.
 

AndrewSimm

Well-known member
If it's a brand new GA4 property, it can take 24-48 hours for data to show up in reports. If you are seeing data under the realtime report, I think it's safe to say that Google is property receiving data from your property (which is the most important thing). And if it's a new property, give it a day or two before the reports start looking more normal.
Thanks, i will do that.
 

digitalpoint

Well-known member
digitalpoint updated [DigitalPoint] Better Google Analytics with a new update entry:

Fix for exception reporting

  • Fixed issue with compatibility with old versions of PHP.
  • Requires PHP 7.0 or higher (just getting too annoying/difficult to maintain backward compatibility with very old versions of PHP on old versions of XenForo).
  • Exception reporting works again by changing pageLocation dimension to pagePath (Google seems to not allow reporting on URLs with full query string any longer... maybe a privacy thing?)

Read the rest of this update entry...
 
Top