Run script inline before GTM Kit
-
You set very hight prioryty for gtmkit script.
add_action( 'wp_enqueue_scripts', [ $page, 'enqueue_settings_and_data_script' ], 1, 0 );
How can I run inline script before gtmkit?
Directly before:
wp_enqueue_script( 'gtmkit' );
I use add_action wp_head, but this is always after gtmkit.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.