diff --git a/readme.txt b/readme.txt index 3ca027a..17019fa 100644 --- a/readme.txt +++ b/readme.txt @@ -98,6 +98,9 @@ Release date: 2024-07-15 #### Bugfixes: * An upgrade function was causing problems for multisite installations leading lost configuration. +#### Other: +* The load priority of the script 'gtmkit-js-before' has been lowered from 1 to 5 to allow user to register scripts before. + = 1.23 = Release date: 2024-07-04 @@ -157,3 +160,8 @@ Find out about what's new in our [our release post](https://gtmkit.com/gtm-kit-1 - Added an Event Inspector for verifying that events are being pushed to the datalayer. You can now debug events without using GTM preview mode. - Added advanced GCM settings: 'ads_data_redaction', 'url_passthrough' and 'wait_for_update'. - Updated the custom container loader for use with Stape.io. + +== Upgrade Notice == + += 1.23.1 = +The load priority of the script 'gtmkit-js-before' has been lowered from 1 to 5. diff --git a/src/Frontend/Frontend.php b/src/Frontend/Frontend.php index d3f07c2..78f19e8 100644 --- a/src/Frontend/Frontend.php +++ b/src/Frontend/Frontend.php @@ -49,7 +49,7 @@ public static function register( Options $options ): void { $noscript_implementation = $options->get( 'general', 'noscript_implementation' ); if ( empty( $options->get( 'general', 'just_the_container' ) ) ) { - add_action( 'wp_enqueue_scripts', [ $page, 'enqueue_settings_and_data_script' ], 1, 0 ); + add_action( 'wp_enqueue_scripts', [ $page, 'enqueue_settings_and_data_script' ], 5, 0 ); add_action( 'wp_enqueue_scripts', [ $page, 'enqueue_datalayer_content' ] ); }