google_search_console
Functions for use with Google Search Console data.
classify_site_query (UDF)
Classify a Google search query for a site as "Anonymized", "Firefox Brand", "Pocket Brand", "Mozilla Brand", or "Non-Brand".
Parameters
INPUTS
site_domain_name STRING, query STRING, search_type STRING
OUTPUTS
STRING
extract_url_country_code (UDF)
Extract the country code from a URL if it's present.
Parameters
INPUTS
url STRING
OUTPUTS
STRING
extract_url_domain_name (UDF)
Extract the domain name from a URL.
Parameters
INPUTS
url STRING
OUTPUTS
STRING
extract_url_language_code (UDF)
Extract the language code from a URL if it's present.
Parameters
INPUTS
url STRING
OUTPUTS
STRING
extract_url_locale (UDF)
Extract the locale from a URL if it's present.
Parameters
INPUTS
url STRING
OUTPUTS
STRING
extract_url_path (UDF)
Extract the path from a URL.
Parameters
INPUTS
url STRING
OUTPUTS
STRING
extract_url_path_segment (UDF)
Extract a particular path segment from a URL.
Parameters
INPUTS
url STRING, segment_number INTEGER
OUTPUTS
STRING