Hi devs,
I’d like to propose to move the Google Analytics feature into an extension. Several reasons:
- It’s not a core feature and thus shouldn’t be in XS by default
- Google says
On July 1, 2023, Universal Analytics will stop processing new hits. If you still rely on Universal Analytics, we urge you to prepare for the future by completing your move to Google Analytics 4, our next-generation measurement solution.
, and thus our current implementation will stop working. I don’t know if any core dev will want to work to support Google Analytics 4 and thus it’s best to make it a contrib app where anyone could easily contribute to it.
From what I see the move is not too hard:
- Move
GoogleAnalyticsCode.xml
out ofxwiki-platform-administration-ui
- Fix the
AdministrationIT
test by removing the check for the Google Analytics entry, and ideally add a functional test in the new contrib extension - Deprecate the following
admin.analytics.*
translation keys and add them in the new contrib extension:admin.analytics=Google Analytics\u2122 admin.analytics.description=Configure the Google Analytics\u2122 account. admin.analytics.account.description=To enable page view tracking in Google Analytics\u2122, enter your Google Analytics\u2122 account here. You may enter more accounts (space separated) to track pages in multiple accounts. admin.analytics.method.description=The tracking method you selected when you created the account. admin.analytics.notrunning=Google Analytics\u2122 is not running. admin.analytics.running=Google Analytics\u2122 is running. admin.analytics.noscript=The application is unable to retrieve the script required to execute Google Analytics\u2122. XWiki.GoogleAnalyticsCode_method=Tracking Method XWiki.GoogleAnalyticsCode_method_universal=Universal Analytics XWiki.GoogleAnalyticsCode_method_classic=Classic Analytics XWiki.GoogleAnalyticsCode_account=Account
WDYT?
Thanks