| Server IP : 37.27.51.148 / Your IP : 216.73.216.171 Web Server : nginx/1.14.1 System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/pixelyoursite/includes/event-definitions/ |
Upload File : |
<?php
/**
* Reddit Event Definitions
*
* This file contains event definitions for Reddit Pixel.
* 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( 'type' => 'input', 'label' => 'itemCount', 'name' => 'pys[event][reddit_params][itemCount]', 'input_type' => 'int', 'required' => false ),
array( 'type' => 'input', 'label' => 'value', 'name' => 'pys[event][reddit_params][value]', 'input_type' => 'float', 'required' => false ),
array( 'type' => 'input', 'label' => 'currency', 'name' => 'pys[event][reddit_params][currency]', 'input_type' => 'string', 'required' => false ),
),
'' => array(),
'AddToCart' => array(
array( 'type' => 'input', 'label' => 'itemCount', 'name' => 'pys[event][reddit_params][itemCount]', 'input_type' => 'int', 'required' => false ),
array( 'type' => 'input', 'label' => 'value', 'name' => 'pys[event][reddit_params][value]', 'input_type' => 'float', 'required' => false ),
array( 'type' => 'input', 'label' => 'currency', 'name' => 'pys[event][reddit_params][currency]', 'input_type' => 'string', 'required' => false ),
),
'AddToWishlist' => array(
array( 'type' => 'input', 'label' => 'itemCount', 'name' => 'pys[event][reddit_params][itemCount]', 'input_type' => 'int', 'required' => false ),
array( 'type' => 'input', 'label' => 'value', 'name' => 'pys[event][reddit_params][value]', 'input_type' => 'float', 'required' => false ),
array( 'type' => 'input', 'label' => 'currency', 'name' => 'pys[event][reddit_params][currency]', 'input_type' => 'string', 'required' => false ),
),
'Lead' => array(
array( 'type' => 'input', 'label' => 'value', 'name' => 'pys[event][reddit_params][value]', 'input_type' => 'float', 'required' => false ),
array( 'type' => 'input', 'label' => 'currency', 'name' => 'pys[event][reddit_params][currency]', 'input_type' => 'string', 'required' => false ),
),
'Purchase' => array(
array( 'type' => 'input', 'label' => 'itemCount', 'name' => 'pys[event][reddit_params][itemCount]', 'input_type' => 'int', 'required' => false ),
array( 'type' => 'input', 'label' => 'value', 'name' => 'pys[event][reddit_params][value]', 'input_type' => 'float', 'required' => true ),
array( 'type' => 'input', 'label' => 'currency', 'name' => 'pys[event][reddit_params][currency]', 'input_type' => 'string', 'required' => true ),
),
'Search' => array(),
'SignUp' => array(
array( 'type' => 'input', 'label' => 'value', 'name' => 'pys[event][reddit_params][value]', 'input_type' => 'float', 'required' => false ),
array( 'type' => 'input', 'label' => 'currency', 'name' => 'pys[event][reddit_params][currency]', 'input_type' => 'string', 'required' => false ),
),
'ViewContent' => array(),
);