Analytics and chat
Connect Google Analytics, Tag Manager, PostHog, Plausible, Fathom or Intercom to a hosted docs site by ID, behind a consent bar readers accept first.
Your hosted site can send page views to your own analytics and show your Intercom chat. You enter an ID, and Rimfe adds the provider's standard code. Open Settings, then Analytics and chat. Owners and admins can change these settings. Saving rebuilds the site.
Providers
| Provider | What to enter | Waits for consent |
|---|---|---|
| Google Analytics | Measurement ID, like G-ABC123XYZ | Yes |
| Google Tag Manager | Container ID, like GTM-ABC1234 | Yes |
| PostHog | Project API key (phc_...) and the US or EU cloud | Yes |
| Plausible | The site's domain in Plausible, and the address of a self-hosted Plausible if you run one | No |
| Fathom | Site ID | No |
| Intercom | App ID and the region of your workspace | Yes |
Only these providers are supported, and only by ID. Sites can't add their own scripts, styles or HTML.
Providers load on every page and count each page a reader opens, including pages opened from the sidebar without a full reload:
- Google Analytics counts them through enhanced measurement's page changes based on browser history events, which are on by default.
- Google Tag Manager gets a
rimfe.page_viewevent in the data layer, withpage_path, on each page change. - PostHog, Plausible and Fathom count page changes on their own.
Tag Manager's container can load only what the site allows: tags from Google Analytics and Tag Manager. Custom HTML tags and other vendors' tags are blocked.
Consent
Ask readers first is on by default. Google Analytics, Tag Manager, PostHog and Intercom then wait until the reader chooses Accept on a bar at the bottom of the page. Decline keeps them off. Plausible and Fathom set no cookies, so they load without asking.
The choice is kept on that browser. Cookie settings in the footer opens the bar again. A reader who declines after accepting has the providers' cookies cleared.
You can change the bar's sentence under Consent message. It is one line of plain text, up to 160 characters.
Nothing loads, and no bar shows, for readers whose browser sends Do Not Track or Global Privacy Control. Nothing loads in the Customize preview either.
Private sites
Private sites load no analytics or chat. Your settings are kept and apply again if the site becomes public.
Privacy
You are responsible for meeting each provider's privacy obligations, such as your privacy policy, a data processing agreement and the consent your readers' countries require. Rimfe's own reader analytics keep working either way and use no cookies.
Last updated