Define custom metrics
A custom metric is a user-defined metric based on a standard metric or an attribute field. You can define three types of custom metrics: segment metrics, filter metrics, and attribute metrics.
You can use any standard metric or attribute field as the base for a custom metric. You cannot use a calculated metric or another custom metric as the base for a custom metric.
There are different types of custom metrics:
Segment metrics
A segment metric returns metric data only for sessions that match a segment definition. For example, you can apply a segment to the Sales/Session standard metric that limits results to sessions from mobile device users. The segmentation logic is applied only to the selected base metric, not to the entire report.
Note: The following restrictions apply to custom metrics:
- You cannot add a segment that contains cross-session or registration criteria to a custom metric.
- If a report contains a segmented custom metric, it cannot also contain a segment that uses cross-session or registration criteria.
- You cannot add a multi-channel segment to a custom metric.
To create a custom segment metric:
- In an ad hoc report, click the Metrics Edit icon. The Search metrics modal opens.
- Click Create custom metric. The Create custom metric modal opens.
- Enter a name, category, and description for the metric.
- In the Select a metric or attribute drop-down, select Metric and then select a standard metric as the base for the custom segment metric.
- Check that Apply a segment is selected.
- Type a segment to apply to the metric.
- Click Save. The custom segment metric is available for selection in the Search metrics modal. To find custom metrics quickly in the Search metrics modal, click Custom under #Tags. To add your custom segment metric to the report, move it to Selected metrics, and then click Apply.
Filter metrics
A filter metric returns only metric data that matches a filter definition. For example, you can use the Page Views standard metric to create a custom metric that limits results to a category of pages, such as electronics. The filtering logic is applied only to the base metric, not to the entire report.
To create a custom filter metric:
- In an ad hoc report, click the Metrics Edit icon. The Search metrics modal opens.
- Click Create custom metric. The Create custom metric modal opens.
- Enter a name, category, and description for the metric.
- In the Select a metric or attribute drop-down, select Metric and then select a standard metric as the base for the custom filter metric.
- Click Apply a filter.
- Type a filter to apply to the metric.
- Click Save. The custom filter metric is available for selection in the Search metrics modal. To find custom metrics quickly in the Search metrics modal, click Custom under #Tags. To add your custom filter metric to the report, move it to Selected metrics, and then click Apply.
Attribute metrics
An attribute metric is based on the values of an attribute field. For example, if your site is configured to collect author name as an attribute of a page view tag, you can select this attribute to produce a metric such as "Page Views - Smith". Attribute metrics offer different calculation options, depending upon whether the selected attribute is text-based or numeric. You cannot apply a segment or a filter to an attribute metric.
An attribute field must be assigned an alias in the Admin console before it is available for use in custom metric definitions. The attribute fields can be based on tags or imported data.
Note: A custom metric based on a click attribution metric may require additional processing time.
To create a custom attribute metric:
- In an ad hoc report, click the Metrics Edit icon. The Search metrics modal opens.
- Click Create custom metric. The Create custom metric modal opens.
- Enter a name, category, and description for the metric.
- In the Select a metric or attribute drop-down, select Attribute and then select an attribute as the base for the custom attribute metric.
- Select a format for how you want attribute data displayed:
- ($0.25) displays data in currency format.
- (25.00%) displays data in percentile format.
- (25) displays data in integer format
- (25.00)displays data in decimal format.
- Select a calculation logic for aliasing a tag attribute. The following Calculation logic options depend upon the attribute that you select:
- Text- Available options include Count and Count distinct.
- Number- Available options include Sum, Average (null=0), and Average (exclude null).
- Click Save. The custom attribute metric is available for selection in the Search metrics modal. To find custom metrics quickly in the Search metrics modal, click Custom under #Tags. To add your custom attribute metric to the report, move it to Selected metrics and then click Apply.
Edit custom metrics
You can edit custom metrics that you create. Admins can also edit your custom metrics.
If you edit a custom metric that is being used by a report, your edits are applied only to recurring reports that have not been processed. Existing reports for past dates continue to display values based on the original custom metric definition.
To edit a custom metric:
- In an ad hoc report, click the Metrics Edit icon. The Search metrics modal opens.
- Under the Metrics column, select the custom metric that you want to edit, and then click Edit. The Create custom metric modal opens.
- Review the metric configuration and change as appropriate.
- Click Save
Delete custom metrics
You can delete custom metrics that you create. Admins can also delete your custom metrics.
If you attempt to delete a custom metric that is being used by a report, a message displays, listing all the reports that use the custom metric. Reports that use the custom metric must be stopped and deleted before you can delete the custom metric.
To delete a custom metric:
- In an ad hoc report, click the Metrics Edit icon. The Search metrics modal opens.
- Under the Metrics column, select the custom metric that you want to delete, and then click Edit. The Create custom metric modal opens.
- Click Delete. A confirmation window asks you to confirm that you want to delete the metric.
- Click Yes.
Applying metrics in reports
Metrics are measurements applied to each row of a report, such as the number of page views or the number of orders placed for a product. You can use standard metrics or create your own to refine your report results.
You can apply metrics before or after you add breakouts to a new or saved report. Like breakouts, you must generate and save the report with a unique report name when applying metrics to a saved report.
Each metric has an information icon (i) that describes all standard and created metrics and calculations. Attribution metrics are grouped by metric name. Simply click the group name to expand the group of attribution metrics to view and select whichever metric you may need.
To add metrics to your report, select the Edit icon in the Metrics section of the report menu pane. The Search metrics modal opens. Select or search whichever metrics you want to restrict your data with; the information icons (i) give descriptions of each metric. When you are done selecting your metrics, select Apply, and generate your report to see the results.
Creating your own additional metrics is easy! Simply, select the calculator icon next to the Edit icon in the Metrics section of the report menu pane. The New metric pane slides open and you can select metrics and numeric calculations to your equation. Select Save to keep this new metric.
Comments
0 comments
Article is closed for comments.