HEX
Server: Apache
System: Linux p3plzcpnl476737.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: p8pyefaexf70 (9161224)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/pixelyoursite/includes/event-definitions/bing-events.php
<?php
/**
 * Bing Event Definitions
 * 
 * This file contains event definitions for Bing Ads UET (Universal Event Tracking).
 * Used by both legacy UI and EST (Event Setup Tool).
 * 
 * @package PixelYourSite
 */

namespace PixelYourSite;

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

return array(
    'Custom' => array(),
    '' => array(),
    'AddToCart' => array(
        array( 'type' => 'input', 'label' => 'event_category', 'name' => 'pys[event][bing_params][event_category]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'event_label', 'name' => 'pys[event][bing_params][event_label]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_prodid', 'name' => 'pys[event][bing_params][ecomm_prodid]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_pagetype', 'name' => 'pys[event][bing_params][ecomm_pagetype]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_totalvalue', 'name' => 'pys[event][bing_params][ecomm_totalvalue]', 'input_type' => 'float', 'required' => false ),
    ),
    'CompleteRegistration' => array(),
    'Contact' => array(),
    'InitiateCheckout' => array(
        array( 'type' => 'input', 'label' => 'event_category', 'name' => 'pys[event][bing_params][event_category]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'event_label', 'name' => 'pys[event][bing_params][event_label]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_prodid', 'name' => 'pys[event][bing_params][ecomm_prodid]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_pagetype', 'name' => 'pys[event][bing_params][ecomm_pagetype]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_totalvalue', 'name' => 'pys[event][bing_params][ecomm_totalvalue]', 'input_type' => 'float', 'required' => false ),
    ),
    'PageVisit' => array(),
    'Purchase' => array(
        array( 'type' => 'input', 'label' => 'event_category', 'name' => 'pys[event][bing_params][event_category]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'event_label', 'name' => 'pys[event][bing_params][event_label]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'currency', 'name' => 'pys[event][bing_params][currency]', 'input_type' => 'string', 'required' => true ),
        array( 'type' => 'input', 'label' => 'ecomm_prodid', 'name' => 'pys[event][bing_params][ecomm_prodid]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_pagetype', 'name' => 'pys[event][bing_params][ecomm_pagetype]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_totalvalue', 'name' => 'pys[event][bing_params][ecomm_totalvalue]', 'input_type' => 'float', 'required' => true ),
        array( 'type' => 'input', 'label' => 'transaction_id', 'name' => 'pys[event][bing_params][transaction_id]', 'input_type' => 'string', 'required' => false ),
    ),
    'ViewContent' => array(
        array( 'type' => 'input', 'label' => 'event_category', 'name' => 'pys[event][bing_params][event_category]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'event_label', 'name' => 'pys[event][bing_params][event_label]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'event_value', 'name' => 'pys[event][bing_params][event_value]', 'input_type' => 'float', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_prodid', 'name' => 'pys[event][bing_params][ecomm_prodid]', 'input_type' => 'string', 'required' => false ),
        array( 'type' => 'input', 'label' => 'ecomm_pagetype', 'name' => 'pys[event][bing_params][ecomm_pagetype]', 'input_type' => 'string', 'required' => false ),
    ),
);