{"id":8997,"date":"2017-08-31T11:58:31","date_gmt":"2017-08-31T11:58:31","guid":{"rendered":"http:\/\/www.certificationanswers.com\/?p=8997"},"modified":"2017-09-01T13:09:35","modified_gmt":"2017-09-01T13:09:35","slug":"which-of-these-is-a-scope-for-custom-metrics","status":"publish","type":"post","link":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/","title":{"rendered":"Which of these is a scope for Custom Metrics?"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Which of these is a scope for Custom Metrics?<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\">Session<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\">Event<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #008000;\"><strong>Hit<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\">User<\/p>\n<p>&nbsp;<\/p>\n<p>Explanation:<\/p>\n<p>Similar to custom dimensions, custom metrics can have different scopes. Hit-level custom metrics get associated with all the hit level dimensions with which it was sent. Similarly, product-level custom metrics are associated only with the product with which it was sent. The following examples illustrate these two types of custom metrics.<\/p>\n<p>Read more here: <a href=\"https:\/\/support.google.com\/analytics\/answer\/2709828#scope\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/support.google.com\/analytics\/answer\/2709828#scope<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Scope determines which hits will be associated with a particular custom dimension value. There are four levels of scope:\u00a0<strong>product<\/strong>,\u00a0<strong>hit<\/strong>,\u00a0<strong>session<\/strong>, and\u00a0<strong>user<\/strong>:<\/p>\n<ul>\n<li><strong>Product\u00a0<\/strong>\u2013 value is applied to the product for which it has been set (Enhanced Ecommerce only).<\/li>\n<li><strong>Hit\u00a0<\/strong>\u2013 value is applied to the single hit for which it has been set.<\/li>\n<li><strong>Session\u00a0<\/strong>\u2013 value is applied to all hits in a single session.<\/li>\n<li><strong>User\u00a0<\/strong>\u2013 value is applied to all hits in current and future sessions, until value changes or custom dimension is made inactive.<\/li>\n<\/ul>\n<p><strong>Product-level scope<\/strong><\/p>\n<p>When a custom dimension has product-level scope, the value is only applied to the product with which the value is set. Because multiple products can be sent in a single hit, multiple product-level scoped custom dimensions can be sent in a single hit.<\/p>\n<p><strong>Hit-level scope<\/strong><\/p>\n<p>When a custom dimension has hit-level scope, the value is only applied to the hit with which the value was set. This is demonstrated in\u00a0<strong>Figure A<\/strong>,\u00a0<strong>Figure B<\/strong>, and\u00a0<strong>Figure C<\/strong>\u00a0below:<\/p>\n<figure><figcaption><em><strong>Figure A:<\/strong>\u00a0User sends two hits (H1, H2). H2 has a CD1 value of A. That value is only applied to H2.<\/em><\/figcaption><\/figure>\n<figure><figcaption><em><strong>Figure B:<\/strong>\u00a0User sends a third hit (H3). H3 has no CD value.<\/em><\/figcaption><\/figure>\n<figure><figcaption><em><strong>Figure C:<\/strong>\u00a0User sends a fourth hit (H4). H4 has a CD1 value of B. That value is only applied to H4.<\/em><\/figcaption><\/figure>\n<p><strong>Session-level scope<\/strong><\/p>\n<p>When two values with session scope are set at the same index in a session, the last value set gets precedence and is applied to all hits in that session. In\u00a0<strong>Figure D<\/strong>\u00a0below, the latest value set overwrites any previous values for that index:<\/p>\n<figure><figcaption><em><strong>Figure A:<\/strong>\u00a0User sends a hit (H1) with no CD value.<\/em><\/figcaption><\/figure>\n<figure><figcaption><em><strong>Figure B:<\/strong>\u00a0In the same session, user sends a second hit (H2) with CD1 value set to A. Session scope causes value A to also be applied to H1.<\/em><\/figcaption><\/figure>\n<figure><figcaption><em><strong>Figure C:<\/strong>\u00a0User sends a third hit (H3). Although no CD1 value is sent with H3, session scope causes value A to be automatically applied to H3.<\/em><\/figcaption><\/figure>\n<figure><figcaption><em><strong>Figure D:<\/strong>\u00a0User sends a fourth hit (H4) with a new CD1 value B. Session-scope applies value B to all the hits in the session, overwriting value A in the previous hits.<\/em><\/figcaption><\/figure>\n<p><strong>User-level scope<\/strong><\/p>\n<p>Lastly, if two user-scoped custom dimension values are set within the same session, the last value set gets precedence for the current session, and is applied to future sessions for that user.<\/p>\n<p>In\u00a0<strong>Figure B<\/strong>\u00a0below, CD value A is applied to all hits in session 2, just like a session-level CD. However in\u00a0<strong>Figure C<\/strong>, unlike with session-level scope, the CD value A continues to be applied to hits in the third session due to CD1 having user-level scope:<\/p>\n<figure><figcaption><em><strong>Figure A:<\/strong>\u00a0User shas a session with three hits (H1, H2, H3). No CD values are set.<\/em><\/figcaption><\/figure>\n<figure><figcaption><em><strong>Figure B:<\/strong>\u00a0The same user returns and has another session, with three more hits. CD1 value is set to A on H3. CD1 value is then applied to all hits in session.<\/em><\/figcaption><\/figure>\n<figure><figcaption><em><strong>Figure C:<\/strong>\u00a0User returns for a third session with three more hits. CD1&#8217;s user-level scope causes value A to be applied to all hits in session 3.<\/em><\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>https:\/\/www.youtube.com\/watch?v=papRR_s4Pio<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Which of these is a scope for Custom Metrics? &nbsp; Session &nbsp; Event &nbsp; Hit &nbsp; User &nbsp; Explanation: Similar to custom dimensions, custom metrics can have different scopes. Hit-level custom metrics get associated with all the hit level dimensions with which it was sent. Similarly, product-level custom metrics are associated only with the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[38,30],"tags":[],"class_list":{"0":"post-8997","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-google-analytics-certification","7":"category-uncategorized-en","8":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u25b7\u2764\ufe0fWhich of these is a scope for Custom Metrics? - Certification Answers<\/title>\n<meta name=\"description\" content=\"Get the answer of \u23e9Which of these is a scope for Custom Metrics? \u2705\u25b7\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u25b7\u2764\ufe0fWhich of these is a scope for Custom Metrics? - Certification Answers\" \/>\n<meta property=\"og:description\" content=\"Get the answer of \u23e9Which of these is a scope for Custom Metrics? \u2705\u25b7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/\" \/>\n<meta property=\"og:site_name\" content=\"Certification Answers\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-31T11:58:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-09-01T13:09:35+00:00\" \/>\n<meta name=\"author\" content=\"CertificationAnswers\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CertificationAnswers\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/\"},\"author\":{\"name\":\"CertificationAnswers\",\"@id\":\"https:\/\/www.certificationanswers.com\/en\/#\/schema\/person\/0a9c7c94ef30c652c609d82ce40c0f22\"},\"headline\":\"Which of these is a scope for Custom Metrics?\",\"datePublished\":\"2017-08-31T11:58:31+00:00\",\"dateModified\":\"2017-09-01T13:09:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/\"},\"wordCount\":628,\"articleSection\":[\"Google Analytics Individual Qualification Exam Answers\",\"Uncategorized @en\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/\",\"url\":\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/\",\"name\":\"\u25b7\u2764\ufe0fWhich of these is a scope for Custom Metrics? - Certification Answers\",\"isPartOf\":{\"@id\":\"https:\/\/www.certificationanswers.com\/en\/#website\"},\"datePublished\":\"2017-08-31T11:58:31+00:00\",\"dateModified\":\"2017-09-01T13:09:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.certificationanswers.com\/en\/#\/schema\/person\/0a9c7c94ef30c652c609d82ce40c0f22\"},\"description\":\"Get the answer of \u23e9Which of these is a scope for Custom Metrics? \u2705\u25b7\",\"breadcrumb\":{\"@id\":\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.certificationanswers.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Analytics Individual Qualification Exam Answers\",\"item\":\"https:\/\/www.certificationanswers.com\/en\/category\/google-analytics-certification\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Which of these is a scope for Custom Metrics?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.certificationanswers.com\/en\/#website\",\"url\":\"https:\/\/www.certificationanswers.com\/en\/\",\"name\":\"Certification Answers\",\"description\":\"We help you to pass your exams\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.certificationanswers.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.certificationanswers.com\/en\/#\/schema\/person\/0a9c7c94ef30c652c609d82ce40c0f22\",\"name\":\"CertificationAnswers\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.certificationanswers.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/504682f79dcfd661f7d78a7b3ffbf7b900ae0b7897547f4e795ee7b622afe03a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/504682f79dcfd661f7d78a7b3ffbf7b900ae0b7897547f4e795ee7b622afe03a?s=96&d=mm&r=g\",\"caption\":\"CertificationAnswers\"},\"url\":\"https:\/\/www.certificationanswers.com\/en\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u25b7\u2764\ufe0fWhich of these is a scope for Custom Metrics? - Certification Answers","description":"Get the answer of \u23e9Which of these is a scope for Custom Metrics? \u2705\u25b7","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/","og_locale":"en_US","og_type":"article","og_title":"\u25b7\u2764\ufe0fWhich of these is a scope for Custom Metrics? - Certification Answers","og_description":"Get the answer of \u23e9Which of these is a scope for Custom Metrics? \u2705\u25b7","og_url":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/","og_site_name":"Certification Answers","article_published_time":"2017-08-31T11:58:31+00:00","article_modified_time":"2017-09-01T13:09:35+00:00","author":"CertificationAnswers","twitter_card":"summary_large_image","twitter_misc":{"Written by":"CertificationAnswers","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/#article","isPartOf":{"@id":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/"},"author":{"name":"CertificationAnswers","@id":"https:\/\/www.certificationanswers.com\/en\/#\/schema\/person\/0a9c7c94ef30c652c609d82ce40c0f22"},"headline":"Which of these is a scope for Custom Metrics?","datePublished":"2017-08-31T11:58:31+00:00","dateModified":"2017-09-01T13:09:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/"},"wordCount":628,"articleSection":["Google Analytics Individual Qualification Exam Answers","Uncategorized @en"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/","url":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/","name":"\u25b7\u2764\ufe0fWhich of these is a scope for Custom Metrics? - Certification Answers","isPartOf":{"@id":"https:\/\/www.certificationanswers.com\/en\/#website"},"datePublished":"2017-08-31T11:58:31+00:00","dateModified":"2017-09-01T13:09:35+00:00","author":{"@id":"https:\/\/www.certificationanswers.com\/en\/#\/schema\/person\/0a9c7c94ef30c652c609d82ce40c0f22"},"description":"Get the answer of \u23e9Which of these is a scope for Custom Metrics? \u2705\u25b7","breadcrumb":{"@id":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.certificationanswers.com\/en\/which-of-these-is-a-scope-for-custom-metrics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.certificationanswers.com\/en\/"},{"@type":"ListItem","position":2,"name":"Google Analytics Individual Qualification Exam Answers","item":"https:\/\/www.certificationanswers.com\/en\/category\/google-analytics-certification\/"},{"@type":"ListItem","position":3,"name":"Which of these is a scope for Custom Metrics?"}]},{"@type":"WebSite","@id":"https:\/\/www.certificationanswers.com\/en\/#website","url":"https:\/\/www.certificationanswers.com\/en\/","name":"Certification Answers","description":"We help you to pass your exams","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.certificationanswers.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.certificationanswers.com\/en\/#\/schema\/person\/0a9c7c94ef30c652c609d82ce40c0f22","name":"CertificationAnswers","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.certificationanswers.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/504682f79dcfd661f7d78a7b3ffbf7b900ae0b7897547f4e795ee7b622afe03a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/504682f79dcfd661f7d78a7b3ffbf7b900ae0b7897547f4e795ee7b622afe03a?s=96&d=mm&r=g","caption":"CertificationAnswers"},"url":"https:\/\/www.certificationanswers.com\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/posts\/8997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/comments?post=8997"}],"version-history":[{"count":0,"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/posts\/8997\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/media?parent=8997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/categories?post=8997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.certificationanswers.com\/en\/wp-json\/wp\/v2\/tags?post=8997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}