@@ -546,32 +546,57 @@ public static function get_data_layer_event_name( $event_name ) {
546546 */
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
570583 if ( ! empty ( $ _COOKIE ) ) {
571584 $ filtered_cookies = array_filter (
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
577602 );
0 commit comments