I’m trying to add the new GA4 code to an existing site, and there seems to be some conflict / ordering issue between script_loader_tag
filters and wp_add_inline_script
. My functions.php
looks thusly:
I have installed the Google Analyticator plugin on my site. I am also using the MobilePress plugin to serve up a theme designed for non-smart-phone mobile browsers. I have set up Google Analytics for Mobile for use in this theme and would like to disable the Analyticator plugin since it includes a call to a larger js file.