2

How can I disable Google Analytics for the Wildfly 10 admin console using a configuration file or a command line parameter?

Redhat provides only documentation on how to disable the feature using the admin console: Enable/Disable Google Analytics in EAP Console

I could not find the corresponding code in the wildfly sources.

Yeti
  • 1,108
  • 19
  • 28
  • Are you talking for your own webapp? Wildfly doesn't have GA enabled globally. – stdunbar Mar 13 '20 at 16:04
  • @stdunbar No, I'm talking about the Wildfly admin console. The option seems to be enabled by default. Disabling the option only sets a cookie in the browser of the user. I updated the question. – Yeti Mar 13 '20 at 17:06

1 Answers1

2

I was able to get this to work by running:

bin/standalone.sh -DCOLLECT_USER_DATA=false

It took a while to find this as the console after Wildfly 12 is based on HAL. When you set the value via the console it only sets a cookie to disable it - it's not a permanent setting. I was unable to find a place besides standalone.conf where I could make this change permanent. I had to add it to the JAVA_OPTS settings.

stdunbar
  • 16,263
  • 11
  • 31
  • 53