Plugin Directory

Changeset 3400402


Ignore:
Timestamp:
11/21/2025 11:25:45 AM (4 months ago)
Author:
gtmserver
Message:

Update to version 2.1.39 from GitHub

Location:
gtm-server-side
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gtm-server-side/tags/2.1.39/README.txt

    r3374198 r3400402  
    44Requires at least: 5.2.0
    55Tested up to: 6.8.0
    6 Stable tag: 2.1.38
     6Stable tag: 2.1.39
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 2.1.39 =
     71* Rename "product" to "accountType"
     72* Added some cookies to the purchase webhook list
     73
    7074= 2.1.38 =
    7175* Added "select_item" event
  • gtm-server-side/tags/2.1.39/gtm-server-side.php

    r3374198 r3400402  
    1111 * Plugin URI:        https://wordpress.org/plugins/gtm-server-side/
    1212 * Description:       Enhance conversion tracking by implementing server-side tagging using server Google Tag Manager container. Effortlessly configure data layer events in web GTM, send webhooks, set up custom loader, and extend cookie lifetime.
    13  * Version:           2.1.38
     13 * Version:           2.1.39
    1414 * Author:            Stape
    1515 * Author URI:        https://stape.io
  • gtm-server-side/tags/2.1.39/includes/class-gtm-server-side-handler-data-manager-ingest.php

    r3359782 r3400402  
    181181        if ( ! empty( $option_login_cust_id ) ) {
    182182            $req_destinations['linkedAccount'] = array(
    183                 'product'  => 'GOOGLE_ADS',
    184                 'accountId' => $option_login_cust_id,
     183                'accountType' => 'GOOGLE_ADS',
     184                'accountId'   => $option_login_cust_id,
    185185            );
    186186        }
     
    188188        if ( ! empty( $option_oper_cust_id ) ) {
    189189            $req_destinations['operatingAccount'] = array(
    190                 'product'  => 'GOOGLE_ADS',
    191                 'accountId' => $option_oper_cust_id,
     190                'accountType' => 'GOOGLE_ADS',
     191                'accountId'   => $option_oper_cust_id,
    192192            );
    193193        }
  • gtm-server-side/tags/2.1.39/includes/class-gtm-server-side-helpers.php

    r3359782 r3400402  
    547547    public static function get_request_cookies() {
    548548        $request_cookies = array(
    549             '_fbp'         => filter_input( INPUT_COOKIE, '_fbp', FILTER_DEFAULT ),
    550             '_fbc'         => filter_input( INPUT_COOKIE, '_fbc', FILTER_DEFAULT ),
    551             'FPGCLAW'      => filter_input( INPUT_COOKIE, 'FPGCLAW', FILTER_DEFAULT ),
    552             '_gcl_aw'      => filter_input( INPUT_COOKIE, '_gcl_aw', FILTER_DEFAULT ),
    553             'ttclid'       => filter_input( INPUT_COOKIE, 'ttclid', FILTER_DEFAULT ),
    554             '_dcid'        => filter_input( INPUT_COOKIE, '_dcid', FILTER_DEFAULT ),
    555             'FPID'         => filter_input( INPUT_COOKIE, 'FPID', FILTER_DEFAULT ),
    556             'FPLC'         => filter_input( INPUT_COOKIE, 'FPLC', FILTER_DEFAULT ),
    557             '_ttp'         => filter_input( INPUT_COOKIE, '_ttp', FILTER_DEFAULT ),
    558             'FPGCLGB'      => filter_input( INPUT_COOKIE, 'FPGCLGB', FILTER_DEFAULT ),
    559             'li_fat_id'    => filter_input( INPUT_COOKIE, 'li_fat_id', FILTER_DEFAULT ),
    560             'taboola_cid'  => filter_input( INPUT_COOKIE, 'taboola_cid', FILTER_DEFAULT ),
    561             'outbrain_cid' => filter_input( INPUT_COOKIE, 'outbrain_cid', FILTER_DEFAULT ),
    562             'impact_cid'   => filter_input( INPUT_COOKIE, 'impact_cid', FILTER_DEFAULT ),
    563             '_epik'        => filter_input( INPUT_COOKIE, '_epik', FILTER_DEFAULT ),
    564             '_scid'        => filter_input( INPUT_COOKIE, '_scid', FILTER_DEFAULT ),
    565             '_scclid'      => filter_input( INPUT_COOKIE, '_scclid', FILTER_DEFAULT ),
    566             '_uetmsclkid'  => filter_input( INPUT_COOKIE, '_uetmsclkid', FILTER_DEFAULT ),
    567             '_ga'          => filter_input( INPUT_COOKIE, '_ga', FILTER_DEFAULT ),
     549            '_fbp'                       => filter_input( INPUT_COOKIE, '_fbp', FILTER_DEFAULT ),
     550            '_fbc'                       => filter_input( INPUT_COOKIE, '_fbc', FILTER_DEFAULT ),
     551            'FPGCLAW'                    => filter_input( INPUT_COOKIE, 'FPGCLAW', FILTER_DEFAULT ),
     552            '_gcl_aw'                    => filter_input( INPUT_COOKIE, '_gcl_aw', FILTER_DEFAULT ),
     553            'ttclid'                     => filter_input( INPUT_COOKIE, 'ttclid', FILTER_DEFAULT ),
     554            '_dcid'                      => filter_input( INPUT_COOKIE, '_dcid', FILTER_DEFAULT ),
     555            'FPID'                       => filter_input( INPUT_COOKIE, 'FPID', FILTER_DEFAULT ),
     556            'FPLC'                       => filter_input( INPUT_COOKIE, 'FPLC', FILTER_DEFAULT ),
     557            '_ttp'                       => filter_input( INPUT_COOKIE, '_ttp', FILTER_DEFAULT ),
     558            'FPGCLGB'                    => filter_input( INPUT_COOKIE, 'FPGCLGB', FILTER_DEFAULT ),
     559            'li_fat_id'                  => filter_input( INPUT_COOKIE, 'li_fat_id', FILTER_DEFAULT ),
     560            'taboola_cid'                => filter_input( INPUT_COOKIE, 'taboola_cid', FILTER_DEFAULT ),
     561            'outbrain_cid'               => filter_input( INPUT_COOKIE, 'outbrain_cid', FILTER_DEFAULT ),
     562            'impact_cid'                 => filter_input( INPUT_COOKIE, 'impact_cid', FILTER_DEFAULT ),
     563            '_epik'                      => filter_input( INPUT_COOKIE, '_epik', FILTER_DEFAULT ),
     564            '_scid'                      => filter_input( INPUT_COOKIE, '_scid', FILTER_DEFAULT ),
     565            '_scclid'                    => filter_input( INPUT_COOKIE, '_scclid', FILTER_DEFAULT ),
     566            '_uetmsclkid'                => filter_input( INPUT_COOKIE, '_uetmsclkid', FILTER_DEFAULT ),
     567            '_ga'                        => filter_input( INPUT_COOKIE, '_ga', FILTER_DEFAULT ),
     568            'euconsent-v2'               => filter_input( INPUT_COOKIE, 'euconsent-v2', FILTER_DEFAULT ),
     569            'addtl_consent'              => filter_input( INPUT_COOKIE, 'addtl_consent', FILTER_DEFAULT ),
     570            'usprivacy'                  => filter_input( INPUT_COOKIE, 'usprivacy', FILTER_DEFAULT ),
     571            'OptanonConsent'             => filter_input( INPUT_COOKIE, 'OptanonConsent', FILTER_DEFAULT ),
     572            'CookieConsent'              => filter_input( INPUT_COOKIE, 'CookieConsent', FILTER_DEFAULT ),
     573            'didomi_token'               => filter_input( INPUT_COOKIE, 'didomi_token', FILTER_DEFAULT ),
     574            'didomi_dcs'                 => filter_input( INPUT_COOKIE, 'didomi_dcs', FILTER_DEFAULT ),
     575            'axeptio_cookies'            => filter_input( INPUT_COOKIE, 'axeptio_cookies', FILTER_DEFAULT ),
     576            'axeptio_authorized_vendors' => filter_input( INPUT_COOKIE, 'axeptio_authorized_vendors', FILTER_DEFAULT ),
     577            'cookieyes-consent'          => filter_input( INPUT_COOKIE, 'cookieyes-consent', FILTER_DEFAULT ),
     578            'complianz_consent_status'   => filter_input( INPUT_COOKIE, 'complianz_consent_status', FILTER_DEFAULT ),
     579            'borlabs-cookie'             => filter_input( INPUT_COOKIE, 'borlabs-cookie', FILTER_DEFAULT ),
     580            'uc_settings'                => filter_input( INPUT_COOKIE, 'uc_settings', FILTER_DEFAULT ),
    568581        );
    569582
     
    572585                $_COOKIE,
    573586                function( $key ) {
    574                     return preg_match( '/^_ga_.+/', $key );
     587                    if ( preg_match( '/^_ga_.+/', $key ) ) {
     588                        return true;
     589                    }
     590
     591                    if ( 0 === strpos( $key, '_iub_cs-' ) ) {
     592                        return true;
     593                    }
     594
     595                    if ( 0 === strpos( $key, 'cmplz_' ) ) {
     596                        return true;
     597                    }
     598
     599                    return false;
    575600                },
    576601                ARRAY_FILTER_USE_KEY
  • gtm-server-side/trunk/README.txt

    r3374198 r3400402  
    44Requires at least: 5.2.0
    55Tested up to: 6.8.0
    6 Stable tag: 2.1.38
     6Stable tag: 2.1.39
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 2.1.39 =
     71* Rename "product" to "accountType"
     72* Added some cookies to the purchase webhook list
     73
    7074= 2.1.38 =
    7175* Added "select_item" event
  • gtm-server-side/trunk/gtm-server-side.php

    r3374198 r3400402  
    1111 * Plugin URI:        https://wordpress.org/plugins/gtm-server-side/
    1212 * Description:       Enhance conversion tracking by implementing server-side tagging using server Google Tag Manager container. Effortlessly configure data layer events in web GTM, send webhooks, set up custom loader, and extend cookie lifetime.
    13  * Version:           2.1.38
     13 * Version:           2.1.39
    1414 * Author:            Stape
    1515 * Author URI:        https://stape.io
  • gtm-server-side/trunk/includes/class-gtm-server-side-handler-data-manager-ingest.php

    r3359782 r3400402  
    181181        if ( ! empty( $option_login_cust_id ) ) {
    182182            $req_destinations['linkedAccount'] = array(
    183                 'product'  => 'GOOGLE_ADS',
    184                 'accountId' => $option_login_cust_id,
     183                'accountType' => 'GOOGLE_ADS',
     184                'accountId'   => $option_login_cust_id,
    185185            );
    186186        }
     
    188188        if ( ! empty( $option_oper_cust_id ) ) {
    189189            $req_destinations['operatingAccount'] = array(
    190                 'product'  => 'GOOGLE_ADS',
    191                 'accountId' => $option_oper_cust_id,
     190                'accountType' => 'GOOGLE_ADS',
     191                'accountId'   => $option_oper_cust_id,
    192192            );
    193193        }
  • gtm-server-side/trunk/includes/class-gtm-server-side-helpers.php

    r3359782 r3400402  
    547547    public static function get_request_cookies() {
    548548        $request_cookies = array(
    549             '_fbp'         => filter_input( INPUT_COOKIE, '_fbp', FILTER_DEFAULT ),
    550             '_fbc'         => filter_input( INPUT_COOKIE, '_fbc', FILTER_DEFAULT ),
    551             'FPGCLAW'      => filter_input( INPUT_COOKIE, 'FPGCLAW', FILTER_DEFAULT ),
    552             '_gcl_aw'      => filter_input( INPUT_COOKIE, '_gcl_aw', FILTER_DEFAULT ),
    553             'ttclid'       => filter_input( INPUT_COOKIE, 'ttclid', FILTER_DEFAULT ),
    554             '_dcid'        => filter_input( INPUT_COOKIE, '_dcid', FILTER_DEFAULT ),
    555             'FPID'         => filter_input( INPUT_COOKIE, 'FPID', FILTER_DEFAULT ),
    556             'FPLC'         => filter_input( INPUT_COOKIE, 'FPLC', FILTER_DEFAULT ),
    557             '_ttp'         => filter_input( INPUT_COOKIE, '_ttp', FILTER_DEFAULT ),
    558             'FPGCLGB'      => filter_input( INPUT_COOKIE, 'FPGCLGB', FILTER_DEFAULT ),
    559             'li_fat_id'    => filter_input( INPUT_COOKIE, 'li_fat_id', FILTER_DEFAULT ),
    560             'taboola_cid'  => filter_input( INPUT_COOKIE, 'taboola_cid', FILTER_DEFAULT ),
    561             'outbrain_cid' => filter_input( INPUT_COOKIE, 'outbrain_cid', FILTER_DEFAULT ),
    562             'impact_cid'   => filter_input( INPUT_COOKIE, 'impact_cid', FILTER_DEFAULT ),
    563             '_epik'        => filter_input( INPUT_COOKIE, '_epik', FILTER_DEFAULT ),
    564             '_scid'        => filter_input( INPUT_COOKIE, '_scid', FILTER_DEFAULT ),
    565             '_scclid'      => filter_input( INPUT_COOKIE, '_scclid', FILTER_DEFAULT ),
    566             '_uetmsclkid'  => filter_input( INPUT_COOKIE, '_uetmsclkid', FILTER_DEFAULT ),
    567             '_ga'          => filter_input( INPUT_COOKIE, '_ga', FILTER_DEFAULT ),
     549            '_fbp'                       => filter_input( INPUT_COOKIE, '_fbp', FILTER_DEFAULT ),
     550            '_fbc'                       => filter_input( INPUT_COOKIE, '_fbc', FILTER_DEFAULT ),
     551            'FPGCLAW'                    => filter_input( INPUT_COOKIE, 'FPGCLAW', FILTER_DEFAULT ),
     552            '_gcl_aw'                    => filter_input( INPUT_COOKIE, '_gcl_aw', FILTER_DEFAULT ),
     553            'ttclid'                     => filter_input( INPUT_COOKIE, 'ttclid', FILTER_DEFAULT ),
     554            '_dcid'                      => filter_input( INPUT_COOKIE, '_dcid', FILTER_DEFAULT ),
     555            'FPID'                       => filter_input( INPUT_COOKIE, 'FPID', FILTER_DEFAULT ),
     556            'FPLC'                       => filter_input( INPUT_COOKIE, 'FPLC', FILTER_DEFAULT ),
     557            '_ttp'                       => filter_input( INPUT_COOKIE, '_ttp', FILTER_DEFAULT ),
     558            'FPGCLGB'                    => filter_input( INPUT_COOKIE, 'FPGCLGB', FILTER_DEFAULT ),
     559            'li_fat_id'                  => filter_input( INPUT_COOKIE, 'li_fat_id', FILTER_DEFAULT ),
     560            'taboola_cid'                => filter_input( INPUT_COOKIE, 'taboola_cid', FILTER_DEFAULT ),
     561            'outbrain_cid'               => filter_input( INPUT_COOKIE, 'outbrain_cid', FILTER_DEFAULT ),
     562            'impact_cid'                 => filter_input( INPUT_COOKIE, 'impact_cid', FILTER_DEFAULT ),
     563            '_epik'                      => filter_input( INPUT_COOKIE, '_epik', FILTER_DEFAULT ),
     564            '_scid'                      => filter_input( INPUT_COOKIE, '_scid', FILTER_DEFAULT ),
     565            '_scclid'                    => filter_input( INPUT_COOKIE, '_scclid', FILTER_DEFAULT ),
     566            '_uetmsclkid'                => filter_input( INPUT_COOKIE, '_uetmsclkid', FILTER_DEFAULT ),
     567            '_ga'                        => filter_input( INPUT_COOKIE, '_ga', FILTER_DEFAULT ),
     568            'euconsent-v2'               => filter_input( INPUT_COOKIE, 'euconsent-v2', FILTER_DEFAULT ),
     569            'addtl_consent'              => filter_input( INPUT_COOKIE, 'addtl_consent', FILTER_DEFAULT ),
     570            'usprivacy'                  => filter_input( INPUT_COOKIE, 'usprivacy', FILTER_DEFAULT ),
     571            'OptanonConsent'             => filter_input( INPUT_COOKIE, 'OptanonConsent', FILTER_DEFAULT ),
     572            'CookieConsent'              => filter_input( INPUT_COOKIE, 'CookieConsent', FILTER_DEFAULT ),
     573            'didomi_token'               => filter_input( INPUT_COOKIE, 'didomi_token', FILTER_DEFAULT ),
     574            'didomi_dcs'                 => filter_input( INPUT_COOKIE, 'didomi_dcs', FILTER_DEFAULT ),
     575            'axeptio_cookies'            => filter_input( INPUT_COOKIE, 'axeptio_cookies', FILTER_DEFAULT ),
     576            'axeptio_authorized_vendors' => filter_input( INPUT_COOKIE, 'axeptio_authorized_vendors', FILTER_DEFAULT ),
     577            'cookieyes-consent'          => filter_input( INPUT_COOKIE, 'cookieyes-consent', FILTER_DEFAULT ),
     578            'complianz_consent_status'   => filter_input( INPUT_COOKIE, 'complianz_consent_status', FILTER_DEFAULT ),
     579            'borlabs-cookie'             => filter_input( INPUT_COOKIE, 'borlabs-cookie', FILTER_DEFAULT ),
     580            'uc_settings'                => filter_input( INPUT_COOKIE, 'uc_settings', FILTER_DEFAULT ),
    568581        );
    569582
     
    572585                $_COOKIE,
    573586                function( $key ) {
    574                     return preg_match( '/^_ga_.+/', $key );
     587                    if ( preg_match( '/^_ga_.+/', $key ) ) {
     588                        return true;
     589                    }
     590
     591                    if ( 0 === strpos( $key, '_iub_cs-' ) ) {
     592                        return true;
     593                    }
     594
     595                    if ( 0 === strpos( $key, 'cmplz_' ) ) {
     596                        return true;
     597                    }
     598
     599                    return false;
    575600                },
    576601                ARRAY_FILTER_USE_KEY
Note: See TracChangeset for help on using the changeset viewer.