{"id":81363,"date":"2020-04-22T12:38:17","date_gmt":"2020-04-22T12:38:17","guid":{"rendered":"https:\/\/www.returntrue.com\/de\/?p=81363"},"modified":"2020-04-22T12:38:17","modified_gmt":"2020-04-22T12:38:17","slug":"calculate-daily-unique-visitors-in-analysis-workspace","status":"publish","type":"post","link":"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/","title":{"rendered":"Calculate daily unique visitors in Analysis Workspace"},"content":{"rendered":"<p>The last view years, while creating thousands of reports, clients always asked for relative metrics more than absolute values. The most common of them are daily, weekly, monthly unique visitors or visit. In the past there has been a native implemented metric from Adobe called &#8222;Daily Unique Visitors&#8220; or &#8222;Monthly Unique Visitors&#8220; (and more) which are not available in the newer report sources like Analysis Workspace. So the reason for this blog post is to explain how to calculate daily unique visitors to be used in Analysis Workspace (by Adobe).<\/p>\n<h3>The issue with the legacy metric<\/h3>\n<p>The question my client asked for was &#8222;how did the amount of daily unique visitors change in the last 4 weeks?&#8220;, a time period at the start of Corona times. I tried to get that out of Analysis Workspace by using the dimension &#8222;Day&#8220; and the metric &#8222;Unique Visitors&#8220; &#8211; no problem. Then he asked for the <strong>average of daily unique visitors in the two weeks prior to a certain date<\/strong> versus the average daily unique visitors in the two weeks after the same certain date.<\/p>\n<h3>The moment calculated metrics have helped<\/h3>\n<p>The moment I got stuck in Analysis Workspace because of missing the traditional &#8222;Daily Unique Visitors&#8220;-metric. So I started to try rebuilding this metric with the <a href=\"https:\/\/docs.adobe.com\/content\/help\/en\/analytics\/components\/calculated-metrics\/calcmetric-workflow\/cm-build-metrics.html\" target=\"_blank\" rel=\"noopener noreferrer\">calculated metric builder<\/a> and found a way to success and here is how:<\/p>\n<p><em>This examples shows how to calculate daily unique visitors in a period of time (day), but it&#8217;s the same way to do for either another metric or time period.<\/em><\/p>\n<h3>How to create the calculated metric<\/h3>\n<ol>\n<li>Start building a calculated metric in Adobe Analytics<\/li>\n<li>Drag the metric &#8222;Unique Visitors&#8220; in the definition field<\/li>\n<li>Add a formula (fx) using the &#8222;Add&#8220; button<br \/>\n<img decoding=\"async\" class=\"alignnone size-medium wp-image-81364\" src=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/addFormula-300x70.png\" alt=\"Add formula to calculated metric\" width=\"300\" height=\"70\" srcset=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/addFormula-300x70.png 300w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/addFormula-1024x237.png 1024w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/addFormula-768x178.png 768w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/addFormula.png 1328w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<li>Use formula &#8222;Approximate count distinct&#8220;<br \/>\n<a href=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ApproximateCountDistinct.png\"><img decoding=\"async\" class=\"alignnone wp-image-81366 size-medium\" src=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ApproximateCountDistinct-300x99.png\" alt=\"Approximate count distinct\" width=\"300\" height=\"99\" srcset=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ApproximateCountDistinct-300x99.png 300w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ApproximateCountDistinct-1024x337.png 1024w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ApproximateCountDistinct-768x253.png 768w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ApproximateCountDistinct.png 1252w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Drop the dimension &#8222;Day&#8220; into the formula so that you have this final definition:<br \/>\n<img decoding=\"async\" class=\"alignnone size-medium wp-image-81368\" src=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/DailyUniqueVisitors-300x184.png\" alt=\"Daily Unique Visitors\" width=\"300\" height=\"184\" srcset=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/DailyUniqueVisitors-300x184.png 300w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/DailyUniqueVisitors-1024x627.png 1024w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/DailyUniqueVisitors-768x470.png 768w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/DailyUniqueVisitors.png 1330w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<\/ol>\n<p>Nothing easier than that. After you have done this, the preview stats will show the daily unique visitors per day (nothing new), but <strong>if you use this metric in Analysis Workspace for any time period greater that a single day, it will automatically build an average<\/strong>.<\/p>\n<h3>Proof of the metric in Analysis Workspace<\/h3>\n<p>I&#8217;ve opened a new Analysis Workspace with a freeform table to outline the effect of our new metric.<\/p>\n<p><a href=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ProofOfDailyUniqueVisitors.png\"><img decoding=\"async\" class=\"alignnone wp-image-81373 size-large\" src=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ProofOfDailyUniqueVisitors-1024x475.png\" alt=\"Proof Of Daily Unique Visitors\" width=\"840\" height=\"390\" srcset=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ProofOfDailyUniqueVisitors-1024x475.png 1024w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ProofOfDailyUniqueVisitors-300x139.png 300w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ProofOfDailyUniqueVisitors-768x357.png 768w, https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/ProofOfDailyUniqueVisitors.png 1202w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/a><\/p>\n<p>You might have recognized that there is a slightly difference for the values if you look at each separate day. This is because the approximated distinct count of dimension returns items for the selected dimension. The function uses the HyperLogLog (HLL) method of approximating distinct counts. It is configured to guarantee the value is within 5% of the actual value 95% of the time. That makes a count for one day not exactly 1.0. We need to deal with it.<\/p>\n<p>What we really need is the fact, that the sum of the column shows an average of daily unique visitors for the appropriate time period which makes it usable for any other dimension you want.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The last view years, while creating thousands of reports, clients always asked for relative metrics more than absolute values. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[163,164],"tags":[195,202,205,204,203],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Calculate daily unique visitors in Analysis Workspace - return true; \/\/ Digital Analytics<\/title>\n<meta name=\"description\" content=\"This articel provides you a walk-trough to rebuild the legacy metrics like daily unique visitors in Analysis Workspace by Adobe.\" \/>\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.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calculate daily unique visitors in Analysis Workspace - return true; \/\/ Digital Analytics\" \/>\n<meta property=\"og:description\" content=\"This articel provides you a walk-trough to rebuild the legacy metrics like daily unique visitors in Analysis Workspace by Adobe.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/\" \/>\n<meta property=\"og:site_name\" content=\"return true; \/\/ Digital Analytics\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-22T12:38:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/addFormula-300x70.png\" \/>\n<meta name=\"author\" content=\"Stefan Sch\u00e4fer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stefan Sch\u00e4fer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/\",\"url\":\"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/\",\"name\":\"Calculate daily unique visitors in Analysis Workspace - return true; \/\/ Digital Analytics\",\"isPartOf\":{\"@id\":\"https:\/\/www.returntrue.com\/de\/#website\"},\"datePublished\":\"2020-04-22T12:38:17+00:00\",\"dateModified\":\"2020-04-22T12:38:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.returntrue.com\/de\/#\/schema\/person\/68e3a1e862d313c233705bec258867e6\"},\"description\":\"This articel provides you a walk-trough to rebuild the legacy metrics like daily unique visitors in Analysis Workspace by Adobe.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.returntrue.com\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calculate daily unique visitors in Analysis Workspace\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.returntrue.com\/de\/#website\",\"url\":\"https:\/\/www.returntrue.com\/de\/\",\"name\":\"return true; \/\/ Digital Analytics\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.returntrue.com\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.returntrue.com\/de\/#\/schema\/person\/68e3a1e862d313c233705bec258867e6\",\"name\":\"Stefan Sch\u00e4fer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.returntrue.com\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/40ae9150dbadf476b3d8444cc99c533b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/40ae9150dbadf476b3d8444cc99c533b?s=96&d=mm&r=g\",\"caption\":\"Stefan Sch\u00e4fer\"},\"url\":\"https:\/\/www.returntrue.com\/de\/journal\/author\/rtstefan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Calculate daily unique visitors in Analysis Workspace - return true; \/\/ Digital Analytics","description":"This articel provides you a walk-trough to rebuild the legacy metrics like daily unique visitors in Analysis Workspace by Adobe.","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.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/","og_locale":"de_DE","og_type":"article","og_title":"Calculate daily unique visitors in Analysis Workspace - return true; \/\/ Digital Analytics","og_description":"This articel provides you a walk-trough to rebuild the legacy metrics like daily unique visitors in Analysis Workspace by Adobe.","og_url":"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/","og_site_name":"return true; \/\/ Digital Analytics","article_published_time":"2020-04-22T12:38:17+00:00","og_image":[{"url":"https:\/\/www.returntrue.com\/wp-content\/uploads\/2020\/04\/addFormula-300x70.png"}],"author":"Stefan Sch\u00e4fer","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Stefan Sch\u00e4fer","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/","url":"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/","name":"Calculate daily unique visitors in Analysis Workspace - return true; \/\/ Digital Analytics","isPartOf":{"@id":"https:\/\/www.returntrue.com\/de\/#website"},"datePublished":"2020-04-22T12:38:17+00:00","dateModified":"2020-04-22T12:38:17+00:00","author":{"@id":"https:\/\/www.returntrue.com\/de\/#\/schema\/person\/68e3a1e862d313c233705bec258867e6"},"description":"This articel provides you a walk-trough to rebuild the legacy metrics like daily unique visitors in Analysis Workspace by Adobe.","breadcrumb":{"@id":"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.returntrue.com\/de\/journal\/2020\/04\/calculate-daily-unique-visitors-in-analysis-workspace\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.returntrue.com\/de\/"},{"@type":"ListItem","position":2,"name":"Calculate daily unique visitors in Analysis Workspace"}]},{"@type":"WebSite","@id":"https:\/\/www.returntrue.com\/de\/#website","url":"https:\/\/www.returntrue.com\/de\/","name":"return true; \/\/ Digital Analytics","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.returntrue.com\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/www.returntrue.com\/de\/#\/schema\/person\/68e3a1e862d313c233705bec258867e6","name":"Stefan Sch\u00e4fer","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.returntrue.com\/de\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/40ae9150dbadf476b3d8444cc99c533b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/40ae9150dbadf476b3d8444cc99c533b?s=96&d=mm&r=g","caption":"Stefan Sch\u00e4fer"},"url":"https:\/\/www.returntrue.com\/de\/journal\/author\/rtstefan\/"}]}},"_links":{"self":[{"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/posts\/81363"}],"collection":[{"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/comments?post=81363"}],"version-history":[{"count":0,"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/posts\/81363\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/media?parent=81363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/categories?post=81363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.returntrue.com\/de\/wp-json\/wp\/v2\/tags?post=81363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}