Changeset 3400402
- Timestamp:
- 11/21/2025 11:25:45 AM (4 months ago)
- Location:
- gtm-server-side
- Files:
-
- 8 edited
- 1 copied
-
tags/2.1.39 (copied) (copied from gtm-server-side/trunk)
-
tags/2.1.39/README.txt (modified) (2 diffs)
-
tags/2.1.39/gtm-server-side.php (modified) (1 diff)
-
tags/2.1.39/includes/class-gtm-server-side-handler-data-manager-ingest.php (modified) (2 diffs)
-
tags/2.1.39/includes/class-gtm-server-side-helpers.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/gtm-server-side.php (modified) (1 diff)
-
trunk/includes/class-gtm-server-side-handler-data-manager-ingest.php (modified) (2 diffs)
-
trunk/includes/class-gtm-server-side-helpers.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gtm-server-side/tags/2.1.39/README.txt
r3374198 r3400402 4 4 Requires at least: 5.2.0 5 5 Tested up to: 6.8.0 6 Stable tag: 2.1.3 86 Stable tag: 2.1.39 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 == Changelog == 69 69 70 = 2.1.39 = 71 * Rename "product" to "accountType" 72 * Added some cookies to the purchase webhook list 73 70 74 = 2.1.38 = 71 75 * Added "select_item" event -
gtm-server-side/tags/2.1.39/gtm-server-side.php
r3374198 r3400402 11 11 * Plugin URI: https://wordpress.org/plugins/gtm-server-side/ 12 12 * 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.3 813 * Version: 2.1.39 14 14 * Author: Stape 15 15 * Author URI: https://stape.io -
gtm-server-side/tags/2.1.39/includes/class-gtm-server-side-handler-data-manager-ingest.php
r3359782 r3400402 181 181 if ( ! empty( $option_login_cust_id ) ) { 182 182 $req_destinations['linkedAccount'] = array( 183 ' product'=> 'GOOGLE_ADS',184 'accountId' => $option_login_cust_id,183 'accountType' => 'GOOGLE_ADS', 184 'accountId' => $option_login_cust_id, 185 185 ); 186 186 } … … 188 188 if ( ! empty( $option_oper_cust_id ) ) { 189 189 $req_destinations['operatingAccount'] = array( 190 ' product'=> 'GOOGLE_ADS',191 'accountId' => $option_oper_cust_id,190 'accountType' => 'GOOGLE_ADS', 191 'accountId' => $option_oper_cust_id, 192 192 ); 193 193 } -
gtm-server-side/tags/2.1.39/includes/class-gtm-server-side-helpers.php
r3359782 r3400402 547 547 public static function get_request_cookies() { 548 548 $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 ), 568 581 ); 569 582 … … 572 585 $_COOKIE, 573 586 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; 575 600 }, 576 601 ARRAY_FILTER_USE_KEY -
gtm-server-side/trunk/README.txt
r3374198 r3400402 4 4 Requires at least: 5.2.0 5 5 Tested up to: 6.8.0 6 Stable tag: 2.1.3 86 Stable tag: 2.1.39 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 == Changelog == 69 69 70 = 2.1.39 = 71 * Rename "product" to "accountType" 72 * Added some cookies to the purchase webhook list 73 70 74 = 2.1.38 = 71 75 * Added "select_item" event -
gtm-server-side/trunk/gtm-server-side.php
r3374198 r3400402 11 11 * Plugin URI: https://wordpress.org/plugins/gtm-server-side/ 12 12 * 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.3 813 * Version: 2.1.39 14 14 * Author: Stape 15 15 * Author URI: https://stape.io -
gtm-server-side/trunk/includes/class-gtm-server-side-handler-data-manager-ingest.php
r3359782 r3400402 181 181 if ( ! empty( $option_login_cust_id ) ) { 182 182 $req_destinations['linkedAccount'] = array( 183 ' product'=> 'GOOGLE_ADS',184 'accountId' => $option_login_cust_id,183 'accountType' => 'GOOGLE_ADS', 184 'accountId' => $option_login_cust_id, 185 185 ); 186 186 } … … 188 188 if ( ! empty( $option_oper_cust_id ) ) { 189 189 $req_destinations['operatingAccount'] = array( 190 ' product'=> 'GOOGLE_ADS',191 'accountId' => $option_oper_cust_id,190 'accountType' => 'GOOGLE_ADS', 191 'accountId' => $option_oper_cust_id, 192 192 ); 193 193 } -
gtm-server-side/trunk/includes/class-gtm-server-side-helpers.php
r3359782 r3400402 547 547 public static function get_request_cookies() { 548 548 $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 ), 568 581 ); 569 582 … … 572 585 $_COOKIE, 573 586 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; 575 600 }, 576 601 ARRAY_FILTER_USE_KEY
Note: See TracChangeset
for help on using the changeset viewer.