public function testInit()
 {
     $criteria = new GoogleAnalyticsCriteriaFactory();
     $ga = $criteria->make();
     $ga = $this->setCustomDimensions($ga);
     return $ga;
 }
Пример #2
0
	echo get_class( $seg )."\n";

}
*/
//find all converted users - grouped by ip
//table:
//this query let's us gather all the converted users
//within given timeframe
/*------------------------------------------------

    users | event_label

-------------------------------------------------*/
/*

$criteria->find( "users" )
         ->by( "event_label" )
         ->where( "event_category", "contact_form" );
*/
//
//
//next we want to source them
//we can loop throw each row, running the following query
//order by date ascending, and only return one row to get the
//earliest source
$criteria = Criteria::make();
$criteria->site($config['site'])->find("users")->between("7daysAgo", date('Y-m-d'))->segment("paidTraffic");
$originalSource = $repository->findBy($criteria);
//echo "<pre>";
//var_dump( $originalSource ); exit;
//assign source to lead