Skip to content

Commit

Permalink
Lower the priority to allow user to register scripts before.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Jul 13, 2024
1 parent b2038b8 commit 2a785a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion src/Frontend/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ] );
}

Expand Down

0 comments on commit 2a785a8

Please sign in to comment.