[DigitalPoint] Better Google Analytics

[DigitalPoint] Better Google Analytics 1.1.2.2

No permission to download
Yes, this is over the last 7 days. Once I upgraded it just started happening. Majority of the exceptions are not set.

View attachment 320028View attachment 320029
When you visit your site, and you look at the browser console, are you seeing errors there? For the most part the exception errors are just logging client-side/browser errors that users are getting. That would be a good place to start.
 
When you visit your site, and you look at the browser console, are you seeing errors there? For the most part the exception errors are just logging client-side/browser errors that users are getting. That would be a good place to start.
Thanks for the lead. I've traced the issue. Thanks for the great addons and support.
 
Nginx 404, fixed already.
Thanks :)

I'm curious how you fixed this 404 in nginx. We're getting the same when trying to host locally.

/jc/gtm.js?_v=xxxxxxxxx


Failed to load resource: the server responded with a status of 404 ()
 
I'm curious how you fixed this 404 in nginx. We're getting the same when trying to host locally.

/jc/gtm.js?_v=xxxxxxxxx


Failed to load resource: the server responded with a status of 404 ()
It's going to be some rule you have setup in Nginx that is intercepting a request ending in .js and probably trying to cache that request without checking if the file exists or not. Whatever it is, is going to be in your Nginx .conf files.

You can test it by doing the same request and make the extension anything (gtm.xxx or something)... XenForo doesn't actually care what the extension is. Do that and see if Nginx passes the request along to XenForo when it's not a .js extension.
 
Hiya DP
Upgraded to 1.1.2.2 but still getting

Server error log
  • GuzzleHttp\Exception\InvalidArgumentException: json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded
  • src/vendor/guzzlehttp/guzzle/src/Utils.php:298
  • Generated by: Unknown account
  • 25 Apr 2025 at 9:36 AM

Stack trace​

#0 src/vendor/guzzlehttp/guzzle/src/Client.php(377): GuzzleHttp\Utils::jsonEncode(Array)
#1 src/vendor/guzzlehttp/guzzle/src/Client.php(328): GuzzleHttp\Client->applyOptions(Object(GuzzleHttp\Psr7\Request), Array)
#2 src/vendor/guzzlehttp/guzzle/src/Client.php(169): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#3 src/vendor/guzzlehttp/guzzle/src/ClientTrait.php(207): GuzzleHttp\Client->requestAsync('POST', Object(GuzzleHttp\Psr7\Uri), Array)
#4 src/addons/DigitalPoint/Analytics/GoogleApi/Measurement.php(47): GuzzleHttp\Client->postAsync('https://www.goo...', Array)
#5 src/addons/DigitalPoint/Analytics/GoogleApi/Measurement.php(76): DigitalPoint\Analytics\GoogleApi\Measurement->makeApiCall('https://www.goo...', Array)
#6 src/addons/DigitalPoint/Analytics/Repository/Measurement.php(11): DigitalPoint\Analytics\GoogleApi\Measurement->collect('1975a313-0734-4...', Array, 0, Array, true)
#7 src/addons/DigitalPoint/Analytics/Pub/Controller/Beacon.php(35): DigitalPoint\Analytics\Repository\Measurement->collect('1975a313-0734-4...', Array, [invalid])
#8 src/XF/Mvc/Dispatcher.php(362): DigitalPoint\Analytics\Pub\Controller\Beacon->actionImage(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DigitalPoint\\An...', 'Image', Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Analytics\Pub\Controller\Beacon), NULL)
#10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Analytics\Pub\Controller\Beacon), NULL)
#11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state​

array(4) {
["url"] => string(195) "/b/image.gif?p=miIjFM4KJIM1oxIBIVHeEydRL2yt0FQR6r%2FQ902%2FfXD3vi9%2FX062wbrPaGlvfMlMsz37kZG84UxTEj4P9X%2F4iEZMYkf8xh8UmWdkCekz93ATNc%2FQHtokSnelbrc39Fs4%2BIoMbQzkTdob2Z4cSurPVh5x5G2rTLHDwcwPkZa8"
["referrer"] => bool(false)
["_GET"] => array(1) {
["p"] => string(168) "miIjFM4KJIM1oxIBIVHeEydRL2yt0FQR6r/Q902/fXD3vi9/X062wbrPaGlvfMlMsz37kZG84UxTEj4P9X/4iEZMYkf8xh8UmWdkCekz93ATNc/QHtokSnelbrc39Fs4+IoMbQzkTdob2Z4cSurPVh5x5G2rTLHDwcwPkZa8"
}
["_POST"] => array(0) {
}
}

 
Back
Top Bottom