<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Uttam Deb on Medium]]></title>
        <description><![CDATA[Stories by Uttam Deb on Medium]]></description>
        <link>https://medium.com/@uttamdeb670?source=rss-6e5d2bf1d5d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OZjQqBcQfRYB7ugB23n3mw.jpeg</url>
            <title>Stories by Uttam Deb on Medium</title>
            <link>https://medium.com/@uttamdeb670?source=rss-6e5d2bf1d5d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:59:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@uttamdeb670/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AI Voice Agents Part 1: The Story of Two Approaches]]></title>
            <link>https://medium.com/@uttamdeb670/ai-voice-agents-part-1-the-story-of-two-approaches-297d68ac7855?source=rss-6e5d2bf1d5d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/297d68ac7855</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent-development]]></category>
            <category><![CDATA[ai-voice-synthesis]]></category>
            <category><![CDATA[ai-voice-generator]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Uttam Deb]]></dc:creator>
            <pubDate>Sun, 03 Aug 2025 16:13:20 GMT</pubDate>
            <atom:updated>2025-08-03T16:13:20.808Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>When you wake up in the morning and casually ask, “Hey Siri, what’s the weather like today?” or tell Alexa to play your favorite song, there’s a complex yet fascinating chain of technologies working behind the scenes. We’ve come to take for granted how effortlessly we interact with AI voice agents, but have you ever stopped to wonder exactly what’s happening when these interactions take place?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0MpLmJay1zRZ9A9PhhW9ug.png" /><figcaption>Illustration by author using 4o Image Generation</figcaption></figure><p>Today, let’s dive into the hidden world behind your everyday voice assistants. Specifically, we’ll explore two primary methodologies that power these intelligent agents: the<strong> Speech-to-Text → Large Language Model → Text-to-Speech (STT-LLM-TTS)</strong> pipeline, and the more innovative real-time or streaming voice approach. Both have their own strengths, challenges, and unique scenarios where they shine.</p><blockquote><strong>Visit: </strong><a href="http://uttamdeb.com/"><strong>www.uttamdeb.com</strong></a><strong> for more similar deep-dives!</strong></blockquote><p>Let’s embark on this AI voice agent deep-down together.</p><h3>The Traditional Path (STT-LLM-TTS)</h3><p>Our journey begins with the approach most of us have interacted with extensively, the STT-LLM-TTS pipeline. Imagine you’re asking your digital assistant, “What’s on my calendar today?” As soon as your voice hits the microphone, your spoken words start traveling through a multi-step process.</p><p>First, the assistant uses Speech-to-Text (STT) technology, perhaps powered by OpenAI’s Whisper or Google’s Cloud Speech, to translate your voice into written words. Next, this transcribed text (“What’s on my calendar today?”) is handed over to a powerful <strong>Large Language Model (LLM)</strong>, like GPT-4 or Google’s Gemini. The model quickly understands your intent, checks your linked accounts, finds your events for the day, and formulates an articulate response.</p><blockquote>LET’S TALK: CONNECT WITH ME ON <a href="https://www.linkedin.com/in/uttam-deb/"><strong><em>LINKEDIN</em></strong></a></blockquote><p>But words alone won’t suffice, so the final stage comes into play: Text-to-Speech (TTS) technology, such as OpenAI’s TTS or Eleven Labs, converts this carefully crafted textual answer back into audio. Moments later, your smart phone responds naturally: “You have a team meeting at 10 AM, lunch with Sarah at noon, and yoga class at 6 PM.”</p><p>Beyond these three steps, it is important that we talk about two additional micro agents. <strong>Voice Activity Detector (VAD)</strong> and <strong>Semantic Turn Detector (STD)</strong>, both of which are classification models used to detect the presence of human voice in audio streams and detect intentional/unintentional pauses, respectively. One could also implement <strong>Active Noise Cancellation (ANC)</strong> or even <strong>Background Voice Cancellation (BVC)</strong> for advanced noise filtering. While this seems instantaneous, there’s a hidden reality here. Because the process involves three distinct stages, each adds a small delay, typically around one second or slightly more. This delay is usually acceptable in casual interactions, but it might start feeling cumbersome during rapid exchanges or lengthy conversations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c4UHDxrW7GtHotQtCj8-jg.png" /><figcaption>Image Concept: DeepLearning.AI</figcaption></figure><p>Nevertheless, this pipeline-based approach is popular for a reason. Companies prefer the modularity it offers, upgrading or swapping out any one component (STT, LLM, or TTS) becomes straightforward. Moreover, its transparency makes debugging and refining responses easier, allowing developers to understand and improve each stage individually.</p><p>Major voice assistant services like Alexa, Siri, and Google Assistant are built around this pipeline model, trusted for stability, reliability, and accessibility of mature APIs and cloud services.</p><blockquote><strong><em>IF YOU LIKE WHAT YOU READ, CONSIDER FOLLOWING ME ON MEDIUM! 🥳</em></strong></blockquote><p>Nevertheless, this pipeline-based approach is popular for a reason. Companies prefer the modularity it offers, upgrading or swapping out any one component (STT, LLM, or TTS) becomes straightforward. Moreover, its transparency makes debugging and refining responses easier, allowing developers to understand and improve each stage individually.</p><p>Major voice assistant services like Alexa, Siri, and Google Assistant are built around this pipeline model, trusted for stability, reliability, and accessibility of mature APIs and cloud services.</p><h3>Breaking the Barriers with Real-Time Voice Interaction</h3><p>As voice technology has matured, a new methodology has emerged, seeking to overcome the inherent delays and stepwise limitations of the STT-LLM-TTS pipeline. Meet the “Real-Time Voice Interaction” approach, an innovative leap toward truly seamless conversations.</p><p>Picture yourself practicing English with a conversational AI language tutor, like Loora AI or ELSA Speak. You speak a sentence, perhaps you’re asking a virtual barista, “Could I have a cappuccino, please?” Before you even finish uttering your sentence, the AI agent has already started interpreting your speech directly from audio streams, understanding context, intent, and even anticipating your request. Immediately, without noticeable pause, it replies warmly: “Of course! Would you like that with almond milk or regular?”</p><p>OpenAI’s Realtime API <strong>(</strong><strong>gpt-4o-realtime-preview) </strong>supports streaming speech-to-speech via WebRTC with typical response latencies below 300 ms which is suitable for immersive dialogs. This approach doesn&#39;t explicitly separate speech recognition, response generation, and speech synthesis into individual steps. Instead, it employs a sophisticated, unified neural network architecture that directly processes audio data as it streams in, seamlessly translating spoken input to audio output in real time.</p><p>This subtle but significant shift eliminates the characteristic pauses or unnatural delays common in pipeline approaches. Conversations feel fluid, natural, almost indistinguishable from human interactions, ideal for scenarios like language learning, immersive gaming, or interactive customer service agents.</p><p>But as with any new technology, there are trade-offs. Real-time interaction demands substantial computational resources and optimized hardware (powerful GPUs or TPUs). It’s also trickier to debug, unlike pipeline systems, there aren’t clear-cut intermediate text stages to inspect easily.</p><p>Still, forward-thinking applications like Loora AI, ELSA Speak, and some experimental real-time gaming NPCs demonstrate the profound potential of real-time voice agents, pushing the boundaries of AI conversational realism.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DrS6PdEzIJmklzYKeYDDdg.png" /><figcaption>Image Concept: DeepLearning.AI</figcaption></figure><h3>Making the Right Choice and A Matter of Timing</h3><p>Given these two approaches, how do developers decide which one to use?</p><p>One of the prime factors is Latency. The delay between the user’s input and the system’s response (also known as Time to First Byte, TTFB) is a crucial factor differentiating these approaches:</p><ul><li><strong>STT-LLM-TTS Latency:</strong> TTS synthesis (e.g., Eleven Labs Flash at ≈75 ms) and network hops push total turnaround often into the 500 ms–2 s window for full STT→LLM→TTS cycles depending on network, model complexity, and infrastructure optimization.</li><li><strong>Real-Time Voice Agent Latency: </strong>Usually below 300 ms, significantly improving user experience in conversational scenarios.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4hXpo-MnoHmrdxU7AJw6mg.png" /><figcaption>Image Concept: DeepLearning.AI</figcaption></figure><p>For highly interactive use cases like language tutoring, gaming, or real-time assistance, even slight delays can degrade the user experience significantly, tipping the scale towards real-time models.</p><p>Imagine you’re designing a voice-based FAQ assistant for a bank. You value accuracy, clarity, and reliability, but a one-second latency is quite acceptable. Here, the STT-LLM-TTS pipeline method makes perfect sense. Your customers won’t mind a brief pause as long as they receive clear, precise information.</p><p>On the other hand, picture building an interactive conversational language-learning app targeting busy professionals or students aiming for fluency. A 1–2 second delay between each conversational exchange could severely undermine the user experience. The learner’s enthusiasm could diminish rapidly. This is precisely where real-time voice interaction shines, delivering a seamless, engaging conversation, vital for sustained learning and immersion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ArULQZTS2gPSyt5S6Evxg.png" /><figcaption>Image Concept: DeepLearning.AI</figcaption></figure><h3>Real-World Experiences Tell the Tale</h3><p>Consider popular language learning applications, Duolingo Loora AI and ELSA Speak. <strong>Duolingo</strong> traditionally uses the pipeline method, perfect for its structured tasks, simple prompts, and responses. It doesn’t require instant, nuanced back-and-forth conversations, making the pipeline-based method highly effective and resource-efficient.</p><p><strong>Loora AI</strong>, conversely, employs real-time voice technology. Users converse fluidly, practicing conversational skills just as they would with a human tutor. The continuous audio stream creates a sense of presence and realism unmatched by the pipeline method. Users remain highly engaged because the interaction feels real, immediate, and responsive.</p><p>This contrast vividly illustrates the decision-making behind the choice of methodology, carefully tailored to fit the exact user experience developers aim to achieve.</p><p><strong>ELSA Speak</strong>, pronunciation coaching app leveraging real-time voice analysis and rapid corrective feedback. It helps users improve accent and pronunciation in English, heavily relying on fast, responsive interactions to ensure fluid engagement.</p><h3>Looking to the Future: Seamless Conversations Await</h3><p>Today, both STT-LLM-TTS and real-time voice interaction coexist, each serving specific niches. However, technology never stands still. With rapidly advancing hardware, optimized neural architectures, and improved cloud infrastructure, real-time voice interaction will likely become more accessible, affordable, and widespread.</p><p>We already see powerful end-to-end multimodal models like <strong>OpenAI’s Realtime</strong>, <strong>Google’s Gemini 2.5</strong>, and similar architectures emerging, promising unprecedented levels of conversational realism. These advancements signify the industry’s shift toward ever-more-natural interactions, slowly bridging the gap between AI conversations and human dialogues.</p><h3>Looking to the Future: Seamless Conversations Await</h3><p>Today, both STT-LLM-TTS and real-time voice interaction coexist, each serving specific niches. However, technology never stands still. With rapidly advancing hardware, optimized neural architectures, and improved cloud infrastructure, real-time voice interaction will likely become more accessible, affordable, and widespread.</p><p>We already see powerful end-to-end multimodal models like OpenAI’s Realtime, Google’s Gemini 2.5, and similar architectures emerging, promising unprecedented levels of conversational realism. These advancements signify the industry’s shift toward ever-more-natural interactions, slowly bridging the gap between AI conversations and human dialogues.</p><h3>Conclusion: Choosing Your Path Wisely</h3><p>Every technological choice shapes how users interact and experience the digital products we build. Whether it’s the modular, trusted pipeline approach or the immersive, cutting-edge real-time interaction, there’s no universally perfect method, only the right one for your context, resources, and vision.</p><p>The journey we’ve taken today illuminates the hidden complexity behind something as deceptively simple as a conversation with a voice assistant. Next time you speak to OpenAI’s Advanced Voice Mode or Gemini’s Live Mode about the weather or chat with an AI language tutor, you’ll appreciate the incredible engineering effort, distinct architectures, intricate decisions, and passionate innovation that makes these interactions seem effortlessly natural.</p><p>In the end, your voice agent isn’t just about AI; it’s about understanding, empathy, and genuine human connection, mediated through technological artistry.</p><p><strong>STAY TUNED FOR PART 2 WHERE WE FOCUS ON REAL WORD ITERATIONS OF AI VOICE AGENTS!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=297d68ac7855" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Need for Speed: Why Your Website’s Speed Matters More Than Ever Before and How to Measure it]]></title>
            <link>https://medium.com/design-bootcamp/need-for-speed-why-your-websites-speed-matters-more-than-ever-before-and-how-to-measure-it-c6162fa9cc45?source=rss-6e5d2bf1d5d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6162fa9cc45</guid>
            <category><![CDATA[google-analytics-4]]></category>
            <category><![CDATA[website-traffic]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Uttam Deb]]></dc:creator>
            <pubDate>Mon, 15 Apr 2024 14:47:03 GMT</pubDate>
            <atom:updated>2024-04-21T17:26:55.889Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In the lightning-paced digital era, your website’s load time is like that first date impression — it’s got to be swift, sharp, and memorable. A slow-loading page is akin to arriving late for a date; it sets the tone for disappointment and lost interest. Make sure your site’s speed is love at first sight, not a reason to swipe out. Remember, your website’s UX depends on this!</blockquote><figure><img alt="Illustation by author using DALLE3" src="https://cdn-images-1.medium.com/max/1024/1*TV3Igoiy24ml4ILtiHRjSg.png" /><figcaption>Illustration by author using DALLE-3</figcaption></figure><p>Your website isn’t just a storefront; it’s the red carpet to your brand’s universe. It’s where the spotlight hits, and within milliseconds, your audience decides if they’re in for the show or if they’ll scroll away to the next attraction. Users form opinions in the blink of an eye. If your website stutters, so does their perception of your brand. A slow load is like a stuttered greeting; it lacks confidence and loses attention. This generation, raised on the instant gratification of streaming services and social media feeds, won’t wait for the curtain to rise slowly. They want the main act, and they want it now.</p><blockquote><strong><em>Visit: </em></strong><a href="http://uttamdeb.com/"><strong><em>www.uttamdeb.com</em></strong></a><strong><em> for more similar guides!</em></strong></blockquote><p>In the digital age, your website is often the first point of contact between your business and potential customers. It’s where first impressions are formed and can be the deciding factor between a sale and a bounce. Understanding and optimizing your website’s load time is not just a technical concern; it’s a critical business strategy.</p><p>LET’S TALK: CONNECT WITH ME ON <a href="https://www.linkedin.com/in/uttam-deb/"><strong><em>LINKEDIN</em></strong></a></p><h3>What is Website Load Time?</h3><p>Website load time is the duration it takes for a webpage to fully display on a user’s screen after they have requested it. This includes all the text, images, scripts, and other elements that make up the page. <a href="https://sematext.com/glossary/page-load-time/">It’s measured from the moment a user clicks a link or types in a URL to the point when the page is completely rendered</a>.</p><blockquote><strong>READ THIS NEXT: </strong><a href="https://bootcamp.uxdesign.cc/how-to-analyze-web-and-app-traffic-data-with-google-analytics-4-bigquery-and-looker-studio-66491b5470fd"><strong>How to Analyze Web and App Traffic Data with Google Analytics 4, BigQuery and Looker Studio</strong></a></blockquote><h3>Factors That Influence Website Load Time</h3><p>Several factors can affect how quickly a webpage loads, including:</p><ul><li><strong>Server Performance</strong>: How quickly the server processes requests and delivers data.</li><li><strong>File Sizes</strong>: Larger files, such as high-resolution images and videos, take longer to load.</li><li><strong>Code Efficiency</strong>: Clean, well-structured code can be processed faster by browsers.</li><li><strong>Number of Requests</strong>: Each element on a page, like an image or a stylesheet, is a separate request to the server. More requests can mean slower load times.</li><li><strong>User’s Device and Connection</strong>: A user’s internet speed and device capabilities can also impact load times.</li></ul><h3>Why Measuring Page Load Time is Essential for Your Business</h3><p>User Experience: Users expect fast, responsive websites. <a href="https://sematext.com/glossary/page-load-time/">A delay of even a few seconds can lead to frustration and a higher likelihood of users abandoning your site</a>.</p><p>SEO Rankings: Search engines, like Google, use page load time as a ranking factor. <a href="https://sematext.com/glossary/page-load-time/">Faster websites are more likely to appear higher in search results, leading to more organic traffic</a>.</p><p>Conversion Rates: Every second counts when it comes to conversions. <a href="https://avada.io/articles/website-load-times/">A one-second delay can lead to a 7% reduction in conversions, meaning slower load times can significantly impact your bottom line</a>.</p><p><a href="https://aicontentfy.com/en/blog/impact-of-website-load-time-on-customer-acquisition">Customer Loyalty: Slow websites can damage your brand’s reputation and make customers less likely to return, affecting long-term revenue and growth</a>.</p><h3>Ideal Loading Times for Optimal Performance</h3><p>The ideal loading time for a website is under 3 seconds. However, striving for even faster times can provide a competitive edge. <a href="https://sematext.com/glossary/page-load-time/">Google’s Core Web Vitals suggests a Largest Contentful Paint (LCP) of 2.5 seconds or less for a good user experience</a>.</p><h3>The Cost of Slow Loading Times</h3><p>If your website takes longer than the ideal time to load, it can result in:</p><ul><li><strong>Lost Sales</strong>: Potential customers may leave your site in favor of a competitor with faster load times.</li><li><strong>Decreased Customer Satisfaction</strong>: A slow website can lead to poor user experience, reducing the likelihood of customers returning.</li><li><strong>Lowered SEO Rankings</strong>: Slower load times can negatively impact your search engine rankings, leading to less visibility and traffic.</li></ul><p>In conclusion, page load time is a vital aspect of your online presence that directly impacts user experience, SEO, conversion rates, and customer loyalty. By measuring and optimizing your website’s load time, you can ensure that your business remains competitive and poised for growth in the digital marketplace.</p><h3>Measuring Your Website’s Page Load Time</h3><p>Now that we have discussed why measuring page load time is important, let’s explore three methods to test and measure it effectively. Keep in mind that each new method will be significantly more complex than the previous method. This will give you an option to move on to the next method if you need something more comprehensive. Come on then, lord protector of data, let’s get started! 🤣</p><h3>Method 1: Google PageSpeed Insights interface</h3><p>Google PageSpeed Insights is a user-friendly tool that provides a snapshot of your website’s performance. Simply enter your website’s URL at Google PageSpeed Insights to receive a report. This report includes a variety of metrics that assess different aspects of your site’s load time:</p><ul><li><strong>Largest Contentful Paint (LCP)</strong>: Measures the time taken for the largest content element visible in the viewport to load. This is crucial as it gives the user a perception of how quickly the site loads. <a href="https://www.portent.com/blog/design-dev/what-are-core-web-vitals.htm">The ideal LCP is 2.5 seconds or faster</a>.</li><li><strong>First Input Delay (FID)</strong>: Captures the time from when a user first interacts with your site to the time when the browser is actually able to respond to that interaction. <a href="https://www.portent.com/blog/design-dev/what-are-core-web-vitals.htm">A good FID is less than 100 milliseconds</a>.</li><li><strong>Cumulative Layout Shift (CLS)</strong>: Quantifies the amount of unexpected layout shift of visible page content. <a href="https://www.portent.com/blog/design-dev/what-are-core-web-vitals.htm">A low CLS ensures a stable and visually consistent experience</a>.</li><li><strong>First Contentful Paint (FCP)</strong>: Marks the time at which the first text or image is painted. <a href="https://www.portent.com/blog/design-dev/what-are-core-web-vitals.htm">Seeing content appear on the screen quickly is reassuring for the user</a>.</li><li><strong>Time To First Byte (TTFB)</strong>: The time it takes for a user’s browser to receive the first byte of page content from the server. <a href="https://www.portent.com/blog/design-dev/what-are-core-web-vitals.htm">Lower TTFB means a faster start to loading</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4qOHCqTprq52a74Q-jkiw.png" /><figcaption>A sample test using Google PageSpeed Insights</figcaption></figure><p>The PageSpeed Insights report also breaks down page performance into four primary categories: Performance, Accessibility, Best Practices, and SEO, providing a comprehensive view of your website’s health.</p><p>However, this method offers a static view and doesn’t track changes over time, which is where the API comes into play.</p><h3>Method 2: Google’s PageSpeed Insights API</h3><p>For dynamic and continuous measurement, Google’s PageSpeed Insights API can be integrated with Google AppScript to periodically check and record your website’s load time. Here’s an enhanced script that not only measures but also explains the process:</p><pre>function PageSpeedInsightsAPI() {<br> // List of URLs to test<br> var urls = [<br> &#39;YOUR_PAGE_URL&#39;,<br> &#39;YOUR_PAGE_URL&#39;,<br> &#39;YOUR_PAGE_URL&#39;,<br> ];<br> <br> // Access the active sheet<br> var sheet = SpreadsheetApp.getActiveSheet();<br> var date = new Date();<br> <br> // Retrieve or initialize the URL index<br> var scriptProperties = PropertiesService.getScriptProperties();<br> var urlIndex = scriptProperties.getProperty(&#39;URL_INDEX&#39;);<br> urlIndex = (urlIndex === null) ? 0 : parseInt(urlIndex);<br> <br> // Fetch the PageSpeed data for the current URL<br> var url = urls[urlIndex];<br> var response = UrlFetchApp.fetch(&#39;https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=&#39; + url);<br> var json = JSON.parse(response.getContentText());<br> <br> // Extract performance score and load time<br> var performance = json.lighthouseResult.categories.performance.score * 100;<br> var loadTime = json.lighthouseResult.audits[&#39;interactive&#39;].numericValue / 1000;<br> <br> // Append the data to the sheet<br> sheet.appendRow([date, url, performance, loadTime]);<br> <br> // Update the URL index for the next run<br> urlIndex = (urlIndex + 1) % urls.length;<br> scriptProperties.setProperty(&#39;URL_INDEX&#39;, urlIndex.toString());<br>}<br>// Set a time-driven trigger to run the function periodically</pre><p>This script will test multiple URLs, store the performance score, and load time in a Google Sheet, and can be set to run at intervals of your choice, providing a historical view of your website’s performance. Just go ahead and set a time-driven trigger to run the test on regular intervals.</p><blockquote><strong>IF YOU LIKE WHAT YOU READ, CONSIDER FOLLOWING ME ON MEDIUM! 🥳</strong></blockquote><h3>Method 3: Measuring Page Load Time with Google Tag Manager and GA4</h3><p>Google Tag Manager (GTM) paired with Google Analytics 4 (GA4) provides a powerful way to measure and store the page load times experienced by your users. If your website uses Google Tag Manager and Google Analytics 4, you can easily add custom JavaScript code using a google tag to every page of your website which will in turn will store the time taken for the page to load on user’s end. Page Load Time event is not included by default in the lastest version of Google Analytics. But fear not, I am here to save your day!</p><p>Here’s how to set it up step by step:</p><p>Step 1: Create a Custom JavaScript Variable in GTM</p><ol><li>Go to Google Tag Manager and select your account.</li><li>Navigate to <strong>Variables</strong> and click <strong>New</strong> to create a new variable.</li><li>Name the variable “Custom — Page Load Time”.</li><li>Choose <strong>Variable Type</strong> as <strong>Custom JavaScript</strong>.</li><li>Copy and paste the following JavaScript code into the variable configuration:</li></ol><pre>function() {<br> if (window.performance &amp;&amp; window.performance.getEntriesByType) {<br> var entries = window.performance.getEntriesByType(&quot;navigation&quot;);<br> if (entries.length &gt; 0) {<br> var navTiming = entries[0];<br> var pageLoadTime = navTiming.loadEventEnd - navTiming.startTime;<br> return Math.round(((pageLoadTime / 1000) + Number.EPSILON) * 100) / 100;<br> }<br> }<br> return 0; // Return 0 if the performance timing isn&#39;t supported<br>}</pre><p>6. Save the variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w__ghHZBF05oFq6wlAOAhQ.png" /><figcaption>How to set the Page Load Time variable</figcaption></figure><p>Step 2: Set Up a Trigger for Page Load</p><ol><li>In GTM, go to <strong>Triggers</strong> and click <strong>New</strong>.</li><li>Name the trigger “Window Loaded”.</li><li>Select <strong>Trigger Type</strong> as <strong>Window Loaded</strong>.</li><li>Configure the trigger to fire on <strong>All Window Loaded Events</strong> or specify exceptions if necessary.</li><li>Save the trigger.</li></ol><p>Step 3: Create a GA4 Event Tag</p><ol><li>Still in GTM, navigate to <strong>Tags</strong> and click <strong>New</strong>.</li><li>Name the tag “GA4 — Page Load Time”.</li><li>For <strong>Tag Configuration</strong>, choose <strong>Google Analytics: GA4 Event</strong>.</li><li>Enter your <strong>Measurement ID</strong> from GA4.</li><li>Under <strong>Event Parameters</strong>, add “loading_time_sec” and set its value to the variable “Custom — Page Load Time” created earlier.</li><li>Add any additional parameters you wish to track with this event.</li><li>Select the “Page View — Window Loaded” trigger for this tag.</li><li>Save the tag.</li></ol><p>Step 4: Testing time!</p><ol><li>Use the <strong>Preview</strong> mode in GTM to test the tag and ensure it fires correctly on page load.</li><li>Check the <strong>Real-Time</strong> report in GA4 to see if the event is being recorded.</li></ol><p>Step 5: Add the Custom Metric to GA4</p><ol><li>In GA4, go to <strong>Admin</strong> and under the <strong>Property</strong> column, click <strong>Custom Definitions</strong>.</li><li>Click <strong>Create custom metrics</strong>.</li><li>Name the metric “Page Load Time”.</li><li>Set the <strong>Event parameter</strong> as “loading_time_sec”.</li><li>Choose <strong>Seconds</strong> as the unit of measurement.</li><li>Save the custom metric.</li></ol><p>Now, you’ve successfully set up a method to measure and track the page load time of your website using GTM and GA4. This data will be invaluable for understanding and improving your site’s performance.</p><h3>The Superior method</h3><p>Let’s jazz up this discussion with a bit of flair and dive into why using Google Tag Manager (GTM) with Google Analytics 4 (GA4) is like having a VIP backstage pass to the ‘performance concert’ of your website.</p><h3>Setting the Stage for Success</h3><p>Imagine setting up a sleek dashboard giving you real-time stats on your website’s speed. With GTM and GA4, you can track the page loading time across various development phases of your site. It’s like having a time machine that shows you how your site’s speed has rocked through the ages.</p><h3>Avoiding the Data Traffic Jam</h3><p>Now, let’s talk about the elephant in the server room: data overload. Google Sheets is fantastic, but it can start to crawl like <a href="https://www.nytimes.com/2016/09/23/t-magazine/travel/dhaka-bangladesh-traffic.html">Dhaka traffic</a> during rush hour when it’s jam-packed with data. Especially if you’ve got more website paths than a maze in a cornfield! But with this method, you’re automating the process, tracking every encore and stage dive your pages perform without breaking a sweat.</p><h3>Hitting the High Notes of Accuracy</h3><p>When it comes to accuracy, client-side events are met with increased precision than the methods before it. It captures the moment your real-world audience experiences each stage of page loading, unlike Google’s simulated soundcheck. Sure, it may not be the most accurate method, but it is better than the other methods we discussed today.</p><h3>The Deep Dive Solo</h3><p>Now, for the fans of deep cuts, GA4’s event-level data is like an exclusive box set of insights. You can analyze different related circumstances the user might have faced when they were loading a page. Maybe an error event has triggered which has rendered the user’s page loading capability to become slower? Perhaps, a bundled product sometimes slows things down? Maybe the mystery lies within the previous activities undertaken by the user before loading a page? What if a particular type of device is facing loading issues? This is your all-access pass to this level of analysis.</p><p>And for the grand finale, let’s not forget: measuring page load time is just the opening act in the grand festival of overall page performance. It’s about setting the stage for a seamless user experience, where every page hits the right note, every time.</p><h4>So, there you have it, folks — the headliner method that keeps your website’s performance rocking around the clock! Let me know if this guide has helped you or if you have any questions or suggestions!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6162fa9cc45" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/need-for-speed-why-your-websites-speed-matters-more-than-ever-before-and-how-to-measure-it-c6162fa9cc45">Need for Speed: Why Your Website’s Speed Matters More Than Ever Before and How to Measure it</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Analyze Web and App Traffic Data with Google Analytics 4, BigQuery and Looker Studio]]></title>
            <link>https://medium.com/design-bootcamp/how-to-analyze-web-and-app-traffic-data-with-google-analytics-4-bigquery-and-looker-studio-66491b5470fd?source=rss-6e5d2bf1d5d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/66491b5470fd</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[google-looker-studio]]></category>
            <category><![CDATA[google-bigquery]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Uttam Deb]]></dc:creator>
            <pubDate>Mon, 23 Oct 2023 16:18:15 GMT</pubDate>
            <atom:updated>2024-04-22T14:54:15.723Z</atom:updated>
            <content:encoded><![CDATA[<h4>If you have a website or an app, you probably want to know how your users are interacting with it. You can also set Key Performance Indicator (KPIs) for prioritizing data metrics. What pages are they visiting, what actions are they taking, what devices are they using, and how are they converting into customers? These are some of the questions that web and app analytics can help you answer. This is where Google Analytics 4 comes in.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MBZ87lNvN_b-yElpTwnvCw.jpeg" /><figcaption>Big Search Artwork (DALLE-3)</figcaption></figure><p>Did you know that <a href="https://www.forbes.com/advisor/business/software/website-statistics/"><strong>nearly half of users won’t wait longer than two seconds for a website to load</strong></a>? Or the fact that <a href="https://www.similarweb.com/corp/investors/web-traffic/">the <strong>average mobile app session duration was 6.2 minutes</strong></a>?</p><p>LET’S TALK: CONNECT WITH ME ON <a href="https://www.linkedin.com/in/uttam-deb/"><strong><em>LINKEDIN</em></strong></a></p><p>You might wonder why this stuff matters and what do these even mean? How do you even measure them? Well, I am here to answer these questions today! 😎</p><p>To get started let’s get introduced with Google Analytics.</p><p>Visit: <a href="http://uttamdeb.com/"><strong><em>www.uttamdeb.com</em></strong></a> for more similar guides!</p><h3>What is Google Analytics 4 and why use it?</h3><p>GA4 is the latest version of Google Analytics, which was launched in October 2020. It is a major overhaul of the previous version <em>(Google Analytics 3, or Universal Analytics as it was known)</em>, which was based on sessions and pageviews. GA4 is based on events and parameters, which means that it can capture more granular and flexible data about user behavior across various platforms and devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D07I4nsmx0HteXQWF2pvDg.png" /><figcaption>Google Analytics 4</figcaption></figure><p>GA4 also offers some new features, such as:</p><ul><li><strong>Enhanced measurement: </strong>Automatically track common events such as page views, scrolls, downloads, video views, etc.</li><li><strong>Analysis hub: </strong>Use advanced analysis techniques such as funnel analysis, path analysis, segment overlap, etc.</li><li><strong>BigQuery integration</strong>: Export your raw GA4 data to BQ for further analysis and customization.</li></ul><p>READ THIS NEXT: <a href="https://medium.com/design-bootcamp/need-for-speed-why-your-websites-speed-matters-more-than-ever-before-and-how-to-measure-it-c6162fa9cc45"><strong><em>Need for Speed: Why Your Website’s Speed Matters More Than Ever Before and How to Measure it</em></strong></a></p><p>If your website is integrated with Google Tag Manager and Google Analytics 4, you will be able to track and study traffic data from the Google Analytics interface. Google has extensive documentation on how you can setup these tools. But what makes this tool super-powerful is it’s integration with Google BigQuery. The BigQuery integration is especially useful for data analysts who want to access the raw event-level data and perform complex queries that are not possible in the GA4 interface. For example, you can join your GA4 data with other data sources, such as CRM or inventory data, to get a more complete picture of your users and business. You can also create custom metrics and dimensions that are not available in GA4, such as user lifetime value, retention rate, etc. You can also create altered versions for existing metrics, for example you want to count power users; users who have interacted consecutively with the website for more than a minute. Such data points can be created with this dataset.</p><p>In this article, I will show you how to import the raw event-level data from Google Analytics 4 (GA4) to Google BigQuery (BQ), and then write a series of SQL queries to perform exploratory data analysis (EDA) and create a dashboard with near-real time data. This dashboard will contain critical web and app traffic data that will easily visualize different performance-related metrics and help identify if there is any issue with a particular payment step or other similar steps. This will also make it easy to identify what product features are working and what can be improved simply by looking at the numbers and graphs.</p><h3>How to import GA4 data to BQ?</h3><p>To import your GA4 data to GBQ, you need to have the following:</p><ul><li>A GA4 property that is linked to your website or app</li><li>A GBQ project that has billing enabled</li><li>A service account that has access to both GA4 and BQ</li></ul><p>The steps to import GA4 data to GBQ are:</p><ol><li>In your GA4 property, go to Admin &gt; Data Streams &gt; choose your web or app stream &gt; BigQuery linking &gt; Link</li><li>In the Link to BigQuery window, select your GBQ project and dataset</li><li>Choose the export options: daily export (recommended) or streaming export (near real-time)</li><li>Click Save</li></ol><p>Once you link your GA4 property to your BQ project, you will start seeing tables in your GBQ dataset with the prefix events_. Each table corresponds to one day of data, and contains the following columns:</p><ul><li><strong>event_date:</strong> The date of the event in YYYYMMDD format</li><li><strong>event_timestamp: </strong>The timestamp of the event in microseconds</li><li><strong>event_name: </strong>The name of the event</li><li><strong>event_params: </strong>The parameters associated with the event</li><li><strong>user_id: </strong>The user ID assigned by you or by GA4</li><li><strong>user_pseudo_id: </strong>The pseudonymous ID assigned by GA4</li><li><strong>user_properties: </strong>The properties associated with the user</li><li><strong>device: </strong>The device information of the user</li><li><strong>geo</strong>: The geographic information of the user</li><li><strong>app_info: </strong>The app information of the user</li><li><strong>traffic_source</strong>: The traffic source information of the user</li><li><strong>ecommerce:</strong> The ecommerce information of the user</li><li><strong>items:</strong> The items associated with the event</li></ul><p>For more details on the schema of the GA4 tables in BQ, you can checkout the official documentation from Google.</p><h3>How to perform Exploratory Data Analysis (EDA) on GA4 data in BQ?</h3><p>Now that you have your GA4 data in GBQ, you can start writing SQL queries to explore and analyze it. Here are some examples of common EDA questions that you can answer with SQL:</p><ul><li><strong>How many users visited your website or app in a given period?</strong></li></ul><pre>SELECT COUNT(DISTINCT user_pseudo_id) AS users<br>FROM `sample_ga4.analytics_252441088.events_*`<br>WHERE _TABLE_SUFFIX BETWEEN &#39;20231001&#39; AND &#39;20231031&#39;</pre><ul><li><strong>How many sessions did they have and how long did they last?</strong></li></ul><pre>SELECT <br>COUNT(DISTINCT CONCAT(user_pseudo_id, CAST(event_timestamp AS STRING))) AS sessions,<br>AVG(engaged_session_event) AS avg_session_duration<br>FROM `sample_ga4.analytics_252441088.events_*`<br>WHERE _TABLE_SUFFIX BETWEEN &#39;20231001&#39; AND &#39;20231031&#39;<br>AND event_name = &#39;session_start&#39;</pre><ul><li><strong>What are the top events that they triggered and how many times?</strong></li></ul><pre>SELECT <br>event_name, <br>COUNT(*) AS event_count<br>FROM `sample_ga4.analytics_252441088.events_*`<br>WHERE _TABLE_SUFFIX BETWEEN &#39;20231001&#39; AND &#39;20231031&#39;<br>GROUP BY event_name<br>ORDER BY event_count DESC<br>LIMIT 10</pre><ul><li><strong>What are the top pages that they viewed and how many times?</strong></li></ul><pre>SELECT <br>(SELECT value.string_value FROM UNNEST(event_params) WHERE key = &#39;page_location&#39;) AS page_location,<br>COUNT(*) AS page_view_count<br>FROM `sample_ga4.analytics_252441088.events_*`<br>WHERE _TABLE_SUFFIX BETWEEN &#39;20231001&#39; AND &#39;20231031&#39;<br>AND event_name = &#39;page_view&#39;<br>GROUP BY page_location<br>ORDER BY page_view_count DESC<br>LIMIT 10</pre><ul><li><strong>What are the top products that they viewed and how many times?</strong></li></ul><pre>SELECT <br>(SELECT value.string_value FROM UNNEST(event_params) WHERE key = &#39;item_name&#39;) AS item_name,<br>COUNT(*) AS item_view_count<br>FROM `sample_ga4.analytics_252441088.events_*`<br>WHERE _TABLE_SUFFIX BETWEEN &#39;20231001&#39; AND &#39;20231031&#39;<br>AND event_name = &#39;view_item&#39;<br>GROUP BY item_name<br>ORDER BY item_view_count DESC<br>LIMIT 10</pre><ul><li><strong>What are the top traffic sources that brought users to your website or app and how many users?</strong></li></ul><pre>SELECT <br>traffic_source.name AS source_name,<br>traffic_source.medium AS source_medium,<br>COUNT(DISTINCT user_pseudo_id) AS users<br>FROM sample_ga4.analytics_252441088.events_*`<br>WHERE _TABLE_SUFFIX BETWEEN &#39;20231001&#39; AND &#39;20231031&#39;<br>GROUP BY source_name, source_medium<br>ORDER BY users DESC<br>LIMIT 10</pre><p>These are just some of the basic queries that you can use to get a sense of your GA4 data in BQ. You can also write more complex queries to answer more specific questions, such as:</p><ul><li>How many users completed a certain goal or conversion? (Depending on your industry, this will vary)</li><li>How many users dropped off at each stage of the funnel? (User Drop-off or Churn)</li><li>How does user behavior vary by device, location, or segment?</li><li>How does user retention and churn change over time?</li><li>How does user lifetime value and revenue differ by product, channel, or campaign?</li></ul><h3>Let’s build a comprehensive SQL query to track segmented user behavior in BQ</h3><p>Now that we performed some basic EDA queries to better understand the dataset, we can now proceed to build series of logics that can accurately track users by different segments, such as device category (was it a mobile device or a desktop-based device?), platform (did the user visit the web version or from a Android/iOS app?), page type (It could be a page describing the product or perhaps a payment page) or events.</p><p>An event is a data point that allows you to track specific interactions or occurrences on your website or app. This could include actions such as a page load, a link click, or a purchase completion. It can also be used to monitor system behavior, like an app crash or an ad impression. There are different types of events that you can learn more about from Google’s documentations.</p><h3>Daily Active Users (DAU)</h3><p>First, lets write a few SQL statements that aggregates users by a few key segments to find out Daily Active Users (DAU). In this example, we will calculate all of the data points by each day.</p><ul><li>What are some popular device types for users to visit from? Are users visiting from a particular device type more often than the other?</li></ul><pre>SELECT<br>    event_date as day,<br>-- DAU and variations<br>    COUNT(DISTINCT user_pseudo_id) AS dau,<br>-- &quot;user_pseudo_id&quot; is a unique GA4-generated field assigned to each user visiting the platform.<br>    COUNT(DISTINCT auth_user_id) AS logged_in_dau,<br>-- &quot;auth_user_id&quot; is a custom field assigned to a user if they log in to our platform. This field will defer according to your platform and industry.<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;first_open&#39;,&#39;first_visit&#39;) THEN user_pseudo_id END) AS new_dau,<br>    COUNT(DISTINCT CASE WHEN device.category IN (&#39;desktop&#39;) AND platform IN (&#39;WEB&#39;) THEN user_pseudo_id END) AS web_desktop_dau,<br>    COUNT(DISTINCT CASE WHEN device.category IN (&#39;mobile&#39;) AND platform IN (&#39;WEB&#39;) THEN user_pseudo_id END) AS web_mobile_dau,<br>    COUNT(DISTINCT CASE WHEN device.category IN (&#39;desktop&#39;) THEN user_pseudo_id END) AS desktop_dau,<br>    COUNT(DISTINCT CASE WHEN device.category IN (&#39;mobile&#39;) THEN user_pseudo_id END) AS mobile_dau,<br>    COUNT(DISTINCT CASE WHEN platform IN (&#39;ANDROID&#39;) AND device.category IN (&#39;mobile&#39;) THEN user_pseudo_id END) android_app_dau,<br>    COUNT(DISTINCT CASE WHEN platform IN (&#39;IOS&#39;) AND device.category IN (&#39;mobile&#39;) THEN user_pseudo_id END) ios_app_dau,</pre><h3>Product Display Page (PDP) visitors</h3><p>Woah! Those logics were useful! Now lets try to find out how users are visiting our product pages and just like before, lets segment it by device types.</p><ul><li>What products are trending among users and are they visiting a particular product from a specific device type?</li></ul><pre>-- Product Display Page (PDP) visitors and variations<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;view_item&#39;,&#39;landing_page_visited&#39;) AND device.category IN (&#39;desktop&#39;) AND platform IN (&#39;WEB&#39;) THEN user_pseudo_id END) AS web_desktop_visitors,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;view_item&#39;,&#39;landing_page_visited&#39;) AND device.category IN (&#39;mobile&#39;) AND platform IN (&#39;WEB&#39;) THEN user_pseudo_id END) AS web_mobile_visitors,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;view_item&#39;,&#39;landing_page_visited&#39;) AND device.category IN (&#39;desktop&#39;) THEN user_pseudo_id END) AS desktop_visitors,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;view_item&#39;,&#39;landing_page_visited&#39;) AND device.category IN (&#39;mobile&#39;) THEN user_pseudo_id END) AS mobile_visitors, <br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;view_item&#39;,&#39;landing_page_visited&#39;) AND platform IN (&#39;WEB&#39;) THEN user_pseudo_id END) AS web_visitors,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;view_item&#39;,&#39;landing_page_visited&#39;) THEN user_pseudo_id END) AS overall_visitors,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;view_item&#39;,&#39;landing_page_visited&#39;) AND platform IN (&#39;ANDROID&#39;) AND device.category IN (&#39;mobile&#39;) THEN user_pseudo_id END) android_app_pdp_visitors,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;view_item&#39;,&#39;landing_page_visited&#39;) AND platform IN (&#39;IOS&#39;) AND device.category IN (&#39;mobile&#39;) THEN user_pseudo_id END) ios_app_pdp_uv,</pre><h3>Add to Cart and Checkout</h3><p>Alright then, now lets find out user interactions with the Add to Cart and Checkout pages.</p><ul><li>What is the drop-off rate of different pages in the users purchase journey?</li></ul><pre>-- Add to Cart &amp; Checkout events <br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;add_to_cart&#39;,&#39;add_to_cart_attempted&#39;) THEN user_pseudo_id END) AS add_to_cart,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;begin_checkout&#39;,&#39;checkout_attempted&#39;,&#39;Adm_checkout&#39;,&#39;purchase_attempted&#39;) THEN user_pseudo_id END) AS checkout_step1,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;add_shipping_info&#39;) THEN user_pseudo_id END) AS checkout_step2,<br>    COUNT(DISTINCT CASE WHEN event_name IN (&#39;add_payment_info&#39;) THEN user_pseudo_id END) AS checkout_step3,</pre><h3>Sessions</h3><p>Since we are at it, lets also keep track of user sessions</p><ul><li>Are users initiating fewer sessions on a particular day of week?</li></ul><pre>COUNT(DISTINCT CASE WHEN event_name = &#39;session_start&#39; THEN concat(user_pseudo_id, cast(event_timestamp AS string)) END) AS sessions,</pre><h3>Conversions</h3><p>Okay, so the all-important step now. Lets check out user conversions.</p><ul><li>How many users are ultimately making a purchase and what is amount of revenue they are generating?</li></ul><pre>COUNT(DISTINCT CASE WHEN event_name IN (&#39;purchase&#39;,&#39;in_app_purchase&#39;,&#39;purchase_success&#39;) THEN user_pseudo_id END) total_buyer,<br>    SUM(CASE WHEN event_name IN (&#39;purchase&#39;,&#39;in_app_purchase&#39;,&#39;purchase_success&#39;) AND platform IN (&#39;WEB&#39;) THEN event_value_in_usd END) web_rev_usd</pre><p>We will finally conclude the query using the FROM and WHERE statement. In the WHERE statement, we will take a smaller date range as we will be testing the query extensively before proceeding with any kind of production-level data. This will make our queries more efficient and reduce costs.</p><pre>FROM<br>    `sample_ga4.analytics_252441088.events_*`<br>-- Short date range will ensure queries will run faster bearing minimal cost.<br>WHERE _TABLE_SUFFIX BETWEEN &#39;20231001&#39; AND &#39;20231010&#39;</pre><h3>Storing data in a warehouse</h3><p>After asking the above questions, we have a clear picture of what metrics we need to measure our traffic performance. We also have some insights into how users interact with our platform and how we can analyze the data further. But before we do that, we need to understand why we used a wildcard filter called “_TABLE_SUFFIX” and a date range of ten days in our SQL statements.</p><p>The reason is twofold. First, Google Analytics 4 collects event-level data, which is very detailed and granular. This has its advantages, as it allows us to capture every user action and behavior on our platform. But it also has its drawbacks. The main one is the amount of data that we have to deal with. How big is your platform in terms of users? What are your DAU and MAU? If they are high, say, more than 100,000, you will have a lot of data to process. We are talking about millions of events in a short period of time. This is very much expected, as a user may hit around 35–40 events (depending on how many events you have set-up in your website and app) on average on the one or two minute they spend on your platform on average. This can affect the query execution time and the billing costs in BQ. The good news is that BQ is very fast and efficient at sorting and filtering large amounts of data. So, if this is a non-issue then what’s the catch?</p><p>The second reason is the data quality. With any technology, there can be some errors or inconsistencies in the data collection. Not all properties or attributes may be 100% accurate or reliable. And with so much data, it can be hard to spot and fix these issues. That’s why I have limited the data to only ten days, which makes it easier to check and validate. Of course, you should also test your website properties thoroughly using DevTools, but that’s another topic for another day.</p><p>Another thing that you should know is that the GA4 dataset in BQ stores data clustered by date. What does this mean? It means that when you create a table in BQ, you can specify which columns to sort it by. These are called clustered columns. Clustered tables make your queries faster and cheaper by only scanning the data blocks that match your query conditions. Clustered tables are useful when you frequently filter on specific columns or when you filter on columns that have many different values. So when I use a date range of ten days, SQL’s order of statement execution comes into play and BQ ignores the dates that are not in the range. This improves the performance and efficiency of the queries.</p><p>Now that we have explained these aspects, let’s see how we can transform the incoming data to extract the most value from it without compromising on any key metrics or data quality.</p><p>We will use something called the Scheduled Query in BQ, which will help us achieve this.</p><p>1. Once you are done with EDA and testing, combine the above query snippets into one, unified query.</p><p>2. Click on ‘Schedule’ from the SQL workspace in BQ.</p><p>3. Select a name, set an update frequency and destination table</p><p>4. Select the ‘Append to table’ for write preferences.</p><p>5. Select encryption and notification settings and click on ‘SAVE’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*pD3s2bXHgemsqgK36i3PoA.png" /><figcaption>Creating a scheduled query</figcaption></figure><p>This will initiate a data transfer into your destination table that you set previously. The append parameter will ensure that previous data isn’t flushed and that all data is stored and new data simply gets added in the destination table, sort of what factories do in a production plant while stickering a box or packet, they simply keep jamming one box behind another.</p><p>Phew! Our data is now ready for further analysis and for a nifty dashboard!</p><h3>Creating a comprehensive dashboard with GA4 data</h3><p>Once you have imported your GA4 data into BQ, performed SQL queries to explore it, you may want to see the results in a more visual and interactive way using the transformed data. That’s where a dashboard comes in handy. (Yes, you guessed it right!)</p><p>A dashboard is a powerful tool that can display your web and app traffic data in various charts and graphs, making it easier to understand and analyze. You can use a dashboard to track your performance metrics, identify any problems or opportunities, and optimize your product features. A dashboard can also alert you to any issues that may affect your user experience, such as a bug that prevents them from completing a payment or accessing a certain page. You don’t want to miss these issues for too long, as they can cost you customers and revenue. You want to be able to detect and fix them as quickly and efficiently as possible.</p><p>One of the options that you have for creating a dashboard with your GA4 data is Google Looker Studio (GLS), a data visualization and exploration platform that works seamlessly with BQ. With GLS, you can connect to your BQ project and dataset, and then use SQL or a drag-and-drop interface to create charts and tables based on your queries. You can then customize and arrange your charts and tables into a dashboard that suits your needs and preferences. You can also share your dashboard with others or embed it into your website or app, so that you can always keep an eye on your data.</p><p>Create a new dashboard in Google Looker Studio and lets get started…</p><ol><li>Add the destination dataset we created earlier by clicking on Add Data -&gt; BigQuery -&gt; My Projects -&gt; Choose your project -&gt; Choose your dataset -&gt; Choose your Table and add the dataset.</li><li>Now that GLS is connected with our dataset, we can now create a customized traffic performance dashboard that closely resembles our business domain and our own industry-specific needs.</li><li>Start by adding scorecards for different individual metrics that you deem is the most important, such as, DAU, MAU, ARPU, Buyers, User Conversion Rate, LTV, etc.,</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wNXFgBGeAvjuyJLS6ICLqQ.png" /><figcaption>Important Metrics</figcaption></figure><p>4. One of the most important data points to keep track is the user’s purchase funnel in your platform. A user purchase funnel is the consecutive order of pages a user needs to visit in order to complete a purchase such as, a product page, add to cart, checkout and purchase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U-PWVDU_1h81o3X9a9Ps5g.png" /><figcaption>User Purchase Funnel</figcaption></figure><p>5. Next-up, lets create a table to track day-on-day or month-on-month counts of these events mentioned in the above steps. This will help us keep the platform health in check.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ntvIowIYuwiRxEDnzguGkg.png" /><figcaption>Day-by-day user purchase funnel</figcaption></figure><p>6. We can go on to add a few more line and column charts showing user authentication status, CVR trend, visitor type and Buyer trend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpdEvNXSQmndSZyI2TfRWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vmnfxvSSDBU8LMoS_QXGCA.png" /><figcaption>Mix-em-all!</figcaption></figure><h3>How to identify and solve issues with GA4 data in BQ and Looker Studio?</h3><p>One of the benefits of creating a dashboard with GA4 data in BQ and Looker Studio is that you can easily monitor and identify issues with your web and app traffic data. For example, you can use your dashboard to spot anomalies, trends, outliers, or patterns that indicate a problem or an opportunity.</p><p>In this section, I will show you an example of how I used the dashboard we just created to identify and solve an issue with one of the payment steps in my website. The issue was causing a huge drop in conversions and revenue, and I was able to find it and fix it using the data.</p><p>The issue was related to the checkout funnel, which is the sequence of steps that a user takes to complete a purchase on the website or app. The checkout funnel consists of four steps:</p><ul><li><strong>Add to cart: </strong>The user adds an item to their shopping cart</li><li><strong>Begin checkout</strong>: The user starts the checkout process by entering their email address and/or phone number</li><li><strong>Add payment info: </strong>The user enters their payment information</li><li><strong>Purchase: </strong>The user completes the purchase and receives a confirmation</li></ul><p>To analyze the checkout funnel, I created a funnel chart in Looker Studio that shows the number of users who completed each step in a given period. The funnel chart also shows the conversion rate between each step, which is the percentage of users who moved from one step to the next.</p><p>There was a huge drop in conversions between the add payment info step and the purchase step. Only <strong>10%</strong> of users who entered their payment information completed the purchase, compared to <strong>80%</strong> between the begin checkout step and the add payment info step. This means that <strong>90%</strong> of users who were ready to pay abandoned their carts at the last step.</p><p>This was a very alarming situation, as it indicated that there was something wrong with the purchase step that was preventing users from completing their transactions. To investigate the issue, I drilled down into the funnel chart and looked at the details of the users who dropped off at the purchase step.</p><p>I found out that most of the users who dropped off at the purchase step were using a specific payment method. In fact, <strong>95%</strong> of users who used this method did not complete their purchase, compared to <strong>15%</strong> of users who used other payment methods. This suggested that there was something wrong with the payment system’s integration on the website that was causing errors or delays in processing the payments.</p><p>To confirm this hypothesis, I contacted the engineering team and asked them to check the logs and error reports for the payment method integration. They found out that there was a bug in the code that was causing a timeout error when users tried to pay with that payment method. The error message was not displayed properly on the website, so users did not know what was happening and gave up on their purchase. The engineering team fixed the bug and deployed the new code to the platform.</p><p>Since then, the funnel chart for the next few days after the issue was fixed clearly stated that things were back to normal. The conversion rate between the add payment info step and the purchase step improved significantly after the bug was fixed. It went from <strong>10%</strong> in August to <strong>75%</strong> in September, which is close to the average conversion rate for ecommerce websites. This means that more users who used the payment method were now able to complete their purchase without any issues.</p><p>The fix also had a positive impact on the overall revenue and user lifetime value. The revenue increased by <strong>50%</strong> in September compared to August, and the user lifetime value increased by <strong>25%</strong>. This shows that fixing the issue not only improved the checkout funnel, but also increased customer satisfaction and loyalty, which can go a long way for a start-up business.</p><h3>Conclusion</h3><p>In this article, you learned how to use GA4, BQ, and GLS to import, analyze, and visualize your web and app traffic data. You also learned how to use your dashboard to spot and fix problems with your web and app performance. These tools can help you understand your users better and improve your website or app for more conversions and revenue. You can also tailor your queries and dashboard to your specific needs and goals. But there are some things to remember.</p><p><strong>First</strong>, the codes and visualizations I showed you are just one of the many SQL queries and dashboards I made for my company. Each dashboard has a different purpose, such as product traffic, device category, traffic source, page performance, feature comparison, and so on. When you have tons of data it is generally a good practice to create a ETL (or ELT) pipeline first and then move on to the EDA step. This decreases execution time and data processing costs. So this work can get complicated if you don’t have a clear goal. It’s important to map out your platform features before you write your SQL queries. This will make your work more efficient. I also enriched my GA4 data with other internal data sources, which may differ depending on your needs. If you want to track all the important features on your platform, this work is very important. Anyone who looks at the dashboard will have a clear picture of the overall health of your platform, which is vital for your business and your users. You may also need to explore other ideas depending on your industry.</p><p><strong>Second</strong>, I used Google’s products mostly, but you can use other tools like PowerBI, Tableau, or Microsoft Fabric to do the same thing. Use the tool that you are comfortable with, the steps are similar to what I showed you. The main thing is to improve your KPI metrics, not the method — as long as it’s reliable!</p><p><strong>Third</strong>, Google offers templates for creating GA-based dashboards in Looker Studio. You can check them out too. But the templates and the GA-interface may not be enough for your unique needs and requirements. You may need to customize them a lot. That’s what I taught you in this guide, so don’t worry!</p><p>I hope this article was useful and informative for you. If you have any questions or feedback, please leave a comment below. Thank you for reading! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66491b5470fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/how-to-analyze-web-and-app-traffic-data-with-google-analytics-4-bigquery-and-looker-studio-66491b5470fd">How to Analyze Web and App Traffic Data with Google Analytics 4, BigQuery and Looker Studio</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are users just numbers?]]></title>
            <link>https://medium.com/design-bootcamp/are-users-just-numbers-fe1da09ad14d?source=rss-6e5d2bf1d5d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe1da09ad14d</guid>
            <category><![CDATA[user-research]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[hypothesis-testing]]></category>
            <dc:creator><![CDATA[Uttam Deb]]></dc:creator>
            <pubDate>Sat, 07 Jan 2023 14:38:33 GMT</pubDate>
            <atom:updated>2023-01-10T10:55:26.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_AEdlFu2oGLLnM0seh1mQ.png" /><figcaption>Background Credit: Matilda Wormwood</figcaption></figure><p>While sharing my thoughts on a post, I recalled a wonderful realization that occurred a few months ago. There was a case where I was studying some numbers of a user within our 10 Minute School App. She had purchased a course from our App. The course was recently released at that time, but data showed that she only watched the first few videos of that course over the period of almost a month. The most interesting thing about the numbers from this user was that the video watch percentage graph of the videos she watched maintained a steep decline. Meaning, she watched a certain portion of the first video, but gradually dropped as she watched less and less of the next few videos.</p><p>Can you guess what might have caused such a pattern in data? What is the matter here? To figure this out, we can create a few hypotheses based on some common findings:</p><p>1. She lost the patience or motivation to watch the next videos and complete the course.</p><p>2. She thought the course was of a specific type, but expectation did not match reality.</p><p>3. As an extension of the second hypotheses, she already knew the topics in these videos. Hence didn’t feel the need to watch them.</p><p>4. She did not have enough time any more in her life.</p><p>5. Technical issues and other issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t8e92WDBrkvS0aUaRe8ulA.jpeg" /><figcaption>IELTS course on the 10 Minute School website</figcaption></figure><p>Later, I was curious and reached out to the user via our agents. What resulted next was a thorough list of content discrepancies and the modality of the course was not appropriate. Our agents noted the pointers down beautifully and forwarded them to me. I studied them, expelled the irrelevant ones, analyzed them further and forwarded it to the next-in-line concerned team.</p><p>She had a story to tell. She bought the course with high hopes, yet we disappointed her with our product. Having vast knowledge about the course topic, she effectively pointed out our mistakes. She had to share her feedback. All we needed to do was listen. The numbers worked here like a “morse code”. It was a distress signal. We only decoded it.</p><p>Needless to say, this critical constructive feedback from this user later helped shape the next iteration of the course in question which received positive feedback from users. Now imagine if I were to study all those similar patterns in our data! We could discover something he couldn’t even begin to comprehend.</p><p>This is just one example of how beautifully qualitative and quantitative research come into play and complement each other.</p><p>Now imagine what were to happen if I reached out to all the people who had gradually lost interest in a product they purchased. Think about it for a second.</p><p>Firms like Nielson or Kantar can predict what we as an average human being are capable of doing in our day-to-day activities. What we love, what we don’t, how much we spend and what even what we are afraid of. Although these are not just based on numbers but also qualitative aspects of our quotidian life, the core thought process is the same. Companies like Microsoft and Google think of years ahead in the future. How do they do that? Glad you asked.</p><blockquote><strong>Numbers. Data. Trend.</strong></blockquote><p>So now back to the original question: Are users just a number or record? As you might have guessed, the answer to this question really depends. Numbers do really have a story to tell. Story of the user who is happy with your content. Story of the user who wants to provide feedback. Story of numerous frustrations.</p><blockquote><strong>Each number can be a story of YOU.</strong></blockquote><h3>Connect with me: <a href="https://cutt.ly/UttamDebFB">Facebook</a> — <a href="https://cutt.ly/UttamDebLI">LinkedIn</a> — <a href="http://uttamdeb670@gmail.com/">Email</a></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe1da09ad14d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/are-users-just-numbers-fe1da09ad14d">Are users just numbers?</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Content that consumes us]]></title>
            <link>https://medium.com/design-bootcamp/content-that-consumes-us-3ffe0039833a?source=rss-6e5d2bf1d5d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ffe0039833a</guid>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[content]]></category>
            <category><![CDATA[content-creation]]></category>
            <category><![CDATA[content-marketing]]></category>
            <category><![CDATA[storytelling]]></category>
            <dc:creator><![CDATA[Uttam Deb]]></dc:creator>
            <pubDate>Sat, 07 Jan 2023 14:30:00 GMT</pubDate>
            <atom:updated>2023-01-10T00:02:27.442Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03-LmcQhRD6l4RvvWtaZ3w.png" /><figcaption>Background Credit: Bing</figcaption></figure><p>We all watch tons of YouTube videos every day. Be it a video of a cat dancing or a “Know-How” video explaining what NFT actually is. We consume these ‘videos’. But what if I tell you there are some videos that can actually consume us. Let’s limit our discussion to positive consumption though.</p><p>Think. Have you ever come across a video that has you thinking or wondering about the content that makes you keep getting back to it over and over again? You save it so you may watch it at a later time again and again. It may be an educational video, a tech tutorial or a music video, right? Well, finding and creating such content is not an everyday occurrence. It takes effort to create and luck to find.</p><h3>Birth of a masterpiece</h3><p>Think about the creators of such content. This kind of content not only requires deep research about the topic itself but also the understanding of what the viewer actually wants to see. The presentation of the content has to be solid as well. Talking style, the art of teaching something comes to play here. You would want to place hook pointers which has the user directly stimulate higher brain activity. It can neither be too long or too short for the category of discussion, but just enough to hit the sweet spot. You have to lock a target group that you want to create this content for.</p><blockquote>What do they like? Do they like music? Do they like great visuals? Animations perhaps? Note them down.</blockquote><h3>Storytelling</h3><p>The power of telling a tale in an intriguing way was been an effective way of communication since the very days human set foot on this planet.</p><p>I bet you heard the above lines a lot if you are into that kind of thing. But the point here is that storytelling in the Technology era is much different than older times. It’s about visuals now. It’s about pictures. The sounds. Basically everything within the content itself is part of the storytelling process. When you create and combine all these elements is what makes a complete piece of content. That’s also when the magic happens.</p><blockquote>A perfect piece of content, or a great video in our case, requires a perfect blend of information, visuals and audio effects according to the habits of the target group audience.</blockquote><h3>Content that lives in your mind</h3><p>So here’s an example. Remember we were talking about a piece of content that you just can’t forget? Well, I keep going back to a YouTube video. Let’s analyze this video, TIMELAPSE OF THE UNIVERSE, created by John D. Boswell a.k.a. melodysheep in different platforms. The objective of this video is to demonstrate a time-lapse of the universe to when it will meet its end.</p><p>So, after watching the video for the first time, I would think, what’s even the point? Of all the conflicts in the world? Of corruption and disagreements? Shouldn’t we be studying science instead? Discovering things and unraveling new horizons? I mean just look at it. According to the video, even after trillions of years into the future, the clock has just began to tick.</p><blockquote>If you compare universe to a human life, it has just emerged from the womb.</blockquote><p>Every person you ever loved, all things that humans have achieved, all inventions — these barely scratches the surface of what’s possible — the grand scheme of things.</p><p>See? I have started to wonder. Wonder things that keeps my brain busy. You know what else does that? Great content and storytelling. These content will push your brain to think. Think about what you have just seen and heard. It doesn’t die out when you close the video. It lives on in an dormant state in our minds. It will then only come alive when environmental elements trigger them .</p><h3>Anatomy</h3><p>Take a look at this graph which shows the video views 3+ years since the release of the video. Now tell me, what do you see? Where is the lines representing views headed to?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNFbdzQvLG52x3NnZl7Cmw.png" /></figure><p>Look at the line. It maintains a consistent flow of views even after a significant amount of time. People like me, who are greatly drawn towards such content, re-watch the video multiple times, plus a fresh inflow of new unique viewers is also a constant here. And for a cherry on top, YouTube will suggest such content (videos getting a lot of traction) to certain group of users.</p><p>Now, again, creating such eternal content is not something that happens frequently. There is no written rule as all the factors will vary greatly from one particular topic to another. There is no guarantee that the content will become popular even if a creator has practically hit all sweet spots in different elements of creating it. The video in question, has five times more views than even the second highest watched video in the channel, melodysheep.</p><p>Finally let’s wrap it by having a look at what John Boswell has to say:</p><blockquote>The sustained success of Timelapse of the Future proves that people of all backgrounds are endlessly fascinated in where we come from and where we are going; this deep instinctual curiosity is what makes us human, and will be the key to building a prosperous future for our species, in spite of our flaws and stumblings.</blockquote><p>You can watch <em>Timelapse of the Future</em> here:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuD4izuDMUQA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuD4izuDMUQA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuD4izuDMUQA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/33527b42701ef3f65fae9deecbaaa983/href">https://medium.com/media/33527b42701ef3f65fae9deecbaaa983/href</a></iframe><h3>Connect with me: <a href="https://cutt.ly/UttamDebFB">Facebook</a> — <a href="https://cutt.ly/UttamDebLI">LinkedIn</a> — <a href="http://uttamdeb670@gmail.com/">Email</a></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ffe0039833a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/content-that-consumes-us-3ffe0039833a">Content that consumes us</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>