y of properties to unset on the profile * @param string|null $ip the ip address of the client (used for geo-location) * @param boolean $ignore_time If the $ignore_time property is true, Mixpanel will not automatically update the "Last Seen" property of the profile. Otherwise, Mixpanel will add a "Last Seen" property associated with the current time * @param boolean $ignore_alias If the $ignore_alias property is true, an alias look up will not be performed after ingestion. Otherwise, a lookup for the distinct ID will be performed, and replaced if a match is found */ public function remove($distinct_id, $props, $ip = null, $ignore_time = false, $ignore_alias = false) { $payload = $this->_constructPayload($distinct_id, '$unset', $props, $ip, $ignore_time, $ignore_alias); $this->enqueue($payload); } /** * Increments the value of a property on a user record. If the profile does not exist, it creates it and sets the * property to the increment value. * @param string|int $distinct_id the distinct_id or alias of a user * @param $prop string the property to increment * @param int $val the amount to increment the property by * @param string|null $ip the ip address of the client (used for geo-location) * @param boolean $ignore_time If the $ignore_time property is true, Mixpanel will not automatically update the "Last Seen" property of the profile. Otherwise, Mixpanel will add a "Last Seen" property associated with the current time * @param boolean $ignore_alias If the $ignore_alias property is true, an alias look up will not be performed after ingestion. Otherwise, a lookup for the distinct ID will be performed, and replaced if a match is found */ public function increment($distinct_id, $prop, $val, $ip = null, $ignore_time = false, $ignore_alias = false) { $payload = $this->_constructPayload($distinct_id, '$add', array("$prop" => $val), $ip, $ignore_time, $ignore_alias); $this->enqueue($payload); } /** * Adds $val to a list located at $prop. If the property does not exist, it will be created. If $val is a string * and the list is empty or does not exist, a new list with one value will be created. * @param string|int $distinct_id the distinct_id or alias of a user * @param string $prop the property that holds the list * @param string|array $val items to add to the list * @param string|null $ip the ip address of the client (used for geo-location) * @param boolean $ignore_time If the $ignore_time property is true, Mixpanel will not automatically update the "Last Seen" property of the profile. Otherwise, Mixpanel will add a "Last Seen" property associated with the current time * @param boolean $ignore_alias If the $ignore_alias property is true, an alias look up will not be performed after ingestion. Otherwise, a lookup for the distinct ID will be performed, and replaced if a match is found */ public function append($distinct_id, $prop, $val, $ip = null, $ignore_time = false, $ignore_alias = false) { $operation = gettype($val) == "array" ? '$union' : '$append'; $payload = $this->_constructPayload($distinct_id, $operation, array("$prop" => $val), $ip, $ignore_time, $ignore_alias); $this->enqueue($payload); } /** * Adds a transaction to the user's profile for revenue tracking * @param string|int $distinct_id the distinct_id or alias of a user * @param string $amount the transaction amount e.g. "20.50" * @param null $timestamp the timestamp of when the transaction occurred (default to current timestamp) * @param string|null $ip the ip address of the client (used for geo-location) * @param boolean $ignore_time If the $ignore_time property is true, Mixpanel will not automatically update the "Last Seen" property of the profile. Otherwise, Mixpanel will add a "Last Seen" property associated with the current time * @param boolean $ignore_alias If the $ignore_alias property is true, an alias look up will not be performed after ingestion. Otherwise, a lookup for the distinct ID will be performed, and replaced if a match is found */ public function trackCharge($distinct_id, $amount, $timestamp = null, $ip = null, $ignore_time = false, $ignore_alias = false) { $timestamp = $timestamp == null ? time() : $timestamp; $date_iso = date("c", $timestamp); $transaction = array( '$time' => $date_iso, '$amount' => $amount ); $val = array('$transactions' => $transaction); $payload = $this->_constructPayload($distinct_id, '$append', $val, $ip, $ignore_time, $ignore_alias); $this->enqueue($payload); } /** * Clear all transactions stored on a user's profile * @param string|int $distinct_id the distinct_id or alias of a user * @param string|null $ip the ip address of the client (used for geo-location) * @param boolean $ignore_time If the $ignore_time property is true, Mixpanel will not automatically update the "Last Seen" property of the profile. Otherwise, Mixpanel will add a "Last Seen" property associated with the current time * @param boolean $ignore_alias If the $ignore_alias property is true, an alias look up will not be performed after ingestion. Otherwise, a lookup for the distinct ID will be performed, and replaced if a match is found */ public function clearCharges($distinct_id, $ip = null, $ignore_time = false, $ignore_alias = false) { $payload = $this->_constructPayload($distinct_id, '$set', array('$transactions' => array()), $ip, $ignore_time, $ignore_alias); $this->enqueue($payload); } /** * Delete this profile from Mixpanel * @param string|int $distinct_id the distinct_id or alias of a user * @param string|null $ip the ip address of the client (used for geo-location) * @param boolean $ignore_time If the $ignore_time property is true, Mixpanel will not automatically update the "Last Seen" property of the profile. Otherwise, Mixpanel will add a "Last Seen" property associated with the current time * @param boolean $ignore_alias If the $ignore_alias property is true, an alias look up will not be performed after ingestion. Otherwise, a lookup for the distinct ID will be performed, and replaced if a match is found */ public function deleteUser($distinct_id, $ip = null, $ignore_time = false, $ignore_alias = false) { $payload = $this->_constructPayload($distinct_id, '$delete', "", $ip, $ignore_time, $ignore_alias); $this->enqueue($payload); } /** * Returns the "engage" endpoint * @return string */ function _getEndpoint() { return $this->_options['people_endpoint']; } }
Fatal error: Uncaught Error: Class "WPMedia_Producers_MixpanelPeople" not found in /htdocs/wp-content/plugins/backwpup/vendor/wp-media/wp-mixpanel/src/Classes/Mixpanel.php:143 Stack trace: #0 /htdocs/wp-content/plugins/backwpup/vendor/wp-media/wp-mixpanel/src/Classes/Mixpanel.php(157): WPMedia_Mixpanel->__construct('517e881edc2636e...', Array) #1 /htdocs/wp-content/plugins/backwpup/vendor/wp-media/wp-mixpanel/src/Tracking.php(41): WPMedia_Mixpanel::getInstance('517e881edc2636e...', Array) #2 /htdocs/wp-content/plugins/backwpup/vendor/wp-media/wp-mixpanel/src/TrackingPlugin.php(44): WPMedia\Mixpanel\Tracking->__construct('517e881edc2636e...', Array) #3 [internal function]: WPMedia\Mixpanel\TrackingPlugin->__construct('517e881edc2636e...', 'BackWPup 5.6.3', 'wp media', 'backwpup') #4 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/Definition/Definition.php(220): ReflectionClass->newInstanceArgs(Array) #5 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/Definition/Definition.php(180): WPMedia\BackWPup\Dependencies\League\Container\Definition\Definition->resolveClass('WPMedia\\Mixpane...') #6 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/Definition/Definition.php(158): WPMedia\BackWPup\Dependencies\League\Container\Definition\Definition->resolveNew() #7 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/Definition/DefinitionAggregate.php(83): WPMedia\BackWPup\Dependencies\League\Container\Definition\Definition->resolve() #8 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/Container.php(175): WPMedia\BackWPup\Dependencies\League\Container\Definition\DefinitionAggregate->resolve('WPMedia\\Mixpane...') #9 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/Container.php(118): WPMedia\BackWPup\Dependencies\League\Container\Container->resolve('WPMedia\\Mixpane...') #10 /htdocs/wp-content/plugins/backwpup/src/Tracking/ServiceProvider.php(75): WPMedia\BackWPup\Dependencies\League\Container\Container->get('WPMedia\\Mixpane...') #11 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/ServiceProvider/ServiceProviderAggregate.php(71): WPMedia\BackWPup\Tracking\ServiceProvider->register() #12 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/Container.php(192): WPMedia\BackWPup\Dependencies\League\Container\ServiceProvider\ServiceProviderAggregate->register('WPMedia\\BackWPu...') #13 /htdocs/wp-content/plugins/backwpup/src/Dependencies/League/Container/Container.php(118): WPMedia\BackWPup\Dependencies\League\Container\Container->resolve('WPMedia\\BackWPu...') #14 /htdocs/wp-content/plugins/backwpup/src/Plugin/Plugin.php(290): WPMedia\BackWPup\Dependencies\League\Container\Container->get('WPMedia\\BackWPu...') #15 /htdocs/wp-content/plugins/backwpup/src/Plugin/Plugin.php(186): WPMedia\BackWPup\Plugin\Plugin->load_subscribers(Object(WPMedia\BackWPup\Tracking\ServiceProvider)) #16 /htdocs/wp-includes/class-wp-hook.php(341): WPMedia\BackWPup\Plugin\Plugin->init('') #17 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #18 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #19 /htdocs/wp-settings.php(593): do_action('plugins_loaded') #20 /htdocs/wp-config.php(102): require_once('/htdocs/wp-sett...') #21 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #22 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #23 /htdocs/index.php(17): require('/htdocs/wp-blog...') #24 {main} thrown in /htdocs/wp-content/plugins/backwpup/vendor/wp-media/wp-mixpanel/src/Classes/Mixpanel.php on line 143