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.
⚠️ This article shows you how comparisons work in Google Analytics 4 (GA4) — previously called segments in Google’s Universal Analytics (UA). Are you still using Universal Analytics (UA)? Make the switch to GA4 to avoid missing out on data.
💡 If you’re looking for information about connecting Google Analytics to Foleon, read our article Set up Google Analytics 4 (GA4) for your Docs.
In this article
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 (previously called segments in Google’s Universal Analytics), you can split up the data per Foleon Doc and analyze them individually.
Here’s how you create a comparison:
1. In Google Analytics 4, go to the reports tab.
2. Check the date range and make sure to select the time period that is relevant to the Foleon Doc you want to analyze.
3. Click add 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.
5. Add another condition: Page 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.
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
- If you’re using a custom domain
💡 Read more about hosting settings in our article Hosting Foleon Docs.
For example, let’s take our February 2023 The Crave newsletter (issue 41). This is what the URL looks like for that specific Foleon Doc:
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 January 2023 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.