View Issue Details

This bug affects 2 person(s).
 16
IDProjectCategoryView StatusLast Update
14310Bug reportsOtherpublic2022-11-28 14:16
Reporterautopoiesis Assigned Togabrieljenik  
PrioritynormalSeveritypartial_block 
Status assignedResolutionfixed 
Product Version3.15.x 
Summary14310: Google Analytics functionality doesn't work
Description

I have made screenshots from 2 setting scenarios and the associated output.
Issues:

  • pageview code line is doubled
  • virtual page view is missing in pageview code line
  • in case of global setting GA-ID is even not visible
TagsNo tags attached.
Bug heat16
Complete LimeSurvey version number (& build) 3.15.5 181115
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & version mysqlnd 5.0.12-
Server OS (if known) Linux ip-10-0-3-4 4.4.0-134-generic #160-Ubuntu SMP
Webserver software & version (if known) Apache
PHP Version7.0.32-0ubuntu0.16.04.1

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

autopoiesis

autopoiesis

2018-12-03 12:25

reporter  

output-1.png (13,817 bytes)   
output-1.png (13,817 bytes)   
setting-1.png (14,820 bytes)   
setting-1.png (14,820 bytes)   
output-2.png (9,002 bytes)   
output-2.png (9,002 bytes)   
setting-2.png (11,280 bytes)   
setting-2.png (11,280 bytes)   
holch

holch

2019-09-30 21:26

reporter   ~53790

This still seems to be an issue today: https://www.limesurvey.org/forum/design-issues/107384-google-analytics-javascript-does-not-appear

ddoucet

ddoucet

2019-09-30 21:43

reporter   ~53792

Google Analytics still outputting erroneous UA code : 9999useGlobal9999

Google Analytics settings: Use global settings', does this regardless of whether 'Google Analytics style' is set to 'Default' or 'Survey-SID/Group'.

See : https://github.com/LimeSurvey/LimeSurvey/search?q=9999useGlobal9999&type=Code

gabrieljenik

gabrieljenik

2020-11-24 18:09

manager   ~60750

The setting is not compatible with Google Analytics 4.
Also, the group tracking is not working.
Seems trackURL is never filled on surveyInfo

netikja

netikja

2022-05-25 12:50

reporter   ~70034

The issue still persists to this day. Is there any way to circumvent the issue and use GA v4? Is there a way to track all traffic on the server?

gabrieljenik

gabrieljenik

2022-06-17 18:28

manager   ~70407

Created Feature Request 18197 for allowing GAv4.

gabrieljenik

gabrieljenik

2022-09-30 14:12

manager   ~72031

A newPR will be released soon! :)

gabrieljenik

gabrieljenik

2022-09-30 20:17

manager   ~72040

Last edited: 2022-09-30 22:40

PR LTS: https://github.com/LimeSurvey/LimeSurvey/pull/2643
After approved, we do Master

  • Porting logic from 2.06_sp_1.6.0
  • Implementing google tracking by surveyId & group number/name
  • Added the possibility of setting the "group number/name" from the controller. Used for Print Answers, Public Stats, Registration, Load Survey y Resume Later.

For reference, in LS 2.06:

  • Registration and Load Survey pages came out as Welcome
  • Print Answers, Public Stats and Resume Later pages came out with the group number, and without the group name (wrongly I think, as there is not group number for those). I mean, it didn't say print answer or anything like that, even though the code seemed to try to do that.
gabrieljenik

gabrieljenik

2022-11-24 14:46

manager   ~72888

Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34057

LimeBot

LimeBot

2022-11-28 11:11

administrator   ~72913

Fixed in Release 3.28.40+221129

gabrieljenik

gabrieljenik

2022-11-28 14:16

manager   ~72917

This still needs to be also applied in Master

Related Changesets

LimeSurvey: 3.x-LTS a49987e2

2022-11-24 14:37:28

gabrieljenik


Committer: GitHub Details Diff
Fixed issue 14310: Google Analytics functionality doesn't work (#2643)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
Affected Issues
14310
mod - application/config/internal.php Diff File
mod - application/controllers/PrintanswersController.php Diff File
mod - application/controllers/Statistics_userController.php Diff File
mod - application/controllers/survey/index.php Diff File
mod - application/core/LS_Twig_Extension.php Diff File
mod - application/helpers/SurveyRuntimeHelper.php Diff File
mod - application/helpers/common_helper.php Diff File
mod - application/helpers/replacements_helper.php Diff File
mod - application/models/Survey.php Diff File
mod - themes/survey/vanilla/views/subviews/header/google_analytics.twig Diff File

Issue History

Date Modified Username Field Change
2018-12-03 12:25 autopoiesis New Issue
2018-12-03 12:25 autopoiesis File Added: output-1.png
2018-12-03 12:25 autopoiesis File Added: setting-1.png
2018-12-03 12:25 autopoiesis File Added: output-2.png
2018-12-03 12:25 autopoiesis File Added: setting-2.png
2019-01-10 16:31 LouisGac Assigned To => markusfluer
2019-01-10 16:31 LouisGac Status new => assigned
2019-09-30 21:26 holch Note Added: 53790
2019-09-30 21:43 ddoucet Note Added: 53792
2020-11-24 18:09 gabrieljenik Note Added: 60750
2022-05-25 12:48 guest Bug heat 6 => 12
2022-05-25 12:50 netikja Note Added: 70034
2022-05-25 12:50 netikja Bug heat 12 => 14
2022-05-25 19:30 gabrieljenik Assigned To markusfluer =>
2022-05-25 19:31 gabrieljenik Assigned To => gabrieljenik
2022-05-25 19:31 gabrieljenik Status assigned => confirmed
2022-05-25 19:31 gabrieljenik Assigned To gabrieljenik =>
2022-05-25 19:32 gabrieljenik Priority none => normal
2022-05-25 19:32 gabrieljenik Severity minor => partial_block
2022-05-25 19:32 gabrieljenik Description Updated
2022-06-17 18:28 gabrieljenik Note Added: 70407
2022-09-30 14:12 gabrieljenik Note Added: 72031
2022-09-30 20:17 gabrieljenik Note Added: 72040
2022-09-30 20:17 gabrieljenik Assigned To => DenisChenu
2022-09-30 20:17 gabrieljenik Status confirmed => ready for code review
2022-09-30 20:18 gabrieljenik Note Edited: 72040
2022-09-30 22:40 gabrieljenik Note Edited: 72040
2022-10-03 16:00 DenisChenu Assigned To DenisChenu =>
2022-10-03 16:00 DenisChenu Status ready for code review => ready for testing
2022-11-04 16:44 gabrieljenik Assigned To => ollehar
2022-11-04 16:44 gabrieljenik Status ready for testing => ready for merge
2022-11-24 14:46 gabrieljenik Changeset attached => LimeSurvey 3.x-LTS a49987e2
2022-11-24 14:46 gabrieljenik Note Added: 72888
2022-11-24 14:46 gabrieljenik Assigned To ollehar => gabrieljenik
2022-11-24 14:46 gabrieljenik Resolution open => fixed
2022-11-28 11:11 LimeBot Note Added: 72913
2022-11-28 11:11 guest Bug heat 14 => 16
2022-11-28 11:11 LimeBot Bug heat 16 => 14
2022-11-28 11:11 LimeBot Status ready for merge => closed
2022-11-28 11:11 LimeBot Bug heat 14 => 16
2022-11-28 14:16 gabrieljenik Status closed => assigned
2022-11-28 14:16 gabrieljenik Note Added: 72917