Category: Google Analytics

 

Optimization Insights – Google Analytics

Uncover hidden insights, optimize your website, and boost conversions. Master Google Analytics, the ultimate web analytics tool.

  • Google Analytics 4 (GA4) ECommerce Scatter Plot

    Quickly spot products with high conversion & sales potential in the Google Analytics 4 ECommerce Purchase Report

    Identifying products with high potential for increased conversion rates can be an effective way to quickly driving revenue and business growth. Google Analytics 4 (GA4) offers valuable insights into customer behavior and product performance, enabling you to make informed decisions about product promotion and marketing strategies.

    The ECommerce Purchase Report in GA4 provides a comprehensive overview of your product sales data. However, to quickly identify products with high potential for increased cart rates and higher views, consider utilizing the scatter plot chart. This visualization tool allows you to analyze product performance based on two key metrics: Add-to-Cart Rate and Product Views.

    Google Analytics 4 (GA4) ECommerce Purchase Report Scatter Plot Diagram

    Understanding the Scatter Plot

    The scatter plot diagram in the ECommerce Purchase Report positions each product as a data point on a two-dimensional graph. The horizontal axis represents the product view count, while the vertical axis represents the items added to cart. This positioning provides valuable insights into each product’s ability to generate interest and encourage customers to add products to their carts.

    Identifying Products with High Potential

    By analyzing the scatter plot, you can categorize products into four distinct quadrants:

    Top Left Quadrant: Higher Cart Rate, Fewer Views

    Products in this quadrant have a high cart rate but generate relatively few views. Shoppers are interested in these items and show purchase intent by adding the to their carts, but there’s a significant opportunity to increase sales by improving visibility. Consider promoting these items, featuring or repositioning them on category and search results pages, exploring product photography, advertising, and social media marketing.

    Top Right Quadrant: Higher Cart Rate, Higher Views

    Products in this quadrant represent your top performers, consistently attracting customers and encouraging them to add products to their carts. Prioritize these products for marketing campaigns and promotions to maximize their revenue potential.

    Bottom Right Quadrant: Lower Cart Rate, Higher Views

    These products have high product view counts but a low cart rate. While they generate interest, there’s an opportunity to improve cart conversion and sales by addressing potential issues and friction points, such as customers need for more product information, competitive pricing, customer reviews/confidence, and product positioning.

    Bottom Left Quadrant: Lower Cart Rate, Fewer Views

    These products could be winners but fall relatively short in both cart rate and views, compared to other items. Evaluate them and use the tactics about to improve them accordingly.

    Summary

    By analyzing the scatter plot and understanding the four quadrants, you can quickly identify products with high potential for increased cart rates and higher views, enabling you to prioritize marketing efforts, optimize product strategies, and ultimately drive sales & revenue growth.

    There are opportunities in all quadrants, but we generally recommend starting with the Top Left and Bottom Right quadrants. These each have one of the two components (higher cart rate or higher views) that will typically enable you to drive revenue more quickly.

    Google Documentation – https://support.google.com/analytics/answer/12924131


    Can We Assist?
    Expert Advice in Just a Few Clicks
    Name
    How Can We Help?
  • Using the Google Analytics Data API to Pull GA4 Data into Google Sheets

    The Google Analytics Data API is a powerful tool that enables you to access, process, and analyze your Google Analytics 4 data from anywhere, including Google Sheets. By using the API, you can pull data from Google Analytics 4 into a Google Sheets spreadsheet, where you can manipulate and visualize it in any way you need.

    Access Google Analytics 4 Data from Google Sheets

    The method outlined below is for advanced solutions that require more control or customization of the data transfer process, custom menu options, and user functionality in Google Sheets. For simple reports and data transfer needs, you can export data files from GA4 and import them into Google Sheets using the menu options in those tools. You can also use a Google Sheets Add-on such as the official GA4 Reports Builder for Google Analytics from Google, Michele Pisani’s GA4 Magic Reports Add-On, the SyncWith Google Sheets Add-on, or the API Connector for Google Sheets from Mixed Analytics, which all enable users to create and run reports on GA4 data from within Google Sheets.

    Any of those may serve as a quick and relatively easy method to perform most common tasks, but if you need more advanced functionality, read on…

    Basic Steps and Sample Code

    1. Enable the Google Analytics API. To do this, go to the Google Developers Console and select your project. Then, click the APIs & Services tab and search for Google Analytics Data API. Click the Enable button next to the API.
    2. Create a Google Sheets spreadsheet.
    3. Create a new Apps Script. In the spreadsheet, go to Extensions->Apps Script.
    4. Add the Google Analytics Data API client library to your script. In the Apps Script editor, click on the plus (+) sign next to the Services Headers to Add a Service. Scroll to find the Google Analytics Data API. Select the service and click the Add button.
    5. Write a script to pull data from Google Analytics 4. The following is a simple script that you can use to pull data from Google Analytics 4 into a Google Sheets spreadsheet. Feel free to start with this script and modify it as needed to suit your specific requirements.
    /* Copyright 2023 Optimization, LLC (o10n)
     * version 1 - Modified Dimensions & Metrics for this example and Added OrderBy functionality
     *
     * Derived from Google LLC, Copyright 2021
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *     https://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    function pullDataFromGA4() {
      // Set the Google Analytics 4 property ID.
      const propertyId = 'YOUR_GA4_PROPERTY_ID';
      try {
        // Construct Dimensions Array
        const dimension = AnalyticsData.newDimension();
        dimension.name = 'date';
        // Construct Metrics Array
        const metricsArray = [];
        const totalUsers = AnalyticsData.newMetric();
        totalUsers.name = 'totalUsers';
        metricsArray.push(totalUsers);
        // Construct Date Range
        const dateRange = AnalyticsData.newDateRange();
        dateRange.startDate = '7daysAgo';
        dateRange.endDate = 'yesterday';
        // Construct Order By
        const orderBy = AnalyticsData.newOrderBy();
        orderBy.desc = false;
        const dimOrderBy = AnalyticsData.newDimensionOrderBy();
        dimOrderBy.dimensionName = dimension.name;
        dimOrderBy.orderType = 'NUMERIC';
        orderBy.dimension = dimOrderBy;
         
        // Construct Report Request
        const request = AnalyticsData.newRunReportRequest();
        request.dimensions = [dimension];
        request.metrics = [metricsArray];
        request.dateRanges = dateRange;
        request.orderBys = orderBy;
        // Run the report.
        const response = AnalyticsData.Properties.runReport(request, 'properties/' + propertyId);
        // Get Active Sheet and Clear All Data
        const sheet = SpreadsheetApp.getActiveSheet();
        sheet.clear();
       
        // Construct Header
        const dimensionHeaders = response.dimensionHeaders.map(
            (dimensionHeader) => {
              return dimensionHeader.name;
            });
        const metricHeaders = response.metricHeaders.map(
            (metricHeader) => {
              return metricHeader.name;
            });
        const headers = [...dimensionHeaders, ...metricHeaders];
        // Write Header to Sheet
        sheet.appendRow(headers);
       
          // Construct Row Data
          const rows = response.rows.map((row) => {
            const dimensionValues = row.dimensionValues.map(
                (dimensionValue) => {
                  return dimensionValue.value;
                });
            const metricValues = row.metricValues.map(
                (metricValues) => {
                  return metricValues.value;
                });
            return [...dimensionValues, ...metricValues];
          });
          // Write Row Data to Sheet
          sheet.getRange(sheet.getLastRow(), 1, response.rows.length, headers.length)
              .setValues(rows);
      } catch (e) {
        console.log('Failed with error: %s', e.error);
      }
    }

    To use the script, replace YOUR_GA4_PROPERTY_ID with the ID of your Google Analytics 4 property. You can find the property ID in the Google Analytics 4 interface (it’s the ID listed in Admin->Property Settings).

    Once you have replaced the property ID, you can run the script by clicking the Run button in the script editor. The script will pull data from Google Analytics 4 and write it to the spreadsheet.

    You can modify the script to pull different dimensions and metrics, or to filter the data. You can also use the script to pull data from multiple Google Analytics 4 properties or to pull data from different date ranges. Visit the Google Apps Script Analytics Data Service API Reference, for more information.

    Examples of using Apps Script with the Google Analytics Data API

    There are many benefits to using the Google Analytics Data API to pull data from GA4 into a Google Sheets spreadsheet:

    • Automated Data Retrieval: Automate the data pull process, so that you don’t have to manually export data from Google Analytics 4 into Google Sheets.
    • Data Aggregation: Easily combine data from multiple sources like Google Analytics 4, CRM, or ERP into one spreadsheet.
    • Data Flexibility: Re-Organize, manipulate and filter data in any way you need to.
    • Tailored Reporting: Create custom reports and visualizations that are tailored to your specific needs.
      BONUS ECommerce SEO Tip – Identify products with the most organic search traffic and no sales (zero-converting organic search traffic) by importing visitor source, landing page, and order data. Filter to product pages from organic search, with no sales orders, and sort by page views in descending order. Analyze these pages to determine why they aren’t converting!
    • Custom Menus and Functions: With Google Apps Script, you can create custom functions and menus in Google Sheets (and other Google Workspace apps) that extend your data processing capabilities and provide users with more control.

    Google Sheets and the Google Analytics Data API are both powerful tools for marketers, analysts, and website owners. Combining them will help you unlock the full potential of your GA4 data.


    Can We Assist?
    Expert Advice in Just a Few Clicks
    Name
    How Can We Help?
  • Google Apps Script

    Google Apps Script is a versatile tool for optimizing tasks and tailoring experiences. Developed by Google, this scripting language allows users to automate actions and expand the functionality of Google applications. Whether you’re a coding expert or a novice, grasping the fundamentals of Google Apps Script can unlock efficiency and innovation.

    Google Workspace

    But What Is It?

    Google Apps Script is a cloud-based JavaScript platform enabling users to create personalized applications, automate routines, and seamlessly integrate with diverse Google services. Its primary purpose is enhancing Google Workspace applications like Sheets, Docs, Gmail, and Drive. Individuals can customize these applications by crafting code within Apps Script to align with specific needs.

    What Can It Do?

    Apps Script isn’t just a tech concept; it’s a practical solution that can transform the way you use Google applications. Here are some real-world examples of what Apps Script can do:

    • Add custom menus, dialogs, and sidebars to perform functions in Google Sheets, Docs, Forms…
    • Automate and Schedule Tasks in Google Sheets, Docs, Forms…
    • Connecting with other Google Services like Google Analytics, Drive, Gmail, YouTube, etc.
    • Pull Data from corporate/enterprise CRM and ERP systems.
    • Create Web Apps, & much more!

    These examples barely scratch the surface of what Apps Script can achieve. From simplifying your workflow to creating entirely new tools, this scripting platform puts you in control of your digital experience. So, whether you’re streamlining tasks or dreaming up new ways to work smarter, Google Apps Script has the potential to be a valuable resource in your technological toolkit.

  • Exporting Universal Analytics Data with GA Query Explorer

    Google officially announced that on July 1, 2024, access to the Universal Analytics (GA3) user interface and API will be discontinued for all users, including those utilizing Google 360 properties. To address this, here’s a free and simple solution to archive your data, or easily export it to merge with data from GA4 or other sources.

    How to Use Google Analytics Query Explorer for UA Data Export

    This tool can be used for GA4 data as well, but this list focuses specifically on the UA Query Explorer. Here’s a step-by-step breakdown of how to use this powerful resource:

    1. Open Google Analytics Query Explorer at ga-dev-tools.google/query-explorer/
    2. Select Your Account and Property: Begin by signing into your Google account and select the specific account, property, and view that you want to work with. This sets the foundation for your setting up your data export queries.
    3. Set Query Parameters: The “Set query parameters” section is where most selections happen
      • Date range: This is where you select the date range for your query. You can use any of the following formats to select the dates
        • Calendar date, such as 2021-01-31
        • Relative date, such as today or yesterday
        • NdaysAgo value, such as 30daysAgo or 7daysAgo
      • Metrics: These are quantitative measurements that provide insights into different aspects of user interaction. You could run the query here to make sure that all of the metrics that you chose are compatible. (Examples- Pageviews, New Users, or Impressions)
      • Dimensions: These are the qualitative attributes that provide some context to your metrics. they answer questions like “How did users arrive at my site?” and “Where are my users located?”. (Examples: Source/Medium, Country or Region, and Device Category)
      • Filters (optional): Allow you to narrow down your data set to focus on specific subsets of information.
      • Segments (optional): Enable you to isolate specific groups of users or sessions within your data for more targeted analysis.
    4. Run Query: With your parameters in place, hit the “Run Query” button. The Query Explorer will generate a report of your specific data and list it at the bottom of the page
    5. Export: Once you have your report, you can export it as a TSV file. This way your data is stored outside of Google Analytics and the Query Explorer, and free for you to use in any way you need. Alternatively, you can copy the API Request URL to integrate the data into other applications.
    6. Repeat: Repeat the process above to archive all the metrics and dimensions that you may want to archive for future reference.

    In a world where data reigns supreme, having the ability to archive your Universal Analytics data before it fades away is an opportunity you shouldn’t miss. There are many other ways to do this, 1) Exporting Individual Reports directly from UA, 2) Using the Google Analytics Reporting API, 3) Using one of the Google Sheets Add-Ons, 4) using Big Query (great for large data sets). Here’s a link for more info – https://support.google.com/analytics/answer/11583528#export.

    While there are numerous paths available, the Google Analytics Query Explorer and related UA Dimensions & Metrics Explorer (available on the same site) will empower you to explore the UA data available and make it relatively easy to query and export the data to files you want to archive.


    Can We Assist?
    Expert Advice in Just a Few Clicks
    Name
    How Can We Help?
  • GA4 Explorations: Deeper Insights and Data Visualization

    Google Analytics 4 (GA4) has leveled-up how businesses analyze their website and app data, offering new features and tools to view performance data and make data-driven decisions. One such powerful tool is GA4 Explorations, which provides marketers and data analysts with enhanced data exploration and visualization capabilities. In this article, we’ll introduce GA4 Explorations and point out some of the key differences between GA4 Explorations and the standard GA4 Reports.

    Intro to GA4 Explorations

    In today’s changing digital marketing world, making data-based decisions is essential for success. The Google Analytics 4 (GA4) Explorations tool allows users to delve deep into their analytics data to extract more valuable insights. Unlike the predefined reports in the Reports tab, Explorations will enable you to create custom queries and visualize data according to more advanced requirements. To get started, follow these steps:

    1. Accessing GA4 Explorations: In the left-hand menu of GA4, click “Exploration.” A blank canvas or several templates will be displayed for you to choose and explore. 
    2. Building Your Exploration: Begin by selecting the dimensions and metrics you want to analyze. These can be anything from user demographics to behavioral patterns. Add filters to focus on specific segments or events.
    3. Visualizing Your Data: GA4 Explorations offers various exploration templates, including Free form, Funnel exploration, and Path exploration that determine how you want to visualize your data. Choose the one that best suits your needs and provides a clear representation of insights.
    4. Interacting with Data: Unlike static reports, Explorations allows users to interact with the data directly. You can zoom in on specific data points, apply date range adjustments, and even pivot your data to reveal alternative perspectives.

    Visit Google’s guide for more information

    Key Differences Between GA4 Explorations and GA4 Reports:

    While both GA4 Explorations and the GA4 Reports serve the purpose of data analysis, they present information in different ways:

    1. Flexibility and Customization: Explorations are highly customizable, allowing you to tailor your data analysis to your precise needs. Conversely, GA4 Reports offers predefined reports with limited customization options.
    2. Data Visualization Options: Explorations offer a more comprehensive range of visualization options, enabling users to present data in unique and insightful ways. GA4 Reports, though extensive, may have a different level of flexibility in data representation.
    3. Exploration vs. Reporting Mindset: GA4 Explorations empowers users to explore data in different ways to reveal new patterns, correlations, and insights. GA4 Reports are more suitable for users seeking pre-packaged performance results.

    In conclusion, GA4 Explorations is more valuable tool for businesses seeking deeper and more customized insights from their analytics data. Marketers can uncover hidden trends and opportunities by leveraging its dynamic charts and exploring data interactively, propelling their decision-making to new heights. Embrace GA4 Explorations today and unlock the full potential of your data analysis capabilities.

  • Data Retention in GA4 

    Change GA4 data retention from 2 to 14 months

    Data Retention Settings in Google Analytics 4 (GA4) help businesses manage how long data is stored within the platform. This feature helps ensure compliance with data protection rules while balancing data availability and storage space.

    Set to 14 Months for Year over Year Comparisons

    Google currently offers 2-month and 14-month options for how long user-level data is kept. We recommend setting this to the maximum 14-months so you can run reports with Year-Over-Year comparisons, and also to maximize the amount of data you have available in the GA4 Explorations Tool.

    Choosing the right option depends on compliance requirements, data analysis needs, and cost management. Consider your specific business objectives, regulatory environment, and historical data requirements when deciding how long to keep the data. Official Google Analytics Data Retention Documentation.

    FYI: When the retention period is changed to 14 months, that new retention period is applied to any data that was already collected.

    These settings provide flexibility for businesses to manage data storage while following privacy regulations. By selecting the right retention period and following good practices, organizations can maximize the data available for analysis while keeping user privacy and data security in mind.


    Can We Assist?
    Expert Advice in Just a Few Clicks
    Name
    How Can We Help?
  • Form Submissions Not Always Tracked by GA4

    Google Analytics on Tablet

    Google Analytics 4 (GA4) gives powerful insights into your website performance, including tracking form submissions. However, it’s essential to understand that GA4’s automatic form submit tracking does not track AJAX forms by default. This limitation can result in incomplete data analysis. Thankfully, you can overcome this hurdle by configuring GA4 with an AJAX listener in Google Tag Manager (GTM). This article will explore why GA4’s automatic tracking falls short for AJAX forms and how creating a custom GTM tag can help address this issue.

    The Limitation of GA4’s Automatic Form Submission Tracking

    GA4’s automatic form submit tracking is based on events like button clicks and page loads. This default setup doesn’t account for AJAX forms, which submit without reloading the entire page. Without reloading the page, GA4 may not capture these form submissions, leading to gaps in data and incomplete insights into user behavior.

    Solve Using an AJAX Listener in Google Tag Manager

    To accurately track AJAX forms in GA4, you can utilize Google Tag Manager to create an AJAX listener using a custom HTML tag.

    Creating a custom GTM tag for tracking AJAX forms offers several benefits to businesses:

    • Accurate Tracking: Custom GTM tags ensure that all AJAX form submissions are properly tracked in GA4, providing comprehensive data insights.
    • Enhanced Analysis: With accurate tracking, businesses gain a deeper understanding of user engagement, conversion rates, and form performance, enabling them to make data-driven decisions.
    • Optimization Opportunities: Detailed tracking allows businesses to identify potential bottlenecks or issues in AJAX forms, optimize user experiences, and drive higher conversions.

    This article from Analytics Mania goes through the detailed steps to make a custom HTML tag with an AJAX listener to track these form submissions. 

    In Conclusion

    While GA4’s automatic form submit tracking is valuable, it needs to catch up when tracking AJAX forms. However, businesses can overcome this limitation by configuring GA4 with a custom GTM tag. By creating a custom HTML tag within GTM and setting it up to capture AJAX form submissions, businesses ensure accurate data collection and gain valuable insights into user behavior and form performance. This configuration empowers businesses to optimize their websites, improve user experiences, and drive greater success in their online ventures.