Ejemplo n.º 1
0
 private function insertVisit($idSite, $dateTime)
 {
     $visit = $this->logInserter->insertVisit(array('idsite' => $idSite, 'visit_last_action_time' => $dateTime));
     $orderId = 'idorder_' . $visit['idvisit'];
     // insert two actions
     $this->logInserter->insertVisitAction($visit['idvisit'], array('idsite' => $idSite));
     $this->logInserter->insertVisitAction($visit['idvisit'], array('idsite' => $idSite));
     // insert two conversions
     $this->logInserter->insertConversion($visit['idvisit'], array('idsite' => $idSite, 'buster' => 1));
     $this->logInserter->insertConversion($visit['idvisit'], array('idsite' => $idSite, 'buster' => 2, 'idorder' => $orderId));
     // insert two conversion items for last conversion
     $this->logInserter->insertConversionItem($visit['idvisit'], $orderId, array('idsite' => $idSite));
     $this->logInserter->insertConversionItem($visit['idvisit'], $orderId, array('idsite' => $idSite, 'idaction_sku' => 123));
 }