Found the charts and graphs, but struggling to locate the real time dataDoes this addon provide any graphs or charts within xenForo, if so, where do I find them?
- Error: Call to a member function getBody() on null
- src/addons/DigitalPoint/Analytics/Repository/JavaScript.php:53
- Generated by: Unknown account
- Jun 9, 2022 at 12:58 PM
Stack trace
#0 src/addons/DigitalPoint/Analytics/Cron/CleanUp.php(24): DigitalPoint\Analytics\Repository\JavaScript->getFile('gtm', true)
#1 src/XF/Job/Cron.php(37): DigitalPoint\Analytics\Cron\CleanUp::runHourlyCleanUp(Object(XF\Entity\CronEntry))
#2 src/XF/Job/Manager.php(260): XF\Job\Cron->run(7.72755)
#3 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.72755)
#4 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.72755)
#5 job.php(43): XF\Job\Manager->runQueue(false, 8)
#6 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(32) "https://www.behind-the-mask.net/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
- ErrorException: Server was too slow.
- src/XF/Error.php:77
- Generated by: Unknown account
- Jun 9, 2022 at 8:58 PM
Stack trace
#0 src/XF.php(219): XF\Error->logError(Object(XF\Phrase), false)
#1 src/addons/DigitalPoint/Analytics/Repository/JavaScript.php(50): XF::logError(Object(XF\Phrase))
#2 src/addons/DigitalPoint/Analytics/Cron/CleanUp.php(24): DigitalPoint\Analytics\Repository\JavaScript->getFile('gtm', true)
#3 src/XF/Job/Cron.php(37): DigitalPoint\Analytics\Cron\CleanUp::runHourlyCleanUp(Object(XF\Entity\CronEntry))
#4 src/XF/Job/Manager.php(260): XF\Job\Cron->run(7.90474)
#5 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.90474)
#6 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.90474)
#7 job.php(43): XF\Job\Manager->runQueue(false, 8)
#8 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(38) "https://www.behind-the-mask.net/media/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
The realtime data you can get from Google Analytics is pretty limited (you can't even see the URL of a real-time page view for example). So for the purposes of this add-on, the realtime data is presented in a block on the admin main index page as a world map.Found the charts and graphs, but struggling to locate the real time data
Is it consistent, like happening every hour (when the cron runs), or was it transient? That exception is the standard exception from when the XenForo Http client times out when the http request fails. So if Google's server takes too long to respond to the http request, that would be the normal expected exception that gets logged. The timeout in this case would happen if Google's server doesn't respond to the http request after 8 seconds. The http request being this: https://www.googletagmanager.com/gtag/jsReceived two errors in the admincp that I believe may be attributed to this addon - thought I'd paste for reference. I've not noticed any particular issues personally.
admin.php?stats/
I don't see any new criteria.1. I connected my Google account and somehow it didn't find the existing property I am using for years now. So I created a new one.
Now in Google I have the old and the new one. What is the recommended way here? Should I go with a new property or use the old one?
2. Where and when do we the new stats? Underadmin.php?stats/
I don't see any new criteria.
3. When we uninstall the addon, does it all go back to its normal way? Does the old Google Analytics property still track everything?
4. When I connected the Google account, it asked for authorization. Do you get access to our data?
1. That’s normal… Google Analytics 4 properties are different than legacy and Universal Analytics properties.1. I connected my Google account and somehow it didn't find the existing property I am using for years now. So I created a new one.
Now in Google I have the old and the new one. What is the recommended way here? Should I go with a new property or use the old one?
2. Where and when do we the new stats? Underadmin.php?stats/
I don't see any new criteria.
3. When we uninstall the addon, does it all go back to its normal way? Does the old Google Analytics property still track everything?
4. When I connected the Google account, it asked for authorization. Do you get access to our data?
5. Thank you .
No… Google has set a date next summer that old properties will stop processing data and GA4 is a new event based model/system. Basically you can choose to migrate now, or be forced to migrate next year. I’m not aware of any system out there that will import old Analytics data into a GA4 property. There might be one, but it also seems like a waste of time because GA4 doesn’t keep data indefinitely like the old properties. So your old imported data would be wiped on a rolling window anyway.Thanks.
Is there a way to migrate my existing GA3 to GA4 then? So I don't lose years of my data?
Ah, damn, I need glasses. I expected it to be under statistics, but you created a new whole section just below it, which I missed.Reports are under Admin -> Logs -> Analytics (the Logs area is also where XF has its stats).
I see. Strange that there is no tool to just upgrade GA3 to GA4 but if there is none, so be it. Good to know that I made the right decision to use this addon since otherwise next year I would have started with GA4 and would have wasted a whole year with no data.So your old imported data would be wiped on a rolling window anyway.
Ya, it's definitely not ideal. It would have been nice if Google made a tool to migrate data, but I can also see the benefit of not doing it because then they would need to make compromises of how GA4 handles data (they made a cut and completely changed the model to be totally event driven so it's quite different internally vs. the previous version which they were able to carry over between versions).I see. Strange that there is no tool to just upgrade GA3 to GA4 but if there is none, so be it. Good to know that I made the right decision to use this addon since otherwise next year I would have started with GA4 and would have wasted a whole year with no data.
- Changed "javascript" route to "jc" to avoid conflict with web servers configured to internally handle requests with the string "javascript" without passing it along to XenForo (only applies when using the
Host Google Tag Manager JavaScript on your own domain
option)- Made the realtime block on admin index collapsible
- Reports and realtime block have a link at top to take you directly to Google Analytics
The first version was kind of like how you are talking about. The problem is there’s limited room on mobile devices. So the option was either to make it smaller or do something different depending on the device you are on. I went with consistency across devices.Updated and re-enabled the hosted JS and it seems to be fine now. Thx for the update. The G that takes you to Analytics is nice but as a developer my opinion is it's not discoverable. I like how some of my device sites do it with a button "Open in Analytics" so you are very clear to the user that it's there. My $.02.
Nice job.
Ya, it's been in the back of my mind that I want to make it an option where people can just "x" out the url when they are there, similar to here:I spoke too soon. Daily Statistics is dead. No data.
Disregard. I see it was for the specific page I was viewing. It would be nice if there was a way to clear the set URL and return to the home page to view stats? I used the Stats button at the top right of the site when I was on a page, a page I didn't care about but just wanted to go into Stats to view.
Went ahead and got this done for next version. The URI filtering of chart data is presented using XenForo's filter system, rather than a form row. This allow you to remove the filter with a click. See how the URI-specific option can be removed with the X here:I spoke too soon. Daily Statistics is dead. No data.
Disregard. I see it was for the specific page I was viewing. It would be nice if there was a way to clear the set URL and return to the home page to view stats? I used the Stats button at the top right of the site when I was on a page, a page I didn't care about but just wanted to go into Stats to view.
We use essential cookies to make this site work, and optional cookies to enhance your experience.