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: group_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
//create or update a grou pprofile with properties Industry and Product
[7] Fix | Delete
$mp->group->set("company","Mixpanel3", array(
[8] Fix | Delete
'Industry' => "Tech",
[9] Fix | Delete
'Product' => "Product Analytics",
[10] Fix | Delete
'Features' => array("Insights"),
[11] Fix | Delete
'test' => "test1234",
[12] Fix | Delete
));
[13] Fix | Delete
[14] Fix | Delete
// create or update a group profile with properties
[15] Fix | Delete
// using SetOnce Industry will not be overwritten as the value already exists
[16] Fix | Delete
[17] Fix | Delete
$mp->group->setOnce("company","Mixpanel3", array(
[18] Fix | Delete
'Industry' => "TechTest",
[19] Fix | Delete
'Name' => "Mixpanel",
[20] Fix | Delete
));
[21] Fix | Delete
[22] Fix | Delete
[23] Fix | Delete
// unsets the property test
[24] Fix | Delete
$mp->group->remove("company","Mixpanel3", array("test"));
[25] Fix | Delete
[26] Fix | Delete
[27] Fix | Delete
// add Funnels Cohorts and Flows to a list of "Features" for Group profile Mixpanel3
[28] Fix | Delete
$mp->group->union("company","Mixpanel3", "Features", array("Funnels","Flows","Cohorts") );
[29] Fix | Delete
[30] Fix | Delete
[31] Fix | Delete
//deletegroup
[32] Fix | Delete
$mp->group->deleteGroup("company","Mixpanel3");
[33] Fix | Delete
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function