Hello, looking at this thread, It seems i now found out why Google Analytics is broken since upgrading to 1.3.
Is there a a fix for this?
1.3 Google Analytics / JavaScript Broken
Moderators: Developer, Contributor
Re: 1.3 Google Analytics / JavaScript Broken
Hi,
Sorry i'm confused (that thread was a bit hard to follow!), is there a patch we can implement for an immediate fix on this? I have a large project going live next week and i really need to be able to measure user interaction.
Thanks
Sorry i'm confused (that thread was a bit hard to follow!), is there a patch we can implement for an immediate fix on this? I have a large project going live next week and i really need to be able to measure user interaction.
Thanks
Re: 1.3 Google Analytics / JavaScript Broken
The ongoing discussion in the pull request is about a clean fix.RedSpider wrote:is there a patch we can implement for an immediate fix on this?
This means having the best security in Mantis out of the box, but to allow administrators and/or plugin authors to add rules to allow foreign trusted resources.
This discussion and the final implementation might end the next few days or might last longer if there is no common decision or there are bugs when testing.
So the answer to your questions depends on what you mean with "fix".
The clean fix, or a dirty workaround that comes with reduced security.
Interesting.RedSpider wrote:and i really need to be able to measure user interaction.
Can you tell a bit about what you are measuring and what is your plan to to depending on the results?
Re: 1.3 Google Analytics / JavaScript Broken
At the moment I'll settle for a dirty workaround, since my site in question is running behind CloudFlare I am afforded some protection from them and their WAF.atrol wrote:So the answer to your questions depends on what you mean with "fix".
The clean fix, or a dirty workaround that comes with reduced security.
I need to be able to use data from Google Analytics to gather information on users, sessions, time on the site etc so i can build a picture of how the site is being used so that i can use this as proof of concept that it delivers better quality feedback for both end users and developers.atrol wrote:Can you tell a bit about what you are measuring and what is your plan to to depending on the results?
Re: 1.3 Google Analytics / JavaScript Broken
There is this piece of code in file core/http_api.php
Just add a #, change it to
Code: Select all
function http_all_headers() {
global $g_bypass_headers;
if( !$g_bypass_headers && !headers_sent() ) {
http_content_headers();
http_caching_headers();
http_security_headers();
http_custom_headers();
}
}
Code: Select all
function http_all_headers() {
global $g_bypass_headers;
if( !$g_bypass_headers && !headers_sent() ) {
http_content_headers();
http_caching_headers();
# http_security_headers();
http_custom_headers();
}
}
Re: 1.3 Google Analytics / JavaScript Broken
Thank you. I'll use this (cautiously) as an interim fix while the new release goes out