'nextmove-lite', 'utm_campaign' => 'settings', 'utm_medium' => 'text-click', 'utm_term' => 'javascript-event', ), 'https://xlplugins.com/docs/nextmove-woocommerce-thank-you-page/how-to/add-custom-javascript-events-thank-page/' ); $ga_after_row_text = '

' . __( 'Already set up Facebook Pixel or Google Analytics Events? You don\'t need to check these settings. Just ensure that your Pixels/Events are triggered on NextMove Thank You Page(s).', 'woo-thank-you-page-nextmove-lite' ); $ga_after_row_text .= '

' . __( 'If you want to fire custom javascript events on thank you page, follow this', 'woo-thank-you-page-nextmove-lite' ) . ' link.

'; return array( array( 'name' => __( 'NextMove Mode', 'woo-thank-you-page-nextmove-lite' ), 'desc' => __( 'Select Live button to go live. In Sandbox mode, only preview works.', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'xlwcty_preview_mode', 'type' => 'radio_inline', 'options' => array( 'live' => __( 'Live', 'woo-thank-you-page-nextmove-lite' ), 'sandbox' => __( 'Sandbox', 'woo-thank-you-page-nextmove-lite' ), ), 'before_row' => '

' . __( 'General', 'woo-thank-you-page-nextmove-lite' ) . '

', ), array( 'name' => __( 'Left Right Padding (gap)', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'wrap_left_right_padding', 'type' => 'text', 'desc' => __( 'In responsive mode if you find left right padding is required', 'woo-thank-you-page-nextmove-lite' ), 'attributes' => array( 'type' => 'number', 'min' => '0', 'pattern' => '\d*', ), ), array( 'name' => __( 'Allow ThankYou pages on Order Status', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'allowed_order_statuses', 'type' => 'xlwcty_post_select', 'row_classes' => array( 'xlwcty_cmb2_chosen' ), 'options' => XLWCTY_Admin_CMB2_Support::get_wc_order_statuses(), 'desc' => __( 'Note: If you are receiving payments using PayPal kindly enable "pending payment" in order statuses', 'woo-thank-you-page-nextmove-lite' ), 'attributes' => array( 'multiple' => 'multiple', 'name' => 'allowed_order_statuses[]', 'data-placeholder' => __( 'Choose Order Status', 'woo-thank-you-page-nextmove-lite' ), ), ), array( 'name' => __( 'Google Map Api Key', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'google_map_api', 'type' => 'text', 'desc' => __( 'To generate API key, Click here', 'woo-thank-you-page-nextmove-lite' ), 'before_row' => '

' . __( 'Google Map', 'woo-thank-you-page-nextmove-lite' ) . '

', ), array( 'name' => __( 'Google Map Error Text', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'google_map_error_txt', 'type' => 'text', 'desc' => __( 'This text would be visible when map is unable to load', 'woo-thank-you-page-nextmove-lite' ), ), array( 'name' => __( 'Enable Facebook Pixel Tracking', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'enable_fb_ecom_tracking', 'desc' => __( 'Check this box if you want to fire Facebook pixels on Thank You page.', 'woo-thank-you-page-nextmove-lite' ), 'row_classes' => array( 'xlwcty_no_border' ), 'type' => 'checkbox', 'before_row' => '

' . __( 'eCommerce Tracking Codes', 'woo-thank-you-page-nextmove-lite' ) . '

', ), array( 'name' => __( 'Facebook Pixel ID', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'ga_fb_pixel_id', 'desc' => __( 'Log into your facebook ads account to find your Pixel ID. Click here for more info.', 'woo-thank-you-page-nextmove-lite' ), 'row_classes' => array( 'xlwcty_no_border', 'xlwcty_hide_label', 'xlwcty_pt0' ), 'before' => '

Facebook Pixel ID

', 'type' => 'text', 'attributes' => array( 'data-conditional-id' => 'enable_fb_ecom_tracking', 'data-conditional-value' => 'on', ), ), array( 'name' => __( 'Fire Facebook PageView event', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'enable_fb_pageview_event', 'desc' => __( 'Fire Facebook PageView event', 'woo-thank-you-page-nextmove-lite' ), 'row_classes' => array( 'xlwcty_no_border', 'xlwcty_hide_label', 'xlwcty_pt0' ), 'type' => 'checkbox', 'default' => '', 'attributes' => array( 'data-conditional-id' => 'enable_fb_ecom_tracking', 'data-conditional-value' => 'on', ), ), array( 'name' => __( 'Fire Facebook Purchase event to Add Conversion Values', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'enable_fb_purchase_event_conversion_val', 'desc' => __( 'Fire Facebook Purchase event to Add Conversion Values', 'woo-thank-you-page-nextmove-lite' ), 'row_classes' => array( 'xlwcty_no_border', 'xlwcty_hide_label', 'xlwcty_pt0' ), 'type' => 'checkbox', 'default' => '', 'attributes' => array( 'data-conditional-id' => 'enable_fb_ecom_tracking', 'data-conditional-value' => 'on', ), 'after' => __( '

Note: NextMove will send total order value and store currency based on order. Click here to know more.

', 'woo-thank-you-page-nextmove-lite' ), ), array( 'name' => __( 'Fire Facebook Purchase event with Order item\'s complete data i.e. product name, category & product_id.', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'enable_fb_purchase_event', 'desc' => __( 'Fire Facebook Purchase event with Order item\'s complete data i.e. product name, category & product_id.', 'woo-thank-you-page-nextmove-lite' ), 'row_classes' => array( 'xlwcty_no_border', 'xlwcty_hide_label', 'xlwcty_pt0' ), 'type' => 'checkbox', 'default' => '', 'attributes' => array( 'data-conditional-id' => 'enable_fb_ecom_tracking', 'data-conditional-value' => 'on', ), 'after' => __( '

Note: Your Product catalog must be synced with Facebook. Click here to know more.

', 'woo-thank-you-page-nextmove-lite' ), ), array( 'name' => __( 'Setup advanced matching with the pixel', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'enable_fb_advanced_matching_event', 'desc' => __( 'Setup advanced matching with the pixel', 'woo-thank-you-page-nextmove-lite' ), 'row_classes' => array( 'xlwcty_no_border', 'xlwcty_hide_label', 'xlwcty_pt0' ), 'type' => 'checkbox', 'default' => '', 'attributes' => array( 'data-conditional-id' => 'enable_fb_ecom_tracking', 'data-conditional-value' => 'on', ), 'after' => __( '

Note: NextMove will send customer\'s email, name, phone, address fields whichever available in the order. Click here to know more.

', 'woo-thank-you-page-nextmove-lite' ), ), array( 'name' => __( 'Enable Google Analytics Tracking', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'enable_ga_ecom_tracking', 'desc' => __( 'Check this box if you want to push google analytics eCommerce events on Thank You page.', 'woo-thank-you-page-nextmove-lite' ), 'row_classes' => array( 'xlwcty_no_border' ), 'default' => '', 'type' => 'checkbox', ), array( 'name' => __( 'Google Analytics ID', 'woo-thank-you-page-nextmove-lite' ), 'id' => 'ga_analytics_id', 'desc' => __( 'Log into your google analytics account to find your ID. eg: UA-XXXXXX-X.', 'woo-thank-you-page-nextmove-lite' ), 'row_classes' => array( 'xlwcty_no_border', 'xlwcty_hide_label', 'xlwcty_pt0' ), 'before' => '

Google Analytics ID

', 'after_row' => $ga_after_row_text, 'type' => 'text', 'attributes' => array( 'data-conditional-id' => 'enable_ga_ecom_tracking', 'data-conditional-value' => 'on', ), ), array( 'name' => '_wpnonce', 'id' => '_wpnonce', 'type' => 'hidden', 'attributes' => array( 'value' => wp_create_nonce( 'woocommerce-settings' ), ), ), );