WPIntell

Source evidence

Retrieving a cookie in private mode.

WP Mautic Form Integrator · support · 2018-06-01T13:02:00+00:00

complaintsentiment
mediumseverity
0.87relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 25 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
voland1493 unresolved
I use WP Mautic form integrator. But in anonymous mode cookies are not retrieving to a user. I have found next code in a plugin. function _push_mautic_form( $query, $formId ) { if( is_array( $query ) && ! empty( $query ) && is_numeric( $formId ) ) { $ip = _get_ip(); $query[‘return’] = get_home_url(); $query[‘formId’] = $formId; $data = array( ‘mauticform’ => $query, ); $MauticBaseURL = get_option( ‘haw_mautic_base_url’ ); if ( $MauticBaseURL ) { $url = $MauticBaseURL . “/form/submit?formId=” . $formId; $response = wp_remote_post( $url, array( ‘method’ => ‘POST’, ‘timeout’ => 45, ‘headers’ => array( ‘X-Forwarded-For’ => $ip, ), ‘body’ => $data, ‘cookies’ => array() ) ); if ( is_wp_error( $response ) ) { $error_message = $response->get_error_message(); error_log( “Gform_Mautic Error: $error_message” ); error_log( “posted url: $url” ); } } } } I think that using an array cookie I can retrieve cookies from Mautic to a user. What should I put into that array to retrieve cookies? This topic was modified 7 years, 12 months ago by voland1493 .

Comments

0 shown

No comments were stored for this source.