Segment::page PHP Method

page() public static method

Tracks a page view
public static page ( array $message ) : boolean
$message array
return boolean whether the page call succeeded
    public static function page(array $message)
    {
        self::checkClient();
        self::validate($message, "page");
        return self::$client->page($message);
    }

Usage Example

Example #1
0
 function testEmptyArrayProperties()
 {
     $this->assertTrue(Segment::track(array("userId" => "user-id", "event" => "empty-properties", "properties" => array())));
     $this->assertTrue(Segment::page(array("category" => "empty-properties", "name" => "empty-properties", "userId" => "user-id", "properties" => array())));
 }