Skip to content
  • There are no suggestions because the search field is empty.

Using Google Analytics 4 (GA4) comparisons to analyze a single Foleon Doc

After you’ve successfully connected Google Analytics to a project, you’ll notice that Analytics gathers and compiles all metrics from all Foleon Docs within that project. In this article, we’ll explain how to analyze individual Foleon Docs using comparisons in Google Analytics.

💡 If you’re looking for information about connecting Google Analytics to Foleon, read our article Set up Google Analytics 4 (GA4) for your Docs.

Why Google Analytics compiles data from multiple Foleon Docs

As you might know, every Foleon Doc you create is part of a project. Each project has its own settings: a hostname, Google Analytics code, and default logos. These settings apply to every Foleon Doc within a project.

This means that when you add a Google Analytics code to the project settings, it will automatically be set for every Foleon Doc within that project. Thus, Google Analytics will gather and compile performance data on all Foleon Docs.

📖 Learn more about how projects work in our article Working with projects.

How to use comparisons to split up data for a single Foleon Doc

Using Google Analytics comparisons, you can break down the data by Foleon Doc and analyze each Doc individually.

Here’s how you create a comparison:

1. In Google Analytics 4, go to the Reports tab.

Screenshot reports


2. Review the date range in the top-right corner and adjust it to match the period you want to analyze for your Foleon Doc.

Screenshot date range


3. At the top of the report, click Add comparison.

Screenshot comparison


4. Click + Create new in the top right to create a comparison.

Create new comparison

5. In the Dimension drop-down, select hostname.

Select hostname

6. In the Match type field, choose how you want Google Analytics to match the hostname.

💡 In most cases, the option 'exactly match' works best if each Foleon Doc has its own unique hostname.

Choose match type

7. From the Values list, find and select the hostname that belongs to the Foleon Doc you want to analyze. This sets the filter criteria for your comparison.

💡 Not sure what your hostname is? We’ve explained it in detail below

Select value

8. Click Apply. Your report now shows data for your Foleon Doc.

Apply

 

How to find your hostname and Foleon Doc alias

The Foleon Doc is a hyphenated version of the name of a Foleon Doc. This is what you’ll need to insert in the field here. Depending on your hosting settings, the URL of your Foleon Doc is built up like this:

  • If you’re using the default hostname
    https://account-alias.foleon.com/project-alias/foleondoc-alias/page-alias

  • If you’re using a custom domain
    • Custom sub-domain:
      http(s)://your-subdomain.your-custom-domain.com/foleondoc-alias/page-alias
    • Custom root domain:
      http(s)://your-custom-domain.com/foleondoc-alias/page-alias
    • Custom root domain with reverse proxy:
      http(s)://your-custom-domain.com/proxy-path-prefix/foleondoc-alias/page-alias

💡 Read more about hosting settings in our article Hosting Foleon Docs.

For example, let’s take our The Crave newsletter (issue 41). This is what the URL looks like for that specific Foleon Doc:

https://thecrave.foleon.com/issue-41-engaging-customer-newsletters/

If we would want to analyze this Foleon Doc individually, we would copy the hostname (thecrave.foleon.com) and the Foleon Doc alias (issue-41-engaging-customer-newsletters) and paste that into the page path and screen class field.

  • Hostname: "thecrave.foleon.com"
  • Page path and screen class: "issue-41-engaging-customer-newsletters"

If we would also want to analyze our The Crave newsletter (issue 40), we would create another comparison and insert its hostname and Foleon Doc alias (issue-40-content-resolutions).

That’s it! You’ll now be able to analyze a Foleon Doc individually. Repeat this process for each Foleon Doc.