Plugin Directory

Changeset 3336306


Ignore:
Timestamp:
07/30/2025 04:26:44 AM (8 months ago)
Author:
createaccord
Message:

Fixed an issue with loading order.

Location:
hide-gtm-code
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • hide-gtm-code/trunk/hide-gtm-code.php

    r3257664 r3336306  
    44* Plugin URI: https://create-accord.com/production/plugins/
    55* Description: The plugin embeds GTM code with minimal impact on your theme and performance, preventing unnecessary measurement.
    6 * Version: 1.1.0
     6* Version: 1.1.1
    77* Author: CREATE ACCORD
    88* Author URI: https://create-accord.com/
     
    435435        if ($hgtmc_script_ga_code != '') {
    436436            $ga_script_code_url = esc_url('https://www.googletagmanager.com/gtag/js?id=' . $hgtmc_script_ga_code);
    437             wp_enqueue_script('ga4-js-script', $ga_script_code_url, array(), null, array('async', false));
     437            wp_enqueue_script(
     438                'ga4-js-script',
     439                $ga_script_code_url,
     440                array(),
     441                'ga4',
     442                array(
     443                    'in_footer' => false,
     444                    'strategy' => 'async'
     445                )
     446            );
    438447        }
    439448    }
  • hide-gtm-code/trunk/readme.txt

    r3277949 r3336306  
    44Requires at least: 6.8
    55Tested up to: 6.8
    6 Stable tag: 1.1.0
     6Stable tag: 1.1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141== Changelog ==
    4242
     431.1.1
     44Fixed an issue with loading order.
     45
    43461.1.0
    4447The text is not reflected so I will update it. There are no changes to the content.
Note: See TracChangeset for help on using the changeset viewer.