CRediT contribution statement: Pros and cons of including non-author contributors?
However, the ICMJE recommends that authorship be based on fulfilling all of 4 criteria (including 1) contributions to the conception/acquisition/analysis, and 2) critical contribution to the actual paper). Most journals (to my knowledge) follow this recommendation regarding authorship.

I do not think that most journals do follow the ICMJE recommendation regarding authorship, at least outside the medical field. To take the journal Nature as an example

Each author is expected to have made substantial contributions to the conception or design of the work; or the acquisition, analysis, or interpretation of data; or the creation of new software used in the work; or have drafted the work or substantively revised it

To take another example away from the medical field, the American Physical Society say that

Authorship should be limited to those who have made a significant contribution to the concept, design, execution or interpretation of the research study. All those who have made significant contributions should be offered the opportunity to be listed as authors. Other individuals who have contributed to the study should be acknowledged, but not identified as authors. The sources of financial support for the project should be disclosed.

Again this is much less stringent than the ICMJE guidelines.