I see no way to rank scripts in order of when they should be queued in relation to each other.

 

Example.

Google tag manager needs to be loaded prior to calling any other scripts that track conversions. I have that code block on all pages.

I track a specific page as a conversion in GA. That specific page has a block that triggers that conversion tracking.

If the conversion script is called before the GTAG script is loaded then the conversion won’t register.

There should be either a simple rank value attributed to each code block or a way to relate blocks with other blocks and then a required load order.

2 responses to “Scripts Organizer > Queue Rank Code Blocks”

  1. cmsexpertss says:

    Hi,

    This feature is in progress and will be released soon. For now you can use this plugin https://wordpress.org/plugins/post-types-order/

    Regards,
    Muhammad Osama

  2. aglyons says:

    I managed to adjust the order by changing the post date of the code block. Newer posts are called prior to older posts.

    Adding Tag Manager and then adding blocks that call it will fail.

    Changing the post date of the tag that calls tag manager so that it’s older than the code block with tag manager in it fixes the problem (for now).

Leave a Reply

Your email address will not be published.