Better Analytics

Better Analytics 3.1.1

No permission to download
Not sure what your google_analytics file is, but if you are wanting to use your own code, easiest to just do that (use your own code), and not use the add-on since mostly it generates different Google Analytics JavaScript code.


Sorry - I mean I wanted to use another bit of code, think heatmaps kind of thing but as your add on seems to override this Admin CP -> Appearance -> Templates -> google_analytics - I can't use my own thing alongside
 
Any idea why this is happening? I plan on purchasing the premium version and just want to make sure i wont run into issues like this one.

ErrorException: Fatal Error: syntax error, unexpected T_FUNCTION - library/DigitalPointBetterAnalytics/Mail.php:21
Generated By: ******, 1 minute ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError('DigitalPointBet...')
#1 {main}
Request State
array(3) {
["url"] => string(52) "http://www.******.com/forums/conversations/insert"
["_GET"] => array(0) {
}
["_POST"] => array(9) {
["recipients"] => string(10) "Leighann, "
["title"] => string(22) ""The Den" Forum Access"
["message_html"] => string(354) "<p>Hey There!</p><p><br></p><p>I just gave you access to "The Den"</p><p><br></p><p>I didn't mean to read your personal message to Stephanie but when you sent the website was converting over to the new software and I saw the website error. So I was able to read the pm but wasn't sure who you sent it.</p><p><br></p><p>Let me know if it works for you</p>"
["_xfRelativeResolver"] => string(49) "http://www******.com/forums/conversations/add"
["attachment_hash"] => string(32) "e22ca6dbb0a9d084e804cfec52fbde8e"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(25) "/forums/conversations/add"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Any idea why this is happening? I plan on purchasing the premium version and just want to make sure i wont run into issues like this one.
Are you by chance running a (very) old version of PHP? Specifically 5.2.x? It uses an anonymous function, which PHP added support for in 5.3.0.

PHP 5.2 was "end of lifed" a long, long time ago and hasn't had a release in more than half a decade (so no security updates or anything).

If you are forced to stay on an old version of PHP, you could disable the email tracking events in the plug-in and it should be fine.
 
Can't imagine why PHP 7 would cause a security token to go missing, but I suppose if that's the only difference maybe somehow that's the case. Better Analytics doesn't do anything with security tokens, that's really just an internal function of XenForo. A bit difficult to debug at this point because I don't have access to a PHP7 install right now.
 
Ok, I found out it has nothing todo with php 7 because with PHP 5.6 I have the same problem.
I did several upgrades on my server over the last month and everything works fine apart from this. :confused:
 
Problem solved :)
I had api on my Defer Blacklist and that was causing the error.
I only found that out when I disabled BD Cache.
 
I tried to install with "Add-on Install & Upgrade" but i get this error:


Server Error
Given file is no zip archive

  1. Zend_Filter_Compress_Zip->decompress() in Zend/Filter/Decompress.php at line 47
  2. Zend_Filter_Decompress->filter() in AddOnInstaller/Model/AddOn.php at line 29
  3. AddOnInstaller_Model_AddOn->extractZip() in AddOnInstaller/ControllerAdmin/AddOn.php at line 146
  4. AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 351
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  6. XenForo_FrontController->run() in /home/fikihoyg/public_html/www.muhasebecafe.com/admin.php at line 13
 
Where do I find configuration and set-up instructions for this resource?
I am having trouble connecting it to my google analytics
 
Where do I find configuration and set-up instructions for this resource?
I am having trouble connecting it to my google analytics
Are you getting any specific error?

@digitalpoint Shawn, can I make a request, please that the list of shared computers have an option to order by most recent, please? admin.php?analytics/computers
So I messed around with this a bit... it works, but it's not terribly fast (and really nothing that can be done about the speed). Specifically, you need to sort by last activity through a SQL JOIN which is terrible to do.

For my setup, it makes the SQL queries from that page go from an already slow 0.9 seconds to 28.2 seconds. So it *is* doable, but there's no way around it being slow. Still something you would be interested in?
 
Are you getting any specific error?

So I messed around with this a bit... it works, but it's not terribly fast (and really nothing that can be done about the speed). Specifically, you need to sort by last activity through a SQL JOIN which is terrible to do.

For my setup, it makes the SQL queries from that page go from an already slow 0.9 seconds to 28.2 seconds. So it *is* doable, but there's no way around it being slow. Still something you would be interested in?
Thanks Shawn. Well my admin who monitors this says that he sees the same reports at the top and they fast become old news. It's the new records that he wants to see as a priority.
Is there a possibility that adding an index to a table will help?
 
Thanks Shawn. Well my admin who monitors this says that he sees the same reports at the top and they fast become old news. It's the new records that he wants to see as a priority.
Is there a possibility that adding an index to a table will help?
Nope... you can't index a sort done via a cross-table join unfortunately.
 
Back
Top Bottom