Spatie\GoogleTagManager\DataLayer::clear PHP Method

clear() public method

Empty the data layer.
public clear ( )
    public function clear()
    {
        $this->data = [];
    }