[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Analytics Data V1alpha Client - Class MetricType (0.22.3)\n\nVersion latestkeyboard_arrow_down\n\n- [0.22.3 (latest)](/php/docs/reference/analytics-data/latest/V1alpha.MetricType)\n- [0.22.2](/php/docs/reference/analytics-data/0.22.2/V1alpha.MetricType)\n- [0.21.1](/php/docs/reference/analytics-data/0.21.1/V1alpha.MetricType)\n- [0.20.1](/php/docs/reference/analytics-data/0.20.1/V1alpha.MetricType)\n- [0.19.0](/php/docs/reference/analytics-data/0.19.0/V1alpha.MetricType)\n- [0.18.0](/php/docs/reference/analytics-data/0.18.0/V1alpha.MetricType)\n- [0.17.1](/php/docs/reference/analytics-data/0.17.1/V1alpha.MetricType)\n- [0.16.4](/php/docs/reference/analytics-data/0.16.4/V1alpha.MetricType)\n- [0.14.0](/php/docs/reference/analytics-data/0.14.0/V1alpha.MetricType)\n- [0.13.0](/php/docs/reference/analytics-data/0.13.0/V1alpha.MetricType)\n- [0.12.0](/php/docs/reference/analytics-data/0.12.0/V1alpha.MetricType)\n- [0.11.2](/php/docs/reference/analytics-data/0.11.2/V1alpha.MetricType)\n- [0.10.1](/php/docs/reference/analytics-data/0.10.1/V1alpha.MetricType)\n- [0.9.5](/php/docs/reference/analytics-data/0.9.5/V1alpha.MetricType) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Analytics Data V1alpha Client class MetricType.\n\nA metric's value type.\n\nProtobuf type `google.analytics.data.v1alpha.MetricType`\n\nNamespace\n---------\n\nGoogle \\\\ Analytics \\\\ Data \\\\ V1alpha\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### METRIC_TYPE_UNSPECIFIED\n\n Value: 0\n\nUnspecified type.\n\nGenerated from protobuf enum `METRIC_TYPE_UNSPECIFIED = 0;`\n\n### TYPE_INTEGER\n\n Value: 1\n\nInteger type.\n\nGenerated from protobuf enum `TYPE_INTEGER = 1;`\n\n### TYPE_FLOAT\n\n Value: 2\n\nFloating point type.\n\nGenerated from protobuf enum `TYPE_FLOAT = 2;`\n\n### TYPE_SECONDS\n\n Value: 4\n\nA duration of seconds; a special floating point type.\n\nGenerated from protobuf enum `TYPE_SECONDS = 4;`\n\n### TYPE_MILLISECONDS\n\n Value: 5\n\nA duration in milliseconds; a special floating point type.\n\nGenerated from protobuf enum `TYPE_MILLISECONDS = 5;`\n\n### TYPE_MINUTES\n\n Value: 6\n\nA duration in minutes; a special floating point type.\n\nGenerated from protobuf enum `TYPE_MINUTES = 6;`\n\n### TYPE_HOURS\n\n Value: 7\n\nA duration in hours; a special floating point type.\n\nGenerated from protobuf enum `TYPE_HOURS = 7;`\n\n### TYPE_STANDARD\n\n Value: 8\n\nA custom metric of standard type; a special floating point type.\n\nGenerated from protobuf enum `TYPE_STANDARD = 8;`\n\n### TYPE_CURRENCY\n\n Value: 9\n\nAn amount of money; a special floating point type.\n\nGenerated from protobuf enum `TYPE_CURRENCY = 9;`\n\n### TYPE_FEET\n\n Value: 10\n\nA length in feet; a special floating point type.\n\nGenerated from protobuf enum `TYPE_FEET = 10;`\n\n### TYPE_MILES\n\n Value: 11\n\nA length in miles; a special floating point type.\n\nGenerated from protobuf enum `TYPE_MILES = 11;`\n\n### TYPE_METERS\n\n Value: 12\n\nA length in meters; a special floating point type.\n\nGenerated from protobuf enum `TYPE_METERS = 12;`\n\n### TYPE_KILOMETERS\n\n Value: 13\n\nA length in kilometers; a special floating point type.\n\nGenerated from protobuf enum `TYPE_KILOMETERS = 13;`"]]