Lara_M
June 21, 2022, 7:44am
1
OJS version: 3.3.0.11
The Google Analytics plugin seems not to work: even if I put the measurement ID or the stream ID.
There is a strange behavior in the configuration: it seems like the url composed has some error. When I click on the text field I’ll be redirected in https://www.google.com/analytics>Google%20Analytics</a>%20per%20maggiori%20informazioni.</p><p>Google%20Analytics%20potrebbe%20impiegare%20fino%20a%2024%20ore%20per%20la%20raccolta%20iniziale%20dei%20dati%20statistici.%20Durante%20questo%20periodo,%20la%20funzione
Lara_M
June 23, 2022, 2:43pm
3
Hi,
I can do that, thank you. But I also wanted to try to use the Custom header plugin. Which I found out it doesn’t really work…
When I install it it doesn’t appear in the Plugin list. @rcgillis do you know anything about this?
(Also, I have another minor bug I want to report… Sorry I am discovering lots of things ^^’)
Hi, @Lara_M ,
You might want to check your PHP error logs, to see if there are relevant errors there - is this happening with other plugins as well?
Also, you might find this relevant: https://pkp.sfu.ca/2022/04/21/google-analytics-privacy-practices-challenged/
-Roger
PKP Team
Lara_M
July 1, 2022, 10:55am
6
So, it worked with this modification to the plugin:
Hi @NateWr , the change in the plugin of Google Analytic for supporting GA4 is to modify the lines googleAnalytics/GoogleAnalyticsPlugin.inc.php at 8990b7768ebd02adc2c1fa4ba8c01c8b760d47dd · pkp/googleAnalytics · GitHub
for
$googleAnalyticsCode = "
(function(i,s,o,g,r,q,a,m){i[q]=i[q]||[];i[r]=i[r]||function(){i[q].push(arguments)}; a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.googletagmanager.com…
This topic was automatically closed after 4 days. New replies are no longer allowed.