{"id":6572,"date":"2024-05-05T18:42:47","date_gmt":"2024-05-05T16:42:47","guid":{"rendered":"https:\/\/chartud.io\/blog\/how-to-separate-brand-queries-in-looker-studio-with-data-from-google-search-console\/"},"modified":"2025-09-16T16:47:47","modified_gmt":"2025-09-16T14:47:47","slug":"separar-queries-marca","status":"publish","type":"post","link":"https:\/\/chartud.io\/en\/blog\/separar-queries-marca\/","title":{"rendered":"How to Separate Brand Queries in Looker Studio with Data from Google Search Console?"},"content":{"rendered":"\n<p>When we analyze data from <a href=\"https:\/\/chartud.io\/en\/template\/search-console\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Search Console<\/a>, queries are fundamental. Clicks, impressions, average position, CTR&#8230; And there is something that is often not done: separating branding terms from non-branding terms in the analyses.  <\/p>\n\n\n\n<p>In this brief tutorial, I am going to explain how you can <strong>do it in several ways<\/strong> in Looker Studio.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Creating a custom dimension<\/li>\n\n\n\n<li>Creating <a href=\"https:\/\/chartud.io\/en\/blog\/creation-filters-predefined-buttons-looker-studio\/\" target=\"_blank\" rel=\"noreferrer noopener\">predefined boolean filters<\/a> in buttons<\/li>\n\n\n\n<li>With filters directly in graphs<\/li>\n<\/ol>\n\n\n\n<p>And also at the end of the post I leave you a video so you can see how it&#8217;s done.<\/p>\n\n\n\n<p class=\"has-text-align-center has-medium-font-size\" style=\"border-style:none;border-width:0px;border-radius:10px;margin-top:13px;margin-right:13px;margin-bottom:13px;margin-left:13px;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\">\ud83d\udc49<a href=\"https:\/\/chartud.io\/en\/blog\/amazing-free-and-paid-looker-studio-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Check out our selection of Looker Studio templates<\/strong><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Separate Branding Queries with a Custom Dimension or Field.<\/h2>\n\n\n\n<p>If what we want is to <strong>visualize the data related to brand keywords<\/strong> from those that are not, in table, circular, bar type graphs&#8230; Clearly seeing the data of the metric we want (clicks, impressions, ctr, average position) for each type of queries, this is the best way. <\/p>\n\n\n\n<p>Creating a <strong>custom field<\/strong> will give you more versatility when creating graphs using this comparison. <\/p>\n\n\n\n<p>Also, keep in mind that once you create the custom field you can <strong>use it whenever you want in that report<\/strong>, like any other dimension.<\/p>\n\n\n\n<p>In this image we see 2 tables. In the first one we are seeing separately the clicks on terms that are not brand (non-brand) and those of brand (brand). <\/p>\n\n\n\n<p>In the <strong>second table<\/strong> we see the queries but also using a second dimension, which is the custom field that we are going to create.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"457\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/quieries-marca.png\" alt=\"\" class=\"wp-image-3586\" srcset=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/quieries-marca.png 730w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/quieries-marca-300x188.png 300w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/quieries-marca-500x313.png 500w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>In both tables the new dimension comes into play.<\/p>\n\n\n\n<p><strong>Steps to create this custom field:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the Data section, click on <strong>\u201cAdd a field\u201d<\/strong> &gt; <strong>Add calculated field<\/strong><\/li>\n\n\n\n<li>Put the name of the field. For example <strong>\u201cBrand vs non-brand\u201d<\/strong> <\/li>\n\n\n\n<li>In the formula, enter the formula that you will see a couple of lines below.<\/li>\n\n\n\n<li>Enter in the formula the different variants of your brand name. I recommend that you check in Search Console how they search for your brand (sometimes you are surprised). <\/li>\n\n\n\n<li>Click on Save<\/li>\n\n\n\n<li>Select the custom dimension in the graph you want.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"163\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/custom-field-looker-studio.png\" alt=\"\" class=\"wp-image-3588\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"333\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/formula-separar-queries-brand-1024x333.png\" alt=\"\" class=\"wp-image-3587\" srcset=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/formula-separar-queries-brand-1024x333.png 1024w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/formula-separar-queries-brand-300x98.png 300w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/formula-separar-queries-brand-768x250.png 768w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/formula-separar-queries-brand-500x163.png 500w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/formula-separar-queries-brand.png 1470w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This is the formula you can use:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-117b2196dc3a392a6739705930fc85d0\">CASE<br> WHEN REGEXP_MATCH(Query, \u201c.*brand name.*|.*brandname.com.*|.*variation.*|.*variation2.*\u201d) THEN \u201cBrand\u201d<br> ELSE \u201cNon-Brand\u201d<br>END<\/pre>\n\n\n\n<p>Note that in this case the formula contains \u201cRegexp_match\u201d, that is, we ask it to match those variants.<\/p>\n\n\n\n<p>Another way to do it is with regexp_contains. In this way we tell it to contain what we indicate. For example:  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-5dc7dd45f2037edbd25c348ccb750fba\">CASE<br> WHEN REGEXP_CONTAINS(Query, \u201cchartud\u201d) THEN \u201cBrand\u201d<br> ELSE \u201cNon-Brand\u201d<br>END<\/pre>\n\n\n\n<p>This way we get that if someone searches for \u201cchartudio\u201d or \u201cchartud.io\u201d it also includes it.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating Predefined Boolean Filters in Buttons<\/h2>\n\n\n\n<p>This way of doing it is especially good when we have a series of data represented in different graphs and we want to filter them at a certain moment.<\/p>\n\n\n\n<p>For example, in this set I want to filter at a given moment by brand queries, or on the contrary only by queries that are not brand. In addition, being able to activate and deactivate that \u201cfilter\u201d when I want. <\/p>\n\n\n\n<p>We are going to do it by means of a button, which we can find in the upper bar &gt; <strong>Add a control<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"116\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/boton-looker-studio.png\" alt=\"\" class=\"wp-image-3589\"\/><\/figure>\n\n\n\n<p>In this button we are going to create a custom field as a \u201ccontrol field\u201d.<\/p>\n\n\n\n<p>It must be of type <a href=\"https:\/\/www.mclibre.org\/consultar\/python\/lecciones\/python-booleanos.html\" target=\"_blank\" rel=\"noopener\">\u201cboolean\u201d<\/a> so first we are going to <strong>create a button for brand queries<\/strong> and <strong>another for those that are not.<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Enter the name.<\/li>\n\n\n\n<li>In the formula use the formula that I leave you below and put the name of your brand.<\/li>\n\n\n\n<li>Click on Apply.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"465\" height=\"353\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/brandqueries.png\" alt=\"\" class=\"wp-image-3590\" srcset=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/brandqueries.png 465w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/brandqueries-300x228.png 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/figure>\n\n\n\n<p>Formula:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-b411026630e27368e91d860df1b78be6\">REGEXP_CONTAINS(Query, \u201cchartud\u201d)<\/pre>\n\n\n\n<p>Remember that as before, you can use regexp_contains or regexp_match depending on what you need. <\/p>\n\n\n\n<p><strong>My advice?<\/strong> Analyze how they search for you and do tests.<\/p>\n\n\n\n<p>I leave you this article where you have <a href=\"https:\/\/support.google.com\/looker-studio\/answer\/10496674?hl=es\" target=\"_blank\" rel=\"noreferrer noopener\">regular expressions that you can use in Looker Studio.<\/a><\/p>\n\n\n\n<p>Another aspect to take into account when creating these buttons are the groups.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"304\" height=\"224\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/supasnap-2024-05-05-18.14.31.png\" alt=\"\" class=\"wp-image-3591\" srcset=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/supasnap-2024-05-05-18.14.31.png 304w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/05\/supasnap-2024-05-05-18.14.31-300x221.png 300w\" sizes=\"auto, (max-width: 304px) 100vw, 304px\" \/><\/figure>\n\n\n\n<p>The groups serve to be able to use buttons that filter within the same scope correctly. <\/p>\n\n\n\n<p>For example, if I want to see first the data filtered by brand keywords and then the opposite, if I group the two buttons in group 1, for example, when I activate one, the other will be deactivated.<\/p>\n\n\n\n<p>This will allow you to filter saving clicks and without giving you errors. <\/p>\n\n\n\n<p>Now you will have to repeat the same process. Create a new button and this time enter the formula: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-ad2a2ca2646b8d3b9216354b24091653\">NOT REGEXP_CONTAINS(Query, \u201cchartud\u201d)<\/pre>\n\n\n\n<p>Or the own one but with regexp_match.<\/p>\n\n\n\n<p>Now you will have the two buttons ready to separate your brand keywords from those that are not.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">With filters directly in graphs<\/h2>\n\n\n\n<p>This way is simpler than the previous two. <\/p>\n\n\n\n<p>I&#8217;m not going to tell you about it here. You can see it in the video where I show you the 3 different ways to do it: <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"C\u00f3mo separar queries de marca del resto en Search Console y Looker Studio\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/rhEyO9AsyUo?feature=oembed&#038;enablejsapi=1&#038;origin=https:\/\/chartud.io\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Whenever you work with <a href=\"https:\/\/chartud.io\/en\/template\/seo-dashboards\/\" target=\"_blank\" rel=\"noreferrer noopener\">SEO reports or dashboards<\/a>, keep in mind the importance of separating brand queries from those that are not in order to have a more effective and truthful analysis.<\/p>\n\n\n\n<p><strong>Most downloaded templates:<\/strong><\/p>\n\n\n<div data-block-name=\"woocommerce\/product-best-sellers\" data-content-visibility=\"{&quot;image&quot;:true,&quot;title&quot;:true,&quot;price&quot;:false,&quot;rating&quot;:false,&quot;button&quot;:false}\" data-rows=\"1\" class=\"wc-block-grid wp-block-product-best-sellers wp-block-woocommerce-product-best-sellers wc-block-product-best-sellers has-3-columns\"><ul class=\"wc-block-grid__products\"><li class=\"wc-block-grid__product\"><span class=\"gtm4wp_productdata\" style=\"display:none; visibility:hidden;\" data-gtm4wp_product_data=\"{&quot;internal_id&quot;:6690,&quot;item_id&quot;:6690,&quot;item_name&quot;:&quot;Complete GA4 Ecommerce Dashboard + Funnel&quot;,&quot;sku&quot;:6690,&quot;price&quot;:116.51,&quot;stocklevel&quot;:null,&quot;stockstatus&quot;:&quot;instock&quot;,&quot;google_business_vertical&quot;:&quot;retail&quot;,&quot;item_category&quot;:&quot;Google Analytics 4&quot;,&quot;id&quot;:6690,&quot;productlink&quot;:&quot;https:\\\/\\\/chartud.io\\\/en\\\/report\\\/google-analytics-4-ecommerce-funnel-report\\\/&quot;,&quot;item_list_name&quot;:&quot;General Product List&quot;,&quot;index&quot;:0,&quot;product_type&quot;:&quot;simple&quot;,&quot;item_brand&quot;:&quot;&quot;}\"><\/span>\n\t\t\t\t<a href=\"https:\/\/chartud.io\/en\/report\/google-analytics-4-ecommerce-funnel-report\/\" class=\"wc-block-grid__product-link\">\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"wc-block-grid__product-image\"><img loading=\"lazy\" decoding=\"async\" width=\"250\" height=\"250\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2023\/10\/dashboard-ecommerce-funnel-google-analytics-4-english-2-250x250.png\" class=\"attachment-woocommerce_thumbnail size-woocommerce_thumbnail\" alt=\"looker studio template ecommerce funnel\" srcset=\"https:\/\/chartud.io\/wp-content\/uploads\/2023\/10\/dashboard-ecommerce-funnel-google-analytics-4-english-2-250x250.png 250w, https:\/\/chartud.io\/wp-content\/uploads\/2023\/10\/dashboard-ecommerce-funnel-google-analytics-4-english-2-150x150.png 150w, https:\/\/chartud.io\/wp-content\/uploads\/2023\/10\/dashboard-ecommerce-funnel-google-analytics-4-english-2-100x100.png 100w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/div>\n\t\t\t\t\t<div class=\"wc-block-grid__product-title\">Complete GA4 Ecommerce Dashboard + Funnel<\/div>\n\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/li><li class=\"wc-block-grid__product\"><span class=\"gtm4wp_productdata\" style=\"display:none; visibility:hidden;\" data-gtm4wp_product_data=\"{&quot;internal_id&quot;:6670,&quot;item_id&quot;:6670,&quot;item_name&quot;:&quot;Dashboard All in one SEO Local for clients (GA+GSC+GBP)&quot;,&quot;sku&quot;:6670,&quot;price&quot;:113.71,&quot;stocklevel&quot;:null,&quot;stockstatus&quot;:&quot;instock&quot;,&quot;google_business_vertical&quot;:&quot;retail&quot;,&quot;item_category&quot;:&quot;Local SEO&quot;,&quot;id&quot;:6670,&quot;productlink&quot;:&quot;https:\\\/\\\/chartud.io\\\/en\\\/report\\\/complete-local-seo-dashboard\\\/&quot;,&quot;item_list_name&quot;:&quot;General Product List&quot;,&quot;index&quot;:0,&quot;product_type&quot;:&quot;simple&quot;,&quot;item_brand&quot;:&quot;&quot;}\"><\/span>\n\t\t\t\t<a href=\"https:\/\/chartud.io\/en\/report\/complete-local-seo-dashboard\/\" class=\"wc-block-grid__product-link\">\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"wc-block-grid__product-image\"><img loading=\"lazy\" decoding=\"async\" width=\"250\" height=\"250\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/03\/dashboard-seo-local-report-250x250.png\" class=\"attachment-woocommerce_thumbnail size-woocommerce_thumbnail\" alt=\"Dashboard All in one SEO Local for clients (GA+GSC+GBP)\" srcset=\"https:\/\/chartud.io\/wp-content\/uploads\/2024\/03\/dashboard-seo-local-report-250x250.png 250w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/03\/dashboard-seo-local-report-150x150.png 150w, https:\/\/chartud.io\/wp-content\/uploads\/2024\/03\/dashboard-seo-local-report-100x100.png 100w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/div>\n\t\t\t\t\t<div class=\"wc-block-grid__product-title\">Dashboard All in one SEO Local for clients (GA+GSC+GBP)<\/div>\n\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/li><li class=\"wc-block-grid__product\"><span class=\"gtm4wp_productdata\" style=\"display:none; visibility:hidden;\" data-gtm4wp_product_data=\"{&quot;internal_id&quot;:6692,&quot;item_id&quot;:6692,&quot;item_name&quot;:&quot;Full local SEO report (GBP+GA4) Free Connector&quot;,&quot;sku&quot;:6692,&quot;price&quot;:93.19,&quot;stocklevel&quot;:null,&quot;stockstatus&quot;:&quot;instock&quot;,&quot;google_business_vertical&quot;:&quot;retail&quot;,&quot;item_category&quot;:&quot;Local SEO&quot;,&quot;id&quot;:6692,&quot;productlink&quot;:&quot;https:\\\/\\\/chartud.io\\\/en\\\/report\\\/dashboard-completo-seo-local\\\/&quot;,&quot;item_list_name&quot;:&quot;General Product List&quot;,&quot;index&quot;:0,&quot;product_type&quot;:&quot;simple&quot;,&quot;item_brand&quot;:&quot;&quot;}\"><\/span>\n\t\t\t\t<a href=\"https:\/\/chartud.io\/en\/report\/dashboard-completo-seo-local\/\" class=\"wc-block-grid__product-link\">\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"wc-block-grid__product-image\"><img loading=\"lazy\" decoding=\"async\" width=\"250\" height=\"250\" src=\"https:\/\/chartud.io\/wp-content\/uploads\/2023\/09\/informe-looker-studio-seo-local-google-250x250.png\" class=\"attachment-woocommerce_thumbnail size-woocommerce_thumbnail\" alt=\"Looker Studio local SEO report with Google Business profile and Google Analytics\" srcset=\"https:\/\/chartud.io\/wp-content\/uploads\/2023\/09\/informe-looker-studio-seo-local-google-250x250.png 250w, https:\/\/chartud.io\/wp-content\/uploads\/2023\/09\/informe-looker-studio-seo-local-google-150x150.png 150w, https:\/\/chartud.io\/wp-content\/uploads\/2023\/09\/informe-looker-studio-seo-local-google-100x100.png 100w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/div>\n\t\t\t\t\t<div class=\"wc-block-grid__product-title\">Full local SEO report (GBP+GA4) Free Connector<\/div>\n\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>When we analyze data from Google Search Console, queries are fundamental. Clicks, impressions, average position, CTR&#8230; And there is something that is often not done: separating branding terms from non-branding terms in the analyses. In this brief tutorial, I am going to explain how you can do it in several ways in Looker Studio. And [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":6302,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6572","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sin-categoria"],"_links":{"self":[{"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/posts\/6572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/comments?post=6572"}],"version-history":[{"count":2,"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/posts\/6572\/revisions"}],"predecessor-version":[{"id":7231,"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/posts\/6572\/revisions\/7231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/media\/6302"}],"wp:attachment":[{"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/media?parent=6572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/categories?post=6572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chartud.io\/en\/wp-json\/wp\/v2\/tags?post=6572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}