/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // AUTOGENERATED BY glean_parser v14.5.2. DO NOT EDIT. DO NOT COMMIT. import LabeledMetricType from "@mozilla/glean/private/metrics/labeled"; import StringMetricType from "@mozilla/glean/private/metrics/string"; import UrlMetricType from "@mozilla/glean/private/metrics/url"; /** * The URL path of the page that was viewed. * * Generated from `page.path`. */ export const path = new UrlMetricType({ category: "page", name: "path", sendInPings: ["action", "page"], lifetime: "application", disabled: false, }); /** * The referring URL that linked to the page that was viewed. * * Generated from `page.referrer`. */ export const referrer = new UrlMetricType({ category: "page", name: "referrer", sendInPings: ["action", "page"], lifetime: "application", disabled: false, }); /** * The UTM parameters of the page, used to attribute the source of traffic: * "source": which site sent the traffic * "medium": what type of link was used * "campaign": what specific campaign or experiment does this relate to * "term": here for completeness, the search term that was purchased/bid on * "content": what specifically was clicked to bring the user to the site * * Generated from `page.utm`. */ export const utm = new LabeledMetricType( { category: "page", name: "utm", sendInPings: ["action", "page"], lifetime: "application", disabled: false, }, StringMetricType, ["campaign", "content", "medium", "source", "term"] );