--- a/stop.php +++ b/stop.php @@ -1,40 +1,51 @@ setSiteId($owaSiteID); -// Create a new event object -$event = $owa->makeEvent(); -// Set the Event Type, in this case a "video_play" -$event->setEventType('view_stop'); -// Set a property -$event->set('stop_id',$stopid); -// Track the event -$owa->trackEvent($event); - } + // Create a new Instance of the tracker + $owa = new owa_php(); + // Set the ID of the site being tracked + $owa->setSiteId($owaSiteID); + // Create a new event object + $event = $owa->makeEvent(); + // Set the Event Type, in this case a "video_play" + $event->setEventType('view_stop'); + // Set a property + $event->set('stop_id', $stopid); + // Track the event + $owa->trackEvent($event); +} timePlaceSettings(); -echo '

'.staticmap(Array(0 => Array($stop[2],$stop[3]))).'

'; +echo '

' . staticmap(Array( + 0 => Array( + $stop[2], + $stop[3] + ) +)) . '

'; echo '
';