html-gdpr.php
6 years ago
html-licenses.php
7 years ago
html-main-edd.php
6 years ago
html-main-events-edit.php
5 years ago
html-main-events.php
7 years ago
html-main-general.php
5 years ago
html-main-woo.php
5 years ago
html-popovers.php
7 years ago
html-report.php
7 years ago
html-reset.php
7 years ago
html-wrapper-main.php
7 years ago
html-main-woo.php
1421 lines
| 1 | <?php |
| 2 | |
| 3 | namespace PixelYourSite; |
| 4 | |
| 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | exit; // Exit if accessed directly. |
| 7 | } |
| 8 | |
| 9 | use PixelYourSite\Facebook\Helpers; |
| 10 | |
| 11 | ?> |
| 12 | |
| 13 | <h2 class="section-title">WooCommerce Settings</h2> |
| 14 | |
| 15 | <!-- Enable WooCommerce --> |
| 16 | <div class="card card-static"> |
| 17 | <div class="card-header"> |
| 18 | General |
| 19 | </div> |
| 20 | <div class="card-body"> |
| 21 | <div class="row"> |
| 22 | <div class="col"> |
| 23 | <p>Fire e-commerce related events. On Facebook, the events will be Dynamic Ads Ready. Enhanced Ecommerce |
| 24 | will be enabled for Google Analytics.</p> |
| 25 | </div> |
| 26 | </div> |
| 27 | <div class="row"> |
| 28 | <div class="col"> |
| 29 | <?php PYS()->render_switcher_input( 'woo_enabled' ); ?> |
| 30 | <h4 class="switcher-label">Enable WooCommerce set-up</h4> |
| 31 | </div> |
| 32 | </div> |
| 33 | </div> |
| 34 | </div> |
| 35 | |
| 36 | <div class="panel"> |
| 37 | <div class="row"> |
| 38 | <div class="col"> |
| 39 | <p>Use our dedicated plugin to create auto-updating feeds for Facebook Product Catalogs, Google Merchant, |
| 40 | or Google Ads Custom vertical. |
| 41 | <a href="https://www.pixelyoursite.com/product-catalog-facebook?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-catalogs-woo-tab" |
| 42 | target="_blank">Click to get Product Catalog Feed Pro</a></p> |
| 43 | <p class="mb-0">Automatically add your WooCommerce products to a Facebook Product Catalog when someone |
| 44 | visits them. |
| 45 | <a href="https://www.pixelyoursite.com/opengraph-plugin?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-catalogs-woo-tab" target="_blank">Click to get the |
| 46 | Smart OpenGraph plugin</a></p> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | |
| 51 | <!-- Semafors --> |
| 52 | <div class="card card-static"> |
| 53 | <div class="card-header"> |
| 54 | Advanced Data Tracking |
| 55 | </div> |
| 56 | <div class="card-body"> |
| 57 | <div class="row"> |
| 58 | <div class="col-11"> |
| 59 | <div class="indicator">ON</div> |
| 60 | <h4 class="indicator-label">Facebook Dynamic Product Ads</h4> |
| 61 | </div> |
| 62 | <div class="col-1"> |
| 63 | <?php renderPopoverButton( 'woo_facebook_am_params' ); ?> |
| 64 | </div> |
| 65 | </div> |
| 66 | <div class="row"> |
| 67 | <div class="col-11"> |
| 68 | <div class="indicator">ON</div> |
| 69 | <h4 class="indicator-label">Facebook & Pinterest parameters</h4> |
| 70 | </div> |
| 71 | <div class="col-1"> |
| 72 | <?php renderPopoverButton( 'woo_facebook_and_pinterest_params' ); ?> |
| 73 | </div> |
| 74 | </div> |
| 75 | <div class="row"> |
| 76 | <div class="col-11"> |
| 77 | <div class="indicator indicator-off">OFF</div> |
| 78 | <h4 class="indicator-label">Facebook & Pinterest PRO parameters</h4> |
| 79 | </div> |
| 80 | <div class="col-1"> |
| 81 | <?php renderPopoverButton( 'woo_facebook_and_pinterest_pro_params' ); ?> |
| 82 | </div> |
| 83 | </div> |
| 84 | <div class="row"> |
| 85 | <div class="col-11"> |
| 86 | <div class="indicator">ON</div> |
| 87 | <h4 class="indicator-label">Facebook & Pinterest parameters for Purchase event</h4> |
| 88 | </div> |
| 89 | <div class="col-1"> |
| 90 | <?php renderPopoverButton( 'woo_facebook_and_pinterest_purchase_params' ); ?> |
| 91 | </div> |
| 92 | </div> |
| 93 | <div class="row"> |
| 94 | <div class="col-11"> |
| 95 | <div class="indicator indicator-off">OFF</div> |
| 96 | <h4 class="indicator-label">Facebook & Pinterest PRO parameters for Purchase event</h4> |
| 97 | </div> |
| 98 | <div class="col-1"> |
| 99 | <?php renderPopoverButton( 'woo_facebook_and_pinterest_purchase_pro_params' ); ?> |
| 100 | </div> |
| 101 | </div> |
| 102 | <div class="row"> |
| 103 | <div class="col-11"> |
| 104 | <div class="indicator">ON</div> |
| 105 | <h4 class="indicator-label">Google Analytics Enhanced Ecommerce</h4> |
| 106 | </div> |
| 107 | <div class="col-1"> |
| 108 | <?php renderPopoverButton( 'woo_ga_enhanced_ecommerce_params' ); ?> |
| 109 | </div> |
| 110 | </div> |
| 111 | <div class="row"> |
| 112 | <div class="col-11"> |
| 113 | <div class="indicator indicator-off">OFF</div> |
| 114 | <h4 class="indicator-label">Google Ads Tag with Dynamic Remarketing Support</h4> |
| 115 | </div> |
| 116 | <div class="col-1"> |
| 117 | <?php renderPopoverButton( 'woo_google_ads_enhanced_ecommerce_params' ); ?> |
| 118 | </div> |
| 119 | </div> |
| 120 | </div> |
| 121 | </div> |
| 122 | |
| 123 | <!-- AddToCart --> |
| 124 | <div class="card card-static"> |
| 125 | <div class="card-header"> |
| 126 | How to capture Add To Cart action |
| 127 | </div> |
| 128 | <div class="card-body"> |
| 129 | <div class="row"> |
| 130 | <div class="col"> |
| 131 | <div class="custom-controls-stacked"> |
| 132 | <?php PYS()->render_checkbox_input( 'woo_add_to_cart_on_button_click', 'On Add To Cart button clicks' ); ?> |
| 133 | <?php PYS()->render_checkbox_input( 'woo_add_to_cart_on_cart_page', 'On the Cart Page' ); ?> |
| 134 | <?php PYS()->render_checkbox_input( 'woo_add_to_cart_on_checkout_page', 'On Checkout Page' ); ?> |
| 135 | </div> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div> |
| 139 | </div> |
| 140 | |
| 141 | <!-- Facebook for WooCommerce --> |
| 142 | <?php if ( Facebook()->enabled() && Helpers\isFacebookForWooCommerceActive() ) : ?> |
| 143 | |
| 144 | <!-- @todo: add notice output --> |
| 145 | <!-- @todo: add show/hide facebook content id section JS --> |
| 146 | <div class="card card-static"> |
| 147 | <div class="card-header"> |
| 148 | Facebook for WooCommerce Integration |
| 149 | </div> |
| 150 | <div class="card-body"> |
| 151 | <div class="row"> |
| 152 | <div class="col"> |
| 153 | <p><strong>It looks like you're using both PixelYourSite and Facebook for WooCommerce Extension. Good, because |
| 154 | they can do a great job together!</strong></p> |
| 155 | <p>Facebook for WooCommerce Extension is a useful free tool that lets you import your products to a Facebook |
| 156 | shop and adds a very basic Facebook pixel on your site. PixelYourSite is a dedicated plugin that |
| 157 | supercharges your Facebook Pixel with extremely useful features.</p> |
| 158 | <p>We made it possible to use both plugins together. You just have to decide what ID to use for your events.</p> |
| 159 | </div> |
| 160 | </div> |
| 161 | <div class="row mb-3"> |
| 162 | <div class="col"> |
| 163 | <div class="custom-controls-stacked"> |
| 164 | <?php Facebook()->render_radio_input( 'woo_content_id_logic', 'facebook_for_woocommerce', 'Use Facebook for WooCommerce extension content_id logic' ); ?> |
| 165 | <?php Facebook()->render_radio_input( 'woo_content_id_logic', 'default', 'Use PixelYourSite content_id logic' ); ?> |
| 166 | </div> |
| 167 | </div> |
| 168 | </div> |
| 169 | <div class="row"> |
| 170 | <div class="col"> |
| 171 | <p><em>* If you plan to use the product catalog created by Facebook for WooCommerce Extension, use the |
| 172 | Facebook for WooCommerce Extension ID. If you plan to use older product catalogs, or new ones created |
| 173 | with other plugins, it's better to keep the default PixelYourSite settings.</em></p> |
| 174 | </div> |
| 175 | </div> |
| 176 | </div> |
| 177 | </div> |
| 178 | |
| 179 | <?php endif; ?> |
| 180 | |
| 181 | <?php if ( Facebook()->enabled() ) : ?> |
| 182 | |
| 183 | <?php $facebook_id_visibility = Helpers\isDefaultWooContentIdLogic() ? 'block' : 'none'; ?> |
| 184 | |
| 185 | <div class="card card-static" id="pys-section-facebook-id" style="display: <?php esc_attr_e( $facebook_id_visibility ); ?>;"> |
| 186 | <div class="card-header"> |
| 187 | Facebook ID setting |
| 188 | </div> |
| 189 | <div class="card-body"> |
| 190 | <div class="row mb-3"> |
| 191 | <div class="col"> |
| 192 | <?php Facebook()->render_switcher_input( 'woo_variable_as_simple' ); ?> |
| 193 | <h4 class="switcher-label">Treat variable products like simple products</h4> |
| 194 | <p class="mt-3">Turn this option ON when your Product Catalog doesn't include the variants for variable |
| 195 | products.</p> |
| 196 | </div> |
| 197 | </div> |
| 198 | <div class="row mb-3"> |
| 199 | <div class="col col-offset-left form-inline"> |
| 200 | <label>content_id</label> |
| 201 | <?php Facebook()->render_select_input( 'woo_content_id', |
| 202 | array( |
| 203 | 'product_id' => 'Product ID', |
| 204 | 'product_sku' => 'Product SKU', |
| 205 | ) |
| 206 | ); ?> |
| 207 | </div> |
| 208 | </div> |
| 209 | <div class="row mb-3"> |
| 210 | <div class="col col-offset-left form-inline"> |
| 211 | <label>content_id prefix</label><?php Facebook()->render_text_input( 'woo_content_id_prefix', '(optional)' ); ?> |
| 212 | </div> |
| 213 | </div> |
| 214 | <div class="row"> |
| 215 | <div class="col col-offset-left form-inline"> |
| 216 | <label>content_id suffix</label><?php Facebook()->render_text_input( 'woo_content_id_suffix', '(optional)' ); ?> |
| 217 | </div> |
| 218 | </div> |
| 219 | </div> |
| 220 | </div> |
| 221 | |
| 222 | <?php endif; ?> |
| 223 | |
| 224 | <?php if ( GA()->enabled() ) : ?> |
| 225 | |
| 226 | <div class="card card-static" id="pys-section-ga-id"> |
| 227 | <div class="card-header"> |
| 228 | Google Analytics ID setting |
| 229 | </div> |
| 230 | <div class="card-body"> |
| 231 | <div class="row mb-3"> |
| 232 | <div class="col"> |
| 233 | <?php GA()->render_switcher_input( 'woo_variable_as_simple' ); ?> |
| 234 | <h4 class="switcher-label">Treat variable products like simple products</h4> |
| 235 | <p class="mt-3">If you enable this option, the main ID will be used instead of the variation ID.</p> |
| 236 | </div> |
| 237 | </div> |
| 238 | <div class="row mb-3"> |
| 239 | <div class="col col-offset-left form-inline"> |
| 240 | <label>ecomm_prodid</label> |
| 241 | <?php GA()->render_select_input( 'woo_content_id', |
| 242 | array( |
| 243 | 'product_id' => 'Product ID', |
| 244 | 'product_sku' => 'Product SKU', |
| 245 | ) |
| 246 | ); ?> |
| 247 | </div> |
| 248 | </div> |
| 249 | <div class="row mb-3"> |
| 250 | <div class="col col-offset-left form-inline"> |
| 251 | <label>ecomm_prodid prefix</label><?php GA()->render_text_input( 'woo_content_id_prefix', '(optional)' ); ?> |
| 252 | </div> |
| 253 | </div> |
| 254 | <div class="row"> |
| 255 | <div class="col col-offset-left form-inline"> |
| 256 | <label>ecomm_prodid suffix</label><?php GA()->render_text_input( 'woo_content_id_suffix', '(optional)' ); ?> |
| 257 | </div> |
| 258 | </div> |
| 259 | </div> |
| 260 | </div> |
| 261 | <?php endif; ?> |
| 262 | |
| 263 | |
| 264 | <!-- Google Ads Settings --> |
| 265 | <div class="card card-static card-disabled"> |
| 266 | <div class="card-header"> |
| 267 | Google Ads ID Setting <?php renderProBadge( 'https://www.pixelyoursite.com/google-analytics?utm_source=pys-free-plugin&utm_medium=pro-badg |
| 268 | e&utm_campaign=pro-feature' ); ?> |
| 269 | </div> |
| 270 | |
| 271 | </div> |
| 272 | |
| 273 | <?php if ( Pinterest()->enabled() ) : ?> |
| 274 | |
| 275 | <div class="card card-static" id="pys-section-ga-id"> |
| 276 | <div class="card-header"> |
| 277 | Pinterest Tag ID setting |
| 278 | </div> |
| 279 | <div class="card-body"> |
| 280 | <div class="row mb-3"> |
| 281 | <div class="col"> |
| 282 | <?php Pinterest()->render_switcher_input( 'woo_variable_as_simple' ); ?> |
| 283 | <h4 class="switcher-label">Treat variable products like simple products</h4> |
| 284 | <p class="mt-3">If you enable this option, the main ID will be used instead of the variation ID.</p> |
| 285 | </div> |
| 286 | </div> |
| 287 | <div class="row mb-3"> |
| 288 | <div class="col col-offset-left form-inline"> |
| 289 | <label>ID</label> |
| 290 | <?php Pinterest()->render_select_input( 'woo_content_id', |
| 291 | array( |
| 292 | 'product_id' => 'Product ID', |
| 293 | 'product_sku' => 'Product SKU', |
| 294 | ) |
| 295 | ); ?> |
| 296 | </div> |
| 297 | </div> |
| 298 | <div class="row mb-3"> |
| 299 | <div class="col col-offset-left form-inline"> |
| 300 | <label>ID prefix</label><?php Pinterest()->render_text_input( 'woo_content_id_prefix', '(optional)' ); ?> |
| 301 | </div> |
| 302 | </div> |
| 303 | <div class="row"> |
| 304 | <div class="col col-offset-left form-inline"> |
| 305 | <label>ID suffix</label><?php Pinterest()->render_text_input( 'woo_content_id_suffix', '(optional)' ); ?> |
| 306 | </div> |
| 307 | </div> |
| 308 | </div> |
| 309 | </div> |
| 310 | <?php else: ?> |
| 311 | <div class="card card-static card-disabled" id="pys-section-ga-id"> |
| 312 | <div class="card-header"> |
| 313 | Pinterest Tag ID setting |
| 314 | <?php renderProBadge( 'https://www.pixelyoursite.com/pinterest-tag?utm_source=pys-free-plugin&utm_medium=pinterest-badge&utm_campaign=requiere-free-add-on', |
| 315 | "Requires free add-on"); ?> |
| 316 | </div> |
| 317 | </div> |
| 318 | <?php endif; ?> |
| 319 | |
| 320 | <!-- @todo: update UI --> |
| 321 | <!-- @todo: hide for dummy Bing --> |
| 322 | <?php if ( Bing()->enabled() ) : ?> |
| 323 | <div class="card card-static"> |
| 324 | <div class="card-header"> |
| 325 | Bing Tag ID setting |
| 326 | </div> |
| 327 | <div class="card-body"> |
| 328 | |
| 329 | <div class="row mb-3"> |
| 330 | <div class="col"> |
| 331 | <?php Bing()->render_switcher_input( 'woo_variable_as_simple' ); ?> |
| 332 | <h4 class="switcher-label">Treat variable products like simple products</h4> |
| 333 | <p class="mt-3">If you enable this option, the main ID will be used instead of the variation ID.</p> |
| 334 | </div> |
| 335 | </div> |
| 336 | <div class="row mb-3"> |
| 337 | <div class="col col-offset-left form-inline"> |
| 338 | <label>ID</label> |
| 339 | <?php Bing()->render_select_input( 'woo_content_id', |
| 340 | array( |
| 341 | 'product_id' => 'Product ID', |
| 342 | 'product_sku' => 'Product SKU', |
| 343 | ) |
| 344 | ); ?> |
| 345 | </div> |
| 346 | </div> |
| 347 | <div class="row mb-3"> |
| 348 | <div class="col col-offset-left form-inline"> |
| 349 | <label>ID prefix</label><?php Bing()->render_text_input( 'woo_content_id_prefix', '(optional)' ); ?> |
| 350 | </div> |
| 351 | </div> |
| 352 | <div class="row"> |
| 353 | <div class="col col-offset-left form-inline"> |
| 354 | <label>ID suffix</label><?php Bing()->render_text_input( 'woo_content_id_suffix', '(optional)' ); ?> |
| 355 | </div> |
| 356 | </div> |
| 357 | </div> |
| 358 | </div> |
| 359 | <?php else : ?> |
| 360 | <div class="card card-static card-disabled"> |
| 361 | <div class="card-header"> |
| 362 | Bing Tag ID setting |
| 363 | <?php renderProBadge( 'https://www.pixelyoursite.com/bing-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-bing', |
| 364 | "Requires paid add-on"); ?> |
| 365 | </div> |
| 366 | </div> |
| 367 | <?php endif; ?> |
| 368 | |
| 369 | <!-- Google Dynamic Remarketing Vertical --> |
| 370 | <div class="card card-static card-disabled"> |
| 371 | <div class="card-header"> |
| 372 | Google Dynamic Remarketing Vertical <?php renderProBadge( 'https://www.pixelyoursite.com/google-analytics' ); ?> |
| 373 | </div> |
| 374 | <div class="card-body"> |
| 375 | <div class="row"> |
| 376 | <div class="col-11"> |
| 377 | <div class="custom-controls-stacked"> |
| 378 | <?php renderDummyRadioInput( 'Use Retail Vertical (select this if you have access to Google Merchant)' , true ); ?> |
| 379 | <?php renderDummyRadioInput( 'Use Custom Vertical (select this if Google Merchant is not available for your country)' ); ?> |
| 380 | </div> |
| 381 | </div> |
| 382 | <div class="col-1"> |
| 383 | <?php renderPopoverButton( 'google_dynamic_remarketing_vertical' ); ?> |
| 384 | </div> |
| 385 | </div> |
| 386 | </div> |
| 387 | </div> |
| 388 | |
| 389 | |
| 390 | |
| 391 | <!-- Event Value --> |
| 392 | <div class="card card-static card-disabled"> |
| 393 | <div class="card-header"> |
| 394 | Event Value Settings <?php renderProBadge(); ?> |
| 395 | </div> |
| 396 | <div class="card-body"> |
| 397 | <div class="row mb-3"> |
| 398 | <div class="col"> |
| 399 | <div class="custom-controls-stacked"> |
| 400 | <?php renderDummyRadioInput( 'Use WooCommerce price settings', true ); ?> |
| 401 | <?php renderDummyRadioInput( 'Customize Tax and Shipping' ); ?> |
| 402 | </div> |
| 403 | </div> |
| 404 | </div> |
| 405 | <div class="row mb-3"> |
| 406 | <div class="col col-offset-left form-inline"> |
| 407 | <?php renderDummySelectInput( 'Include Tax' ); ?> |
| 408 | <label>and</label> |
| 409 | <?php renderDummySelectInput( 'Include Shipping' ); ?> |
| 410 | </div> |
| 411 | </div> |
| 412 | |
| 413 | <div class="row"> |
| 414 | <div class="col"> |
| 415 | <h4 class="label">Lifetime Customer Value</h4> |
| 416 | <?php renderDummyTagsFields( array( 'Pending Payment', 'Processing', 'On Hold', 'Completed' ) ); ?> |
| 417 | </div> |
| 418 | </div> |
| 419 | </div> |
| 420 | </div> |
| 421 | |
| 422 | <h2 class="section-title">Default E-Commerce events</h2> |
| 423 | |
| 424 | <!-- Purchase --> |
| 425 | <div class="card"> |
| 426 | <div class="card-header"> |
| 427 | Track Purchases <?php cardCollapseBtn(); ?> |
| 428 | </div> |
| 429 | <div class="card-body"> |
| 430 | <div class="row mb-3"> |
| 431 | <div class="col-11"> |
| 432 | <?php renderDummyCheckbox( 'Fire the event on transaction only', true ); ?> |
| 433 | </div> |
| 434 | <div class="col-1"> |
| 435 | <?php renderPopoverButton( 'woo_purchase_on_transaction' ); ?> |
| 436 | </div> |
| 437 | </div> |
| 438 | |
| 439 | <?php if ( Facebook()->enabled() ) : ?> |
| 440 | <div class="row"> |
| 441 | <div class="col"> |
| 442 | <?php Facebook()->render_switcher_input( 'woo_purchase_enabled' ); ?> |
| 443 | <h4 class="switcher-label">Enable the Purchase event on Facebook (required for DPA)</h4> |
| 444 | </div> |
| 445 | </div> |
| 446 | <?php endif; ?> |
| 447 | |
| 448 | <?php if ( Pinterest()->enabled() ) : ?> |
| 449 | <div class="row"> |
| 450 | <div class="col"> |
| 451 | <?php Pinterest()->render_switcher_input( 'woo_purchase_enabled' ); ?> |
| 452 | <h4 class="switcher-label">Enable the Checkout event on Pinterest</h4> |
| 453 | <?php Pinterest()->renderAddonNotice(); ?> |
| 454 | </div> |
| 455 | </div> |
| 456 | <?php endif; ?> |
| 457 | |
| 458 | <?php if ( Bing()->enabled() ) : ?> |
| 459 | <div class="row"> |
| 460 | <div class="col"> |
| 461 | <?php Bing()->render_switcher_input( 'woo_purchase_enabled' ); ?> |
| 462 | <h4 class="switcher-label">Enable the Purchase event on Bing</h4> |
| 463 | <?php Bing()->renderAddonNotice(); ?> |
| 464 | </div> |
| 465 | </div> |
| 466 | <?php endif; ?> |
| 467 | |
| 468 | <div class="row mt-3"> |
| 469 | <div class="col-11 col-offset-left"> |
| 470 | <label class="label-inline">Facebook and Pinterest value parameter settings:</label> |
| 471 | </div> |
| 472 | <div class="col-1"> |
| 473 | <?php renderPopoverButton( 'woo_purchase_event_value' ); ?> |
| 474 | </div> |
| 475 | </div> |
| 476 | <div class="row"> |
| 477 | <div class="col col-offset-left"> |
| 478 | <div> |
| 479 | <div class="collapse-inner"> |
| 480 | <div class="custom-controls-stacked"> |
| 481 | <?php PYS()->render_radio_input( 'woo_purchase_value_option', 'price', |
| 482 | 'Products price (subtotal)' ); ?> |
| 483 | <?php if ( !isPixelCogActive() ) { ?> |
| 484 | <?php PYS()->render_radio_input( 'woo_purchase_value_option', 'cog', |
| 485 | 'Price minus Cost of Goods', true, true ); ?> |
| 486 | <?php } else { ?> |
| 487 | <?php PYS()->render_radio_input( 'woo_purchase_value_option', 'cog', |
| 488 | 'Price minus Cost of Goods', false ); ?> |
| 489 | <?php } ?> |
| 490 | <?php renderDummyRadioInput( 'Percent of products value (subtotal)' ); ?> |
| 491 | <div class="form-inline"> |
| 492 | <?php renderDummyTextInput( 0 ); ?> |
| 493 | </div> |
| 494 | <?php PYS()->render_radio_input( 'woo_purchase_value_option', 'global', |
| 495 | 'Use Global value' ); ?> |
| 496 | <div class="form-inline"> |
| 497 | <?php PYS()->render_number_input( 'woo_purchase_value_global' ); ?> |
| 498 | </div> |
| 499 | </div> |
| 500 | </div> |
| 501 | </div> |
| 502 | </div> |
| 503 | </div> |
| 504 | |
| 505 | <?php if ( GA()->enabled() ) : ?> |
| 506 | <div class="row mb-1"> |
| 507 | <div class="col"> |
| 508 | <?php GA()->render_switcher_input( 'woo_purchase_enabled' ); ?> |
| 509 | <h4 class="switcher-label">Enable the purchase event on Google Analytics</h4> |
| 510 | </div> |
| 511 | </div> |
| 512 | <div class="row mb-2"> |
| 513 | <div class="col col-offset-left"> |
| 514 | <?php GA()->render_checkbox_input( 'woo_purchase_non_interactive', |
| 515 | 'Non-interactive event' ); ?> |
| 516 | </div> |
| 517 | </div> |
| 518 | <?php endif; ?> |
| 519 | |
| 520 | <div class="row"> |
| 521 | <div class="col"> |
| 522 | <?php renderDummySwitcher(); ?> |
| 523 | <h4 class="switcher-label">Enable the purchase event on Google Ads</h4> |
| 524 | <?php renderProBadge('https://www.pixelyoursite.com/google-ads-tag/?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature'); ?> |
| 525 | </div> |
| 526 | </div> |
| 527 | <?php renderDummyGoogleAdsConversionLabelInputs(); ?> |
| 528 | |
| 529 | <div class="row mt-3"> |
| 530 | <div class="col"> |
| 531 | <p class="mb-0">*This event will be fired on the order-received, the default WooCommerce "thank you |
| 532 | page". If you use PayPal, make sure that auto-return is ON. If you want to use "custom thank you |
| 533 | pages", you must configure them with our <a href="https://www.pixelyoursite.com/super-pack" |
| 534 | target="_blank">Super Pack</a>.</p> |
| 535 | </div> |
| 536 | </div> |
| 537 | </div> |
| 538 | </div> |
| 539 | |
| 540 | <!-- InitiateCheckout --> |
| 541 | <div class="card"> |
| 542 | <div class="card-header"> |
| 543 | Track the Checkout Page <?php cardCollapseBtn(); ?> |
| 544 | </div> |
| 545 | <div class="card-body"> |
| 546 | |
| 547 | <?php if ( Facebook()->enabled() ) : ?> |
| 548 | <div class="row"> |
| 549 | <div class="col"> |
| 550 | <?php Facebook()->render_switcher_input( 'woo_initiate_checkout_enabled' ); ?> |
| 551 | <h4 class="switcher-label">Enable the InitiateCheckout event on Facebook</h4> |
| 552 | </div> |
| 553 | </div> |
| 554 | <?php endif; ?> |
| 555 | |
| 556 | <?php if ( Pinterest()->enabled() ) : ?> |
| 557 | <div class="row"> |
| 558 | <div class="col"> |
| 559 | <?php Pinterest()->render_switcher_input( 'woo_initiate_checkout_enabled' ); ?> |
| 560 | <h4 class="switcher-label">Enable the InitiateCheckout on Pinterest</h4> |
| 561 | <?php Pinterest()->renderAddonNotice(); ?> |
| 562 | </div> |
| 563 | </div> |
| 564 | <?php endif; ?> |
| 565 | |
| 566 | <?php if ( Bing()->enabled() ) : ?> |
| 567 | <div class="row"> |
| 568 | <div class="col"> |
| 569 | <?php Bing()->render_switcher_input( 'woo_initiate_checkout_enabled' ); ?> |
| 570 | <h4 class="switcher-label">Enable the InitiateCheckout on Bing</h4> |
| 571 | <?php Bing()->renderAddonNotice(); ?> |
| 572 | </div> |
| 573 | </div> |
| 574 | <?php endif; ?> |
| 575 | |
| 576 | <div class="row my-3"> |
| 577 | <div class="col-11 col-offset-left"> |
| 578 | <?php PYS()->render_switcher_input( 'woo_initiate_checkout_value_enabled', true ); ?> |
| 579 | <h4 class="indicator-label">Event value on Facebook and Pinterest</h4> |
| 580 | </div> |
| 581 | <div class="col-1"> |
| 582 | <?php renderPopoverButton( 'woo_initiate_checkout_event_value' ); ?> |
| 583 | </div> |
| 584 | </div> |
| 585 | <div class="row"> |
| 586 | <div class="col col-offset-left"> |
| 587 | <div <?php renderCollapseTargetAttributes( 'woo_initiate_checkout_value_enabled', PYS() ); ?>> |
| 588 | <div class="collapse-inner pt-0"> |
| 589 | <label class="label-inline">Facebook and Pinterest value parameter settings:</label> |
| 590 | <div class="custom-controls-stacked"> |
| 591 | <?php PYS()->render_radio_input( 'woo_initiate_checkout_value_option', 'price', |
| 592 | 'Products price (subtotal)' ); ?> |
| 593 | <?php if ( !isPixelCogActive() ) { ?> |
| 594 | <?php PYS()->render_radio_input( 'woo_initiate_checkout_value_option', 'cog', |
| 595 | 'Price minus Cost of Goods', true, true ); ?> |
| 596 | <?php } else { ?> |
| 597 | <?php PYS()->render_radio_input( 'woo_initiate_checkout_value_option', 'cog', |
| 598 | 'Price minus Cost of Goods', false ); ?> |
| 599 | <?php } ?> |
| 600 | <?php renderDummyRadioInput( 'Percent of products value (subtotal)' ); ?> |
| 601 | <div class="form-inline"> |
| 602 | <?php renderDummyTextInput( 0 ); ?> |
| 603 | </div> |
| 604 | <?php PYS()->render_radio_input( 'woo_initiate_checkout_value_option', 'global', |
| 605 | 'Use Global value' ); ?> |
| 606 | <div class="form-inline"> |
| 607 | <?php PYS()->render_number_input( 'woo_initiate_checkout_value_global' ); ?> |
| 608 | </div> |
| 609 | </div> |
| 610 | </div> |
| 611 | </div> |
| 612 | </div> |
| 613 | </div> |
| 614 | |
| 615 | <?php if ( GA()->enabled() ) : ?> |
| 616 | <div class="row mb-1"> |
| 617 | <div class="col"> |
| 618 | <?php GA()->render_switcher_input( 'woo_initiate_checkout_enabled' ); ?> |
| 619 | <h4 class="switcher-label">Enable the begin_checkout event on Google Analytics</h4> |
| 620 | </div> |
| 621 | </div> |
| 622 | <div class="row"> |
| 623 | <div class="col col-offset-left"> |
| 624 | <?php GA()->render_checkbox_input( 'woo_initiate_checkout_non_interactive', |
| 625 | 'Non-interactive event' ); ?> |
| 626 | </div> |
| 627 | </div> |
| 628 | <?php endif; ?> |
| 629 | |
| 630 | <div class="row"> |
| 631 | <div class="col"> |
| 632 | <?php renderDummySwitcher(); ?> |
| 633 | <h4 class="switcher-label">Enable the begin_checkout event on Google Ads</h4> |
| 634 | <?php renderProBadge('https://www.pixelyoursite.com/google-ads-tag/?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature'); ?> |
| 635 | </div> |
| 636 | </div> |
| 637 | <?php renderDummyGoogleAdsConversionLabelInputs(); ?> |
| 638 | |
| 639 | </div> |
| 640 | </div> |
| 641 | |
| 642 | <!-- RemoveFromCart --> |
| 643 | <div class="card"> |
| 644 | <div class="card-header"> |
| 645 | Track remove from cart <?php cardCollapseBtn(); ?> |
| 646 | </div> |
| 647 | <div class="card-body"> |
| 648 | |
| 649 | <?php if ( Facebook()->enabled() ) : ?> |
| 650 | <div class="row"> |
| 651 | <div class="col"> |
| 652 | <?php Facebook()->render_switcher_input( 'woo_remove_from_cart_enabled' ); ?> |
| 653 | <h4 class="switcher-label">Enable the RemoveFromCart event on Facebook</h4> |
| 654 | </div> |
| 655 | </div> |
| 656 | <?php endif; ?> |
| 657 | |
| 658 | <?php if ( GA()->enabled() ) : ?> |
| 659 | <div class="row mb-1"> |
| 660 | <div class="col"> |
| 661 | <?php GA()->render_switcher_input( 'woo_remove_from_cart_enabled' ); ?> |
| 662 | <h4 class="switcher-label">Enable the remove_from_cart event on Google Analytics</h4> |
| 663 | </div> |
| 664 | </div> |
| 665 | <div class="row mb-2"> |
| 666 | <div class="col col-offset-left"> |
| 667 | <?php GA()->render_checkbox_input( 'woo_remove_from_cart_non_interactive', |
| 668 | 'Non-interactive event' ); ?> |
| 669 | </div> |
| 670 | </div> |
| 671 | <?php endif; ?> |
| 672 | |
| 673 | <div class="row"> |
| 674 | <div class="col"> |
| 675 | <?php renderDummySwitcher(); ?> |
| 676 | <h4 class="switcher-label">Enable the remove_from_cart event on Google Ads</h4> |
| 677 | <?php renderProBadge('https://www.pixelyoursite.com/google-ads-tag/?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature'); ?> |
| 678 | </div> |
| 679 | </div> |
| 680 | |
| 681 | <?php if ( Pinterest()->enabled() ) : ?> |
| 682 | <div class="row"> |
| 683 | <div class="col"> |
| 684 | <?php Pinterest()->render_switcher_input( 'woo_remove_from_cart_enabled' ); ?> |
| 685 | <h4 class="switcher-label">Enable the RemoveFromCart event on Pinterest</h4> |
| 686 | <?php Pinterest()->renderAddonNotice(); ?> |
| 687 | </div> |
| 688 | </div> |
| 689 | <?php endif; ?> |
| 690 | |
| 691 | <!-- --><?php //if ( Bing()->enabled() ) : ?> |
| 692 | <!-- <div class="row">--> |
| 693 | <!-- <div class="col">--> |
| 694 | <!-- --><?php //Bing()->render_switcher_input( 'woo_remove_from_cart_enabled' ); ?> |
| 695 | <!-- <h4 class="switcher-label">Enable the RemoveFromCart event on Bing</h4>--> |
| 696 | <!-- --><?php //Bing()->renderAddonNotice(); ?> |
| 697 | <!-- </div>--> |
| 698 | <!-- </div>--> |
| 699 | <!-- --><?php //endif; ?> |
| 700 | |
| 701 | </div> |
| 702 | </div> |
| 703 | |
| 704 | <!-- AddToCart --> |
| 705 | <div class="card"> |
| 706 | <div class="card-header"> |
| 707 | Track add to cart <?php cardCollapseBtn(); ?> |
| 708 | </div> |
| 709 | <div class="card-body"> |
| 710 | |
| 711 | <?php if ( Facebook()->enabled() ) : ?> |
| 712 | <div class="row"> |
| 713 | <div class="col"> |
| 714 | <?php Facebook()->render_switcher_input( 'woo_add_to_cart_enabled' ); ?> |
| 715 | <h4 class="switcher-label">Enable the AddToCart event on Facebook (required for DPA)</h4> |
| 716 | </div> |
| 717 | </div> |
| 718 | <?php endif; ?> |
| 719 | |
| 720 | <?php if ( Pinterest()->enabled() ) : ?> |
| 721 | <div class="row"> |
| 722 | <div class="col"> |
| 723 | <?php Pinterest()->render_switcher_input( 'woo_add_to_cart_enabled' ); ?> |
| 724 | <h4 class="switcher-label">Enable the AddToCart event on Pinterest</h4> |
| 725 | <?php Pinterest()->renderAddonNotice(); ?> |
| 726 | </div> |
| 727 | </div> |
| 728 | <?php endif; ?> |
| 729 | |
| 730 | <?php if ( Bing()->enabled() ) : ?> |
| 731 | <div class="row"> |
| 732 | <div class="col"> |
| 733 | <?php Bing()->render_switcher_input( 'woo_add_to_cart_enabled' ); ?> |
| 734 | <h4 class="switcher-label">Enable the AddToCart event on Bing</h4> |
| 735 | <?php Bing()->renderAddonNotice(); ?> |
| 736 | </div> |
| 737 | </div> |
| 738 | <?php endif; ?> |
| 739 | |
| 740 | <div class="row my-3"> |
| 741 | <div class="col-11 col-offset-left"> |
| 742 | <?php PYS()->render_switcher_input( 'woo_add_to_cart_value_enabled', true ); ?> |
| 743 | <h4 class="indicator-label">Tracking Value</h4> |
| 744 | </div> |
| 745 | <div class="col-1"> |
| 746 | <?php renderPopoverButton( 'woo_add_to_cart_event_value' ); ?> |
| 747 | </div> |
| 748 | </div> |
| 749 | <div class="row"> |
| 750 | <div class="col col-offset-left"> |
| 751 | <div <?php renderCollapseTargetAttributes( 'woo_add_to_cart_value_enabled', PYS() ); ?>> |
| 752 | <div class="collapse-inner pt-0"> |
| 753 | <label class="label-inline">Facebook and Pinterest value parameter settings:</label> |
| 754 | <div class="custom-controls-stacked"> |
| 755 | <?php PYS()->render_radio_input( 'woo_add_to_cart_value_option', 'price', |
| 756 | 'Products price (subtotal)' ); ?> |
| 757 | <?php if ( !isPixelCogActive() ) { ?> |
| 758 | <?php PYS()->render_radio_input( 'woo_add_to_cart_value_option', 'cog', |
| 759 | 'Price minus Cost of Goods', true, true ); ?> |
| 760 | <?php } else { ?> |
| 761 | <?php PYS()->render_radio_input( 'woo_add_to_cart_value_option', 'cog', |
| 762 | 'Price minus Cost of Goods', false ); ?> |
| 763 | <?php } ?> |
| 764 | <?php renderDummyRadioInput( 'Percent of products value (subtotal)' ) ?> |
| 765 | <div class="form-inline"> |
| 766 | <?php renderDummyTextInput( 0 ); ?> |
| 767 | </div> |
| 768 | <?php PYS()->render_radio_input( 'woo_add_to_cart_value_option', 'global', |
| 769 | 'Use Global value' ); ?> |
| 770 | <div class="form-inline"> |
| 771 | <?php PYS()->render_number_input( 'woo_add_to_cart_value_global' ); ?> |
| 772 | </div> |
| 773 | </div> |
| 774 | </div> |
| 775 | </div> |
| 776 | </div> |
| 777 | </div> |
| 778 | |
| 779 | <?php if ( GA()->enabled() ) : ?> |
| 780 | <div class="row mb-1"> |
| 781 | <div class="col"> |
| 782 | <?php GA()->render_switcher_input( 'woo_add_to_cart_enabled' ); ?> |
| 783 | <h4 class="switcher-label">Enable the add_to_cart event on Google Analytics</h4> |
| 784 | </div> |
| 785 | </div> |
| 786 | <div class="row"> |
| 787 | <div class="col col-offset-left"> |
| 788 | <?php GA()->render_checkbox_input( 'woo_add_to_cart_non_interactive', |
| 789 | 'Non-interactive event' ); ?> |
| 790 | </div> |
| 791 | </div> |
| 792 | <?php endif; ?> |
| 793 | |
| 794 | <div class="row"> |
| 795 | <div class="col"> |
| 796 | <?php renderDummySwitcher(); ?> |
| 797 | <h4 class="switcher-label">Enable the add_to_cart event on Google Ads</h4> |
| 798 | <?php renderProBadge('https://www.pixelyoursite.com/google-ads-tag/?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature'); ?> |
| 799 | </div> |
| 800 | </div> |
| 801 | <?php renderDummyGoogleAdsConversionLabelInputs(); ?> |
| 802 | |
| 803 | </div> |
| 804 | </div> |
| 805 | |
| 806 | <!-- ViewContent --> |
| 807 | <div class="card"> |
| 808 | <div class="card-header"> |
| 809 | Track product pages <?php cardCollapseBtn(); ?> |
| 810 | </div> |
| 811 | <div class="card-body"> |
| 812 | |
| 813 | <?php if ( Facebook()->enabled() ) : ?> |
| 814 | <div class="row"> |
| 815 | <div class="col"> |
| 816 | <?php Facebook()->render_switcher_input( 'woo_view_content_enabled' ); ?> |
| 817 | <h4 class="switcher-label">Enable the ViewContent on Facebook (required for DPA)</h4> |
| 818 | </div> |
| 819 | </div> |
| 820 | <?php endif; ?> |
| 821 | |
| 822 | <?php if ( Pinterest()->enabled() ) : ?> |
| 823 | <div class="row"> |
| 824 | <div class="col"> |
| 825 | <?php Pinterest()->render_switcher_input( 'woo_view_content_enabled' ); ?> |
| 826 | <h4 class="switcher-label">Enable the PageVisit event on Pinterest</h4> |
| 827 | <?php Pinterest()->renderAddonNotice(); ?> |
| 828 | </div> |
| 829 | </div> |
| 830 | <?php endif; ?> |
| 831 | |
| 832 | <?php if ( Bing()->enabled() ) : ?> |
| 833 | <div class="row"> |
| 834 | <div class="col"> |
| 835 | <?php Bing()->render_switcher_input( 'woo_view_content_enabled' ); ?> |
| 836 | <h4 class="switcher-label">Enable the PageVisit event on Bing</h4> |
| 837 | <?php Bing()->renderAddonNotice(); ?> |
| 838 | </div> |
| 839 | </div> |
| 840 | <?php endif; ?> |
| 841 | |
| 842 | <div class="row my-3"> |
| 843 | <div class="col col-offset-left form-inline"> |
| 844 | <label>Delay</label> |
| 845 | <?php PYS()->render_number_input( 'woo_view_content_delay' ); ?> |
| 846 | <label>seconds</label> |
| 847 | </div> |
| 848 | </div> |
| 849 | <div class="row mb-3"> |
| 850 | <div class="col-11 col-offset-left"> |
| 851 | <?php PYS()->render_switcher_input( 'woo_view_content_value_enabled', true ); ?> |
| 852 | <h4 class="indicator-label">Tracking Value</h4> |
| 853 | </div> |
| 854 | <div class="col-1"> |
| 855 | <?php renderPopoverButton( 'woo_view_content_event_value' ); ?> |
| 856 | </div> |
| 857 | </div> |
| 858 | <div class="row"> |
| 859 | <div class="col col-offset-left"> |
| 860 | <div <?php renderCollapseTargetAttributes( 'woo_view_content_value_enabled', PYS() ); ?>> |
| 861 | <div class="collapse-inner pt-0"> |
| 862 | <label class="label-inline">Facebook and Pinterest value parameter settings:</label> |
| 863 | <div class="custom-controls-stacked"> |
| 864 | <?php PYS()->render_radio_input( 'woo_view_content_value_option', 'price', |
| 865 | 'Product price' ); ?> |
| 866 | <?php if ( !isPixelCogActive() ) { ?> |
| 867 | <?php PYS()->render_radio_input( 'woo_view_content_value_option', 'cog', |
| 868 | 'Price minus Cost of Goods', true, true ); ?> |
| 869 | <?php } else { ?> |
| 870 | <?php PYS()->render_radio_input( 'woo_view_content_value_option', 'cog', |
| 871 | 'Price minus Cost of Goods', false ); ?> |
| 872 | <?php } ?> |
| 873 | <?php renderDummyRadioInput( 'Percent of product price' ); ?> |
| 874 | <div class="form-inline"> |
| 875 | <?php renderDummyTextInput( 0 ); ?> |
| 876 | </div> |
| 877 | <?php PYS()->render_radio_input( 'woo_view_content_value_option', 'global', |
| 878 | 'Use Global value' ); ?> |
| 879 | <div class="form-inline"> |
| 880 | <?php PYS()->render_number_input( 'woo_view_content_value_global' ); ?> |
| 881 | </div> |
| 882 | </div> |
| 883 | </div> |
| 884 | </div> |
| 885 | </div> |
| 886 | </div> |
| 887 | |
| 888 | <?php if ( GA()->enabled() ) : ?> |
| 889 | <div class="row mb-1"> |
| 890 | <div class="col"> |
| 891 | <?php GA()->render_switcher_input( 'woo_view_content_enabled' ); ?> |
| 892 | <h4 class="switcher-label">Enable the view_item event on Google Analytics</h4> |
| 893 | </div> |
| 894 | </div> |
| 895 | <div class="row"> |
| 896 | <div class="col col-offset-left"> |
| 897 | <?php GA()->render_checkbox_input( 'woo_view_content_non_interactive', |
| 898 | 'Non-interactive event' ); ?> |
| 899 | </div> |
| 900 | </div> |
| 901 | <?php endif; ?> |
| 902 | |
| 903 | <div class="row"> |
| 904 | <div class="col"> |
| 905 | <?php renderDummySwitcher(); ?> |
| 906 | <h4 class="switcher-label">Enable the view_item event on Google Ads</h4> |
| 907 | <?php renderProBadge('https://www.pixelyoursite.com/google-ads-tag/?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature'); ?> |
| 908 | </div> |
| 909 | </div> |
| 910 | <?php renderDummyGoogleAdsConversionLabelInputs(); ?> |
| 911 | |
| 912 | </div> |
| 913 | </div> |
| 914 | |
| 915 | <!-- ViewCategory --> |
| 916 | <div class="card"> |
| 917 | <div class="card-header"> |
| 918 | Track product category pages <?php cardCollapseBtn(); ?> |
| 919 | </div> |
| 920 | <div class="card-body"> |
| 921 | |
| 922 | <?php if ( Facebook()->enabled() ) : ?> |
| 923 | <div class="row"> |
| 924 | <div class="col"> |
| 925 | <?php Facebook()->render_switcher_input( 'woo_view_category_enabled' ); ?> |
| 926 | <h4 class="switcher-label">Enable the ViewCategory event on Facebook Analytics (used for DPA)</h4> |
| 927 | </div> |
| 928 | </div> |
| 929 | <?php endif; ?> |
| 930 | |
| 931 | <?php if ( GA()->enabled() ) : ?> |
| 932 | <div class="row mb-1"> |
| 933 | <div class="col"> |
| 934 | <?php GA()->render_switcher_input( 'woo_view_category_enabled' ); ?> |
| 935 | <h4 class="switcher-label">Enable the view_item_list event on Google Analytics</h4> |
| 936 | </div> |
| 937 | </div> |
| 938 | <div class="row mb-2"> |
| 939 | <div class="col col-offset-left"> |
| 940 | <?php GA()->render_checkbox_input( 'woo_view_category_non_interactive', |
| 941 | 'Non-interactive event' ); ?> |
| 942 | </div> |
| 943 | </div> |
| 944 | <?php endif; ?> |
| 945 | |
| 946 | <?php if ( Bing()->enabled() ) : ?> |
| 947 | <div class="row"> |
| 948 | <div class="col"> |
| 949 | <?php Bing()->render_switcher_input( 'woo_view_category_enabled' ); ?> |
| 950 | <h4 class="switcher-label">Enable the ViewCategory event on Bing</h4> |
| 951 | <?php Bing()->renderAddonNotice(); ?> |
| 952 | </div> |
| 953 | </div> |
| 954 | <?php endif; ?> |
| 955 | |
| 956 | <div class="row"> |
| 957 | <div class="col"> |
| 958 | <?php renderDummySwitcher(); ?> |
| 959 | <h4 class="switcher-label">Enable the view_item_list event on Google Ads</h4> |
| 960 | <?php renderProBadge('https://www.pixelyoursite.com/google-ads-tag/?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature'); ?> |
| 961 | </div> |
| 962 | </div> |
| 963 | <?php renderDummyGoogleAdsConversionLabelInputs(); ?> |
| 964 | |
| 965 | <?php if ( Pinterest()->enabled() ) : ?> |
| 966 | <div class="row"> |
| 967 | <div class="col"> |
| 968 | <?php Pinterest()->render_switcher_input( 'woo_view_category_enabled' ); ?> |
| 969 | <h4 class="switcher-label">Enable the ViewCategory event on Pinterest</h4> |
| 970 | <?php Pinterest()->renderAddonNotice(); ?> |
| 971 | </div> |
| 972 | </div> |
| 973 | <?php endif; ?> |
| 974 | |
| 975 | </div> |
| 976 | </div> |
| 977 | |
| 978 | |
| 979 | |
| 980 | <div class="card"> |
| 981 | <div class="card-header"> |
| 982 | Track product list performance on Google Analytics |
| 983 | <?php renderProBadge( 'https://www.pixelyoursite.com/google-analytics?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature' ); ?> |
| 984 | <?php cardCollapseBtn(); ?> |
| 985 | </div> |
| 986 | <div class="card-body"> |
| 987 | <?php if ( GA()->enabled() ) : ?> |
| 988 | <div class="row mb-1"> |
| 989 | <div class="col"> |
| 990 | <?php GA()->render_switcher_input( 'woo_view_category_enabled_tmp',false,true ); ?> |
| 991 | <h4 class="switcher-label">Enable the view_item_list event on Google Analytics(categories, related products, search, shortcodes)</h4> |
| 992 | </div> |
| 993 | </div> |
| 994 | <div class="row mb-2"> |
| 995 | <div class="col col-offset-left"> |
| 996 | <?php GA()->render_checkbox_input( 'woo_view_category_non_interactive_tmp', 'Non-interactive event',true ); ?> |
| 997 | </div> |
| 998 | </div> |
| 999 | <div class="row mb-1"> |
| 1000 | <div class="col"> |
| 1001 | <?php GA()->render_switcher_input( 'woo_select_content_enabled_tmp',false,true ); ?> |
| 1002 | <h4 class="switcher-label">Enable the select_content event on Google Analytics(when a product is clicked on categories, related products, search, shortcodes)</h4> |
| 1003 | </div> |
| 1004 | </div> |
| 1005 | <?php endif; ?> |
| 1006 | </div> |
| 1007 | </div> |
| 1008 | |
| 1009 | <div class="card"> |
| 1010 | <div class="card-header"> |
| 1011 | CompleteRegistration for the Facebook Pixel<?php cardCollapseBtn(); ?> |
| 1012 | </div> |
| 1013 | <div class="card-body"> |
| 1014 | <?php if ( Facebook()->enabled() ) : ?> |
| 1015 | <div class="row mb-1"> |
| 1016 | <div class="col"> |
| 1017 | <?php Facebook()->render_checkbox_input( 'woo_complete_registration_fire_every_time', |
| 1018 | "Fire this event every time a transaction takes place"); ?> |
| 1019 | </div> |
| 1020 | </div> |
| 1021 | |
| 1022 | <div class="row mb-1"> |
| 1023 | <div class="col col-offset-left"> |
| 1024 | <?php Facebook()->render_switcher_input( 'woo_complete_registration_use_custom_value'); ?> |
| 1025 | <h4 class="switcher-label">Event value on Facebook</h4> |
| 1026 | <div class="row mt-2"> |
| 1027 | <div class="col col-offset-left"> |
| 1028 | <div class="collapse-inner pt-0"> |
| 1029 | <div class="custom-controls-stacked"> |
| 1030 | <?php Facebook()->render_radio_input("woo_complete_registration_custom_value","price", |
| 1031 | "Order's total") ?> |
| 1032 | <?php if ( !isPixelCogActive() ) { ?> |
| 1033 | <?php Facebook()->render_radio_input( 'woo_complete_registration_custom_value', 'cog', |
| 1034 | 'Price minus Cost of Goods', true, true ); ?> |
| 1035 | <?php } else { ?> |
| 1036 | <?php Facebook()->render_radio_input( 'woo_complete_registration_custom_value', 'cog', |
| 1037 | 'Price minus Cost of Goods', false ); ?> |
| 1038 | <?php } ?> |
| 1039 | <?php Facebook()->render_radio_input("woo_complete_registration_custom_value","percent", |
| 1040 | "Percent of the order's total") ?> |
| 1041 | <div class="form-inline"> |
| 1042 | <?php Facebook()->render_number_input( 'woo_complete_registration_percent_value' ); ?> |
| 1043 | </div> |
| 1044 | <?php Facebook()->render_radio_input("woo_complete_registration_custom_value","global", |
| 1045 | "Use global value") ?> |
| 1046 | <div class="form-inline"> |
| 1047 | <?php Facebook()->render_number_input( 'woo_complete_registration_global_value' ); ?> |
| 1048 | </div> |
| 1049 | </div> |
| 1050 | </div> |
| 1051 | </div> |
| 1052 | </div> |
| 1053 | </div> |
| 1054 | </div> |
| 1055 | |
| 1056 | <div class="row mb-1"> |
| 1057 | <div class="col"> |
| 1058 | <?php Facebook()->render_switcher_input( 'woo_complete_registration_send_from_server'); ?> |
| 1059 | <h4 class="switcher-label">Send this from your server only. It won't be visible on your browser.</h4> |
| 1060 | </div> |
| 1061 | </div> |
| 1062 | <?php endif; ?> |
| 1063 | </div> |
| 1064 | </div> |
| 1065 | |
| 1066 | <h2 class="section-title">PRO Events</h2> |
| 1067 | |
| 1068 | <h2 class="section-title">Advanced Marketing Events</h2> |
| 1069 | |
| 1070 | <!-- FrequentShopper --> |
| 1071 | <div class="card card-disabled"> |
| 1072 | <div class="card-header"> |
| 1073 | FrequentShopper Event <?php renderProBadge(); ?><?php cardCollapseBtn(); ?> |
| 1074 | </div> |
| 1075 | <div class="card-body"> |
| 1076 | |
| 1077 | <div class="row"> |
| 1078 | <div class="col"> |
| 1079 | <?php renderDummySwitcher(); ?> |
| 1080 | <h4 class="switcher-label">Send the event to Facebook</h4> |
| 1081 | </div> |
| 1082 | </div> |
| 1083 | |
| 1084 | <div class="row mb-1"> |
| 1085 | <div class="col"> |
| 1086 | <?php renderDummySwitcher(); ?> |
| 1087 | <h4 class="switcher-label">Send the event to Google Analytics</h4> |
| 1088 | </div> |
| 1089 | </div> |
| 1090 | <div class="row mb-2"> |
| 1091 | <div class="col col-offset-left"> |
| 1092 | <?php renderDummyCheckbox( 'Non-interactive event' ); ?> |
| 1093 | </div> |
| 1094 | </div> |
| 1095 | |
| 1096 | <div class="row"> |
| 1097 | <div class="col"> |
| 1098 | <?php renderDummySwitcher(); ?> |
| 1099 | <h4 class="switcher-label">Send the event to Google Ads</h4> |
| 1100 | </div> |
| 1101 | </div> |
| 1102 | |
| 1103 | <div class="row"> |
| 1104 | <div class="col"> |
| 1105 | <?php renderDummySwitcher(); ?> |
| 1106 | <h4 class="switcher-label">Enable on Pinterest</h4> |
| 1107 | </div> |
| 1108 | </div> |
| 1109 | |
| 1110 | <div class="row"> |
| 1111 | <div class="col"> |
| 1112 | <?php renderDummySwitcher(); ?> |
| 1113 | <h4 class="switcher-label">Enable on Bing</h4> |
| 1114 | </div> |
| 1115 | </div> |
| 1116 | |
| 1117 | <div class="row mt-3"> |
| 1118 | <div class="col col-offset-left form-inline"> |
| 1119 | <label>Fire this event when the client has at least </label> |
| 1120 | <?php renderDummyTextInput( 2 ); ?> |
| 1121 | <label>transactions</label> |
| 1122 | </div> |
| 1123 | </div> |
| 1124 | </div> |
| 1125 | </div> |
| 1126 | |
| 1127 | <!-- VipClient --> |
| 1128 | <div class="card card-disabled"> |
| 1129 | <div class="card-header"> |
| 1130 | VIPClient Event <?php renderProBadge(); ?><?php cardCollapseBtn(); ?> |
| 1131 | </div> |
| 1132 | <div class="card-body"> |
| 1133 | |
| 1134 | <div class="row"> |
| 1135 | <div class="col"> |
| 1136 | <?php renderDummySwitcher(); ?> |
| 1137 | <h4 class="switcher-label">Send the event to Facebook</h4> |
| 1138 | </div> |
| 1139 | </div> |
| 1140 | |
| 1141 | <div class="row mb-1"> |
| 1142 | <div class="col"> |
| 1143 | <?php renderDummySwitcher(); ?> |
| 1144 | <h4 class="switcher-label">Send the event to Google Analytics</h4> |
| 1145 | </div> |
| 1146 | </div> |
| 1147 | <div class="row mb-2"> |
| 1148 | <div class="col col-offset-left"> |
| 1149 | <?php renderDummyCheckbox( 'Non-interactive event' ); ?> |
| 1150 | </div> |
| 1151 | </div> |
| 1152 | |
| 1153 | <div class="row"> |
| 1154 | <div class="col"> |
| 1155 | <?php renderDummySwitcher(); ?> |
| 1156 | <h4 class="switcher-label">Send the event to Google Ads</h4> |
| 1157 | </div> |
| 1158 | </div> |
| 1159 | |
| 1160 | <div class="row"> |
| 1161 | <div class="col"> |
| 1162 | <?php renderDummySwitcher(); ?> |
| 1163 | <h4 class="switcher-label">Enable on Pinterest</h4> |
| 1164 | </div> |
| 1165 | </div> |
| 1166 | |
| 1167 | <div class="row"> |
| 1168 | <div class="col"> |
| 1169 | <?php renderDummySwitcher(); ?> |
| 1170 | <h4 class="switcher-label">Enable on Bing</h4> |
| 1171 | </div> |
| 1172 | </div> |
| 1173 | |
| 1174 | <div class="row mt-3"> |
| 1175 | <div class="col col-offset-left form-inline"> |
| 1176 | <label>Fire this event when the client has at least</label> |
| 1177 | <?php renderDummyTextInput( 3 ); ?> |
| 1178 | <label>transactions and average order is at least</label> |
| 1179 | <?php renderDummyTextInput( 200 ); ?> |
| 1180 | </div> |
| 1181 | </div> |
| 1182 | </div> |
| 1183 | </div> |
| 1184 | |
| 1185 | <!-- BigWhale --> |
| 1186 | <div class="card card-disabled"> |
| 1187 | <div class="card-header"> |
| 1188 | BigWhale Event <?php renderProBadge(); ?><?php cardCollapseBtn(); ?> |
| 1189 | </div> |
| 1190 | <div class="card-body"> |
| 1191 | |
| 1192 | <div class="row"> |
| 1193 | <div class="col"> |
| 1194 | <?php renderDummySwitcher(); ?> |
| 1195 | <h4 class="switcher-label">Send the event to Facebook</h4> |
| 1196 | </div> |
| 1197 | </div> |
| 1198 | |
| 1199 | <div class="row mb-1"> |
| 1200 | <div class="col"> |
| 1201 | <?php renderDummySwitcher(); ?> |
| 1202 | <h4 class="switcher-label">Send the event to Google Analytics</h4> |
| 1203 | </div> |
| 1204 | </div> |
| 1205 | <div class="row mb-2"> |
| 1206 | <div class="col col-offset-left"> |
| 1207 | <?php renderDummyCheckbox( 'Non-interactive event' ); ?> |
| 1208 | </div> |
| 1209 | </div> |
| 1210 | |
| 1211 | <div class="row"> |
| 1212 | <div class="col"> |
| 1213 | <?php renderDummySwitcher(); ?> |
| 1214 | <h4 class="switcher-label">Send the event to Google Ads</h4> |
| 1215 | </div> |
| 1216 | </div> |
| 1217 | |
| 1218 | <div class="row"> |
| 1219 | <div class="col"> |
| 1220 | <?php renderDummySwitcher(); ?> |
| 1221 | <h4 class="switcher-label">Enable on Pinterest</h4> |
| 1222 | </div> |
| 1223 | </div> |
| 1224 | |
| 1225 | <div class="row"> |
| 1226 | <div class="col"> |
| 1227 | <?php renderDummySwitcher(); ?> |
| 1228 | <h4 class="switcher-label">Enable on Bing</h4> |
| 1229 | </div> |
| 1230 | </div> |
| 1231 | |
| 1232 | <div class="row mt-3"> |
| 1233 | <div class="col col-offset-left form-inline"> |
| 1234 | <label>Fire this event when the client has LTV at least</label> |
| 1235 | <?php renderDummyTextInput( 500 ); ?> |
| 1236 | </div> |
| 1237 | </div> |
| 1238 | </div> |
| 1239 | </div> |
| 1240 | |
| 1241 | <h2 class="section-title">Extra E-Commerce events</h2> |
| 1242 | |
| 1243 | <!-- Affiliate --> |
| 1244 | <div class="card card-disabled"> |
| 1245 | <div class="card-header"> |
| 1246 | Track WooCommerce affiliate button clicks <?php renderProBadge(); ?><?php cardCollapseBtn(); ?> |
| 1247 | </div> |
| 1248 | <div class="card-body"> |
| 1249 | |
| 1250 | <div class="row"> |
| 1251 | <div class="col"> |
| 1252 | <?php renderDummySwitcher(); ?> |
| 1253 | <h4 class="switcher-label">Send the event to Facebook</h4> |
| 1254 | </div> |
| 1255 | </div> |
| 1256 | |
| 1257 | <div class="row"> |
| 1258 | <div class="col"> |
| 1259 | <?php renderDummySwitcher(); ?> |
| 1260 | <h4 class="switcher-label">Enable on Pinterest</h4> |
| 1261 | </div> |
| 1262 | </div> |
| 1263 | |
| 1264 | <div class="row"> |
| 1265 | <div class="col"> |
| 1266 | <?php renderDummySwitcher(); ?> |
| 1267 | <h4 class="switcher-label">Enable on Bing</h4> |
| 1268 | </div> |
| 1269 | </div> |
| 1270 | |
| 1271 | <div class="row my-3"> |
| 1272 | <div class="col col-offset-left form-inline"> |
| 1273 | <label>Event Type:</label> |
| 1274 | <?php renderDummySelectInput( 'Custom' ); ?> |
| 1275 | <?php renderDummyTextInput( 'Enter name' ); ?> |
| 1276 | </div> |
| 1277 | </div> |
| 1278 | <div class="row mb-3"> |
| 1279 | <div class="col-11 col-offset-left"> |
| 1280 | <?php renderDummySwitcher(); ?> |
| 1281 | <h4 class="indicator-label">Tracking Value</h4> |
| 1282 | </div> |
| 1283 | <div class="col-1"> |
| 1284 | <?php renderPopoverButton( 'woo_affiliate_event_value' ); ?> |
| 1285 | </div> |
| 1286 | </div> |
| 1287 | <div class="row"> |
| 1288 | <div class="col col-offset-left"> |
| 1289 | <div class="collapse-inner pt-0"> |
| 1290 | <label class="label-inline">Facebook and Pinterest value parameter settings:</label> |
| 1291 | <div class="custom-controls-stacked"> |
| 1292 | <?php renderDummyRadioInput( 'Product price' ); ?> |
| 1293 | <?php renderDummyRadioInput( 'Use Global value' ); ?> |
| 1294 | <div class="form-inline"> |
| 1295 | <?php renderDummyTextInput( 0 ); ?> |
| 1296 | </div> |
| 1297 | </div> |
| 1298 | </div> |
| 1299 | </div> |
| 1300 | </div> |
| 1301 | |
| 1302 | <div class="row mb-1"> |
| 1303 | <div class="col"> |
| 1304 | <?php renderDummySwitcher(); ?> |
| 1305 | <h4 class="switcher-label">Send the event to Google Analytics</h4> |
| 1306 | </div> |
| 1307 | </div> |
| 1308 | <div class="row"> |
| 1309 | <div class="col col-offset-left"> |
| 1310 | <?php renderDummyCheckbox( 'Non-interactive event' ); ?> |
| 1311 | </div> |
| 1312 | </div> |
| 1313 | |
| 1314 | <div class="row"> |
| 1315 | <div class="col"> |
| 1316 | <?php renderDummySwitcher(); ?> |
| 1317 | <h4 class="switcher-label">Send the event to Google Ads</h4> |
| 1318 | </div> |
| 1319 | </div> |
| 1320 | |
| 1321 | </div> |
| 1322 | </div> |
| 1323 | |
| 1324 | <!-- PayPal --> |
| 1325 | <div class="card card-disabled"> |
| 1326 | <div class="card-header"> |
| 1327 | Track WooCommerce PayPal Standard clicks <?php renderProBadge(); ?><?php cardCollapseBtn(); ?> |
| 1328 | </div> |
| 1329 | <div class="card-body"> |
| 1330 | |
| 1331 | <div class="row"> |
| 1332 | <div class="col"> |
| 1333 | <?php renderDummySwitcher(); ?> |
| 1334 | <h4 class="switcher-label">Send the event to Facebook</h4> |
| 1335 | </div> |
| 1336 | </div> |
| 1337 | |
| 1338 | <div class="row"> |
| 1339 | <div class="col"> |
| 1340 | <?php renderDummySwitcher(); ?> |
| 1341 | <h4 class="switcher-label">Enable on Pinterest</h4> |
| 1342 | </div> |
| 1343 | </div> |
| 1344 | |
| 1345 | <div class="row"> |
| 1346 | <div class="col"> |
| 1347 | <?php renderDummySwitcher(); ?> |
| 1348 | <h4 class="switcher-label">Enable on Bing</h4> |
| 1349 | </div> |
| 1350 | </div> |
| 1351 | |
| 1352 | <div class="row my-3"> |
| 1353 | <div class="col col-offset-left form-inline"> |
| 1354 | <label>Event Type:</label> |
| 1355 | <?php renderDummySelectInput( 'Custom' ); ?> |
| 1356 | <?php renderDummyTextInput( 'Enter name' ); ?> |
| 1357 | </div> |
| 1358 | </div> |
| 1359 | <div class="row mb-3"> |
| 1360 | <div class="col-11 col-offset-left"> |
| 1361 | <?php renderDummySwitcher(); ?> |
| 1362 | <h4 class="indicator-label">Tracking Value</h4> |
| 1363 | </div> |
| 1364 | <div class="col-1"> |
| 1365 | <?php renderPopoverButton( 'woo_paypal_event_value' ); ?> |
| 1366 | </div> |
| 1367 | </div> |
| 1368 | <div class="row"> |
| 1369 | <div class="col col-offset-left"> |
| 1370 | <div class="collapse-inner pt-0"> |
| 1371 | <label class="label-inline">Facebook and Pinterest value parameter settings:</label> |
| 1372 | <div class="custom-controls-stacked"> |
| 1373 | <?php renderDummyRadioInput( 'Product price' ); ?> |
| 1374 | <?php renderDummyRadioInput( 'Use Global value' ); ?> |
| 1375 | <div class="form-inline"> |
| 1376 | <?php renderDummyTextInput( 0 ); ?> |
| 1377 | </div> |
| 1378 | </div> |
| 1379 | </div> |
| 1380 | </div> |
| 1381 | </div> |
| 1382 | |
| 1383 | <div class="row mb-1"> |
| 1384 | <div class="col"> |
| 1385 | <?php renderDummySwitcher(); ?> |
| 1386 | <h4 class="switcher-label">Send the event to Google Analytics</h4> |
| 1387 | </div> |
| 1388 | </div> |
| 1389 | <div class="row"> |
| 1390 | <div class="col col-offset-left"> |
| 1391 | <?php renderDummyCheckbox( 'Non-interactive event' ); ?> |
| 1392 | </div> |
| 1393 | </div> |
| 1394 | |
| 1395 | <div class="row"> |
| 1396 | <div class="col"> |
| 1397 | <?php renderDummySwitcher(); ?> |
| 1398 | <h4 class="switcher-label">Send the event to Google Ads</h4> |
| 1399 | </div> |
| 1400 | </div> |
| 1401 | |
| 1402 | </div> |
| 1403 | </div> |
| 1404 | |
| 1405 | <div class="panel"> |
| 1406 | <div class="row"> |
| 1407 | <div class="col"> |
| 1408 | <div class="d-flex justify-content-between"> |
| 1409 | <span class="mt-2">Track more actions and additional data with the PRO version:</span> |
| 1410 | <a target="_blank" class="btn btn-sm btn-primary float-right" href="https://www.pixelyoursite.com/facebook-pixel-plugin/buy-pixelyoursite-pro?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-upgrade-blue">UPGRADE</a> |
| 1411 | </div> |
| 1412 | </div> |
| 1413 | </div> |
| 1414 | </div> |
| 1415 | |
| 1416 | <hr> |
| 1417 | <div class="row justify-content-center"> |
| 1418 | <div class="col-4"> |
| 1419 | <button class="btn btn-block btn-save">Save Settings</button> |
| 1420 | </div> |
| 1421 | </div> |