• Resolved mkdes

    (@mkdes)


    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.

    • This topic was modified 4 months, 2 weeks ago by mkdes.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    I agree that the load priority is high. I have been hesitant to lower it due to potential conflicts with consent plugins. I will set the priority to 5 in the next release, which will be available this Monday. Hopefully, this change will not cause any issues, as leaving it at 1 is already problematic.

    Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    1.23.1 has just been released

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.