Hi,

I have installed Google Analytics module for Drupal 9, but the web property id won't save.

When I click save using the default configuration, I simply get the same page with the ID erased (i.e., nothing happens).

There is no log available for the same in the Drupal Log

Drupal Version 9.1.8
PHP Version 8.0.2

Comments

hass’s picture

Category: bug » support
Status: Active » Closed (cannot reproduce)

There must be an error message. I cannot read a google id. Check you server log files, fix apache, fix mod security.

bethanyvsmith’s picture

Version: 7.x-1.x-dev » 7.x-1.2

I'm having the exact same problem. The minute I save the Google Analytics configuration, it saves everything else but the Web Property ID disappears. On the status report page it indicates that I have not configured Google Analytics. I've tried typing the number as well as copying and pasting.

usaussie’s picture

Status: Closed (cannot reproduce) » Active

Have this same issue. Version 7.12....

Put Web Property ID into field, save.....it appears to work correctly (no errors), but the value is not saved. The value is not anywhere in the database, and it is not being rendered in the page source either.

hass’s picture

Status: Active » Fixed

Replace the wrong dashes with real dashes, please. Don't copy & paste from google, please.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mcncyo’s picture

Issue summary: View changes
Status: Closed (fixed) » Needs work

I'm still having the same problem. Nothing in any log file at all.

generalconsensus’s picture

Double check your settings.php file I had the same problem and mine had the following set:

$conf['googleanalytics_account'] = '';

hass’s picture

Status: Needs work » Closed (fixed)
abhisheknagar’s picture

Version: 7.x-1.2 » 8.x-3.1
Issue summary: View changes

The Issue occurs due to Mod Security

[Mon May 10 06:44:11.640143 2021] [:error] [pid 27276:tid 4097849587456] [client 49.36.217.7:58078] [client 49.36.217.7] ModSecurity: Access denied with code 403 (phase 2). Operator GE matched 7 at TX:anomaly_score. [file "/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-949-BLOCKING-EVALUATION.conf"] [line "150"] [id "949110"] [msg "Inbound Anomaly Score Exceeded (Total Score: 10)"] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-generic"] [hostname "XXXXXX.xyz"] [uri "/admin/config/system/google-analytics"] [unique_id "YJk4q2TInXzLy7FG4TSTUAAAAAE"], referer: https://XXXXXXX.xyz/admin/config/system/google-analytics

abhisheknagar’s picture

Issue summary: View changes
abhisheknagar’s picture

Issue summary: View changes