In the Oracle APEX application, a template has been implemented to monitor user interactions such as login details, page scrolls, page views, and button clicks. These interactions are tracked using Google Analytics 4 through the Google tag (gtag.js) within the Oracle APEX application.
The requirement is to selectively enable Google Analytics 4 login based on the environment. Specifically, with Google Analytics 4 should only be active when the Oracle APEX environment is in the Production state. In the Development site, the Google Analytics 4 login functionality should remain inactive or popup some message to avoid tracking interactions during the development phase?