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

When 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 the data for a single Foleon Doc

Using Google Analytics comparisons, you can split up the data per 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. Check the date range and make sure to select the time period that is relevant to the Foleon Doc you want to analyze.

Screenshot date range


3. Click add comparison.

Screenshot comparison


4. Add hostname as a filter, find your hostname in the list, and select it as the filter criteria in the dimension values field.

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

Screenshot 2023-03-13 at 09.26.06


5. Add another conditionPage path and screen class (make sure the filter is set to AND — not OR). Paste your Doc alias in the dimension values. Make sure to select all values containing.

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

Screenshot 2023-03-13 at 09.41.55

7. Click apply. You’ve now created a comparison so you can analyze an individual Foleon Doc.

💡 Your comparison has now been saved in GA4 for you to revisit whenever you want.

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
    http(s)://your-subdomain.your-custom-domain.com/foleondoc-alias/page-alias
    Or
    http(s)://your-custom-domain.com/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.

Related articles