Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-smush.../vendor/mixpanel/mixpanel.../examples
File: track_advanced.php
<?php
[0] Fix | Delete
// import the Mixpanel class
[1] Fix | Delete
require_once("../lib/Mixpanel.php");
[2] Fix | Delete
[3] Fix | Delete
// instantiate the Mixpanel class
[4] Fix | Delete
$mp = Mixpanel::getInstance("MIXPANEL_PROJECT_TOKEN");
[5] Fix | Delete
[6] Fix | Delete
// associate a user id to subsequent events
[7] Fix | Delete
$mp->identify(12345);
[8] Fix | Delete
[9] Fix | Delete
// track a "Login Success" event with a property "Ad Source" having value "Google"
[10] Fix | Delete
$mp->track("Login Success", array("Ad Source" => "Google"));
[11] Fix | Delete
[12] Fix | Delete
// track an "Item Viewed" event with a property "Item" having value "Cool New Shoes"
[13] Fix | Delete
$mp->track("Item Viewed", array("Item" => "Cool New Shoes"));
[14] Fix | Delete
[15] Fix | Delete
// stop associating events to user 12345
[16] Fix | Delete
$mp->unregister("distinct_id");
[17] Fix | Delete
[18] Fix | Delete
// event "Some Event" won't be associated with user 12345
[19] Fix | Delete
$mp->track("Some Event");
[20] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function