Custom Google Analytics Blog Category Report

This article is for advanced users/company admins

Website Settings Permission is needed 

These instructions assume you've already created a Google Analytics account for your website. If you haven't done this yet, go here: https://support.google.com/analytics/answer/1008015?hl=en

This article is a reference tool only - for further support with Google Analytics please visit https://support.google.com/analytics/?hl=en#topic=3544906

If you'd like SoCast to perform this work as a one-time service for you, please contact support@socastdigital.com to request a Statement of Work.

Instructions

  1. Set up Google Analytics to track Blog Categories (for additional details, go here: https://support.google.com/analytics/answer/2709829?hl=en)
    1. Sign into Google Analytics
    2. Click Admin in the left navigation
    3. Navigate to the property to which you want to add custom dimensions
    4. In the middle Property column, click Custom Definitions > Custom Dimensions
    5. Click New Custom Dimension
    6. In the Name field, type "Blog Category"
      This can be any string, but use something unique so it’s not confused with any other dimension or metric in your reports.
    7. Select the Scope
      Choose to track at the Hit, Session, User, or Product level. Read more about scope and how custom dimensions are processed in the Developer Guide.
      For the purpose of this report you will choose HIT however, you can opt to set up other reports as you see fit.
    8. Check the Active box to start collecting data and see the dimension in your reports right away. To create the dimension but have it remain inactive, uncheck the box.
    9. Click Create

      Note- If you have preexisting Custom Dimensions created in your account- the value indicated in the 'Index' column will represent the 'dimension_' indicated in the tracking code referenced below in Step #4 (example dimension1 )

  2. Set up a Blog Category Tracking report in Google Analytics (for additional details, go here: https://support.google.com/analytics/answer/1151300?hl=en)
    1. Sign into Google Analytics
    2. Navigate to your view
    3. Open Reports
    4. Click Customization > Custom Reports > New Custom Report
    5. In the report Title field, type "Blog Categories"
    6. In the report tab Name field, type "Categories"
    7. In the report Type field, select "Explorer"
    8. In the Metrics Groups section, click Add Metric
    9. Search and add "Pageviews" and "Unique Pageviews"
      Optionally add additional metrics
    10. In the Dimensions Drilldown section, click Add Dimension
    11. Search and add "Blog Category" and then "Landing Page"
      Optionally add additional dimensions
    12. (Optional) In the Filters section, click Add Filter to limit the report to specific dimensions
    13. (Optional) In the Views section, select where this report should appear. Use the drop down menu to select specific views, or select "All views associated with this account" to allow this report on all views you have access to.
    14. Ensure fields are set up as the following:
    15. Click Save
  3. Get your Google Analytics tracking code
    1. Sign into Google Analytics
    2. Click Admin in the left navigation
    3. Navigate to the property to which you want to add custom dimensions
    4. In the middle Property column, click Tracking Info > Tracking Code
    5. Copy the Tracking Code (e.g. UA-55555555-5)
  4. Set up Google Analytics in the SoCast Platform
    1. Sign into to the SoCast Admin Panel 
    2. Click Website> Website Settings
    3. On the General tab, scroll down the Custom Footer HTML
    4. Paste the below code, into the Custom Footer HTML box
    5. Replace GOOGLE_ANALYTICS_TRACKING_ID (two instances) to your specific Tracking Code for your website obtained from the previous step

      Google Analytics Tracking Code
      <!-- Global site tag (gtag.js) - Google Analytics -->
      <script async src="https://www.googletagmanager.com/gtag/js?id=GOOGLE_ANALYTICS_TRACKING_ID"></script>
      <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
      
        gtag('config', 'GOOGLE_ANALYTICS_TRACKING_ID', {
            "dimension1":"%socast.blog.categories%"
        });
      </script>
  5. View your Blog Categories report
    1. Sign into Google Analytics
    2. Navigate to your view
    3. Open Reports
    4. Click Customization > Custom Reports > Blog Categories


Filter by label

There are no items with the selected labels at this time.