failed, anon_id not in UUID v4 format"); } else { $this->track('$identify', array( '$identified_id' => $user_id, '$anon_id' => $anon_id )); } } } /** * An alias to be merged with the distinct_id. Each alias can only map to one distinct_id. * This is helpful when you want to associate a generated id (such as a session id) to a user id or username. * * Because aliasing can be extremely vulnerable to race conditions and ordering issues, we'll make a synchronous * call directly to Mixpanel when this method is called. If it fails we'll throw an Exception as subsequent * events are likely to be incorrectly tracked. * @param string|int $distinct_id * @param string|int $alias * @return array $msg * @throws Exception */ public function createAlias($distinct_id, $alias) { $msg = array( "event" => '$create_alias', "properties" => array("distinct_id" => $distinct_id, "alias" => $alias, "token" => $this->_token) ); // Save the current fork/async options $old_fork = isset($this->_options['fork']) ? $this->_options['fork'] : false; $old_async = isset($this->_options['async']) ? $this->_options['async'] : false; // Override fork/async to make the new consumer synchronous $this->_options['fork'] = false; $this->_options['async'] = false; // The name is ambiguous, but this creates a new consumer with current $this->_options $consumer = $this->_getConsumer(); $success = $consumer->persist(array($msg)); // Restore the original fork/async settings $this->_options['fork'] = $old_fork; $this->_options['async'] = $old_async; if (!$success) { error_log("Creating Mixpanel Alias (distinct id: $distinct_id, alias: $alias) failed"); throw new Exception("Tried to create an alias but the call was not successful"); } else { return $msg; } } /** * Returns the "events" endpoint * @return string */ function _getEndpoint() { return $this->_options['events_endpoint']; } }
Fatal error: Uncaught Error: Class "WPMedia_Producers_MixpanelEvents" not found in /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/vendor/wp-media/wp-mixpanel/src/Classes/Mixpanel.php:144 Stack trace: #0 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/vendor/wp-media/wp-mixpanel/src/Classes/Mixpanel.php(157): WPMedia_Mixpanel->__construct() #1 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/vendor/wp-media/wp-mixpanel/src/Tracking.php(41): WPMedia_Mixpanel::getInstance() #2 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/vendor/wp-media/wp-mixpanel/src/TrackingPlugin.php(44): WPMedia\Mixpanel\Tracking->__construct() #3 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/includes/class-tracking.php(71): WPMedia\Mixpanel\TrackingPlugin->__construct() #4 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(300): RankMath\Tracking->__construct() #5 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(185): RankMath->instantiate() #6 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(164): RankMath->setup() #7 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(547): RankMath::get() #8 /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/rank-math.php(551): rank_math() #9 /home/alibiuro/domains/alibiuro.pl/public_html/wp-settings.php(560): include_once('...') #10 /home/alibiuro/domains/alibiuro.pl/public_html/wp-config.php(113): require_once('...') #11 /home/alibiuro/domains/alibiuro.pl/public_html/wp-load.php(50): require_once('...') #12 /home/alibiuro/domains/alibiuro.pl/public_html/wp-blog-header.php(13): require_once('...') #13 /home/alibiuro/domains/alibiuro.pl/public_html/index.php(17): require('...') #14 {main} thrown in /home/alibiuro/domains/alibiuro.pl/public_html/wp-content/plugins/seo-by-rank-math/vendor/wp-media/wp-mixpanel/src/Classes/Mixpanel.php on line 144