Skip to main content

Installation guides

Installing bahtu on a website can be a slightly different process depending on what tools you're using to manage your site.

We've put together several guides that cover popular website builders and content management systems (CMS). These can help you set up and start counting your site visitors in no time. Thanks to the members of our community, there are also third-party integrations and plugins for various frameworks.

Official integrations

These are built and maintained by the bahtu team. Unlike community plugins, official integrations stay current as the product evolves and are supported directly by us.

Add the snippet to the header of your site

To integrate your website with bahtu, you can manually insert our tracking snippet into the header section of your site. See the details here.

WordPress plugin

The official WordPress plugin handles installation, event tracking and dashboard access without any code. Built specifically for WordPress: supports WooCommerce revenue tracking, automatic form tracking, author and category stats, proxy mode and more. If your site runs on WordPress, this is the recommended setup.

Google Tag Manager template

The official GTM template is available in the Google Tag Manager community gallery. Install bahtu and configure event tracking from the GTM dashboard with no code changes. Works well for agencies managing multiple sites from a single GTM account.

Looker Studio connector

The official Looker Studio connector connects your bahtu data to Google's free data visualization tool. Build custom dashboards, branded client reports and views that blend bahtu data with other sources like ad spend or CRM data. Available on the Business plan.

NPM package

The official NPM package lets you add bahtu to any JavaScript project via your package manager. Built and maintained by the bahtu team. Useful for React, Vue, Next.js and other framework-based setups where installing via a script tag is impractical.

Run bahtu as a first-party connection

You can run bahtu script as a first-party connection from your domain name in order to bypass adblockers. Learn more here.

Server side tracking and mobile apps tracking

Our events API can be used to record pageviews and custom events server side without the use of JavaScript. You can use the events API to count users on your Android and/or iOS mobile apps too. Learn more here

Community contributed integrations

The integrations below are built and maintained by third parties in the open source community.

While we’re grateful for the contributions, we do not develop, audit or maintain these plugins, and we do not guarantee their compatibility. They may become outdated or stop working as platforms or bahtu evolve.

For a fully supported setup, we recommend using our official script or one of the official integrations listed above.

Website builders and CMS platforms

Step-by-step guides for popular website builders and content management systems.

PlatformTypeDetails
ButtondownGuideHow to add the script to your Buttondown site
CarrdGuideHow to add the script to your Carrd site
DiscourseGuideHow to add the script to your Discourse community
DocusaurusGuideHow to add the script to your Docusaurus site
GhostGuideHow to add the script to your Ghost site
HubSpotGuideHow to add the script to your HubSpot site
HugoGuideHow to add the script to your Hugo site
NextJSGuideSimple integration for Bahtu and NextJS with custom events
ShopifyGuideHow to add the script to your Shopify store
SquarespaceGuideHow to add the script to your Squarespace site
WebflowGuideHow to add the script to your Webflow site
WixGuideHow to add the script to your Wix site
Craft CMSPluginDashboard widgets to display analytics data from bahtu
DatoCMSPluginProvides a link to bahtu for the current record on the sidebar
DoctaveIntegrationHow to add bahtu to your Doctave project
Drupal (new module)PluginIntegrate bahtu, track custom events, block IPs, track file downloads, outbound links and more
DrupalPluginIgnore tracking on certain pages and by certain user roles
FlipsiteIntegrationInclude bahtu in your Flipsite settings and score 100% on Lighthouse
GitBookIntegrationTrack traffic in your published spaces from your bahtu dashboard
GravPluginAdd Bahtu to your Grav CMS site and configure it from the admin panel
HelpDocsIntegrationNative bahtu integration for your knowledge base
KirbyPluginFrontend snippet and Kirby panel
Magento / Adobe CommercePluginSave visited pages, access analytics in admin area, manage goals and more
MediaWikiPluginMediaWiki extension to enable Bahtu
Micro.blogPluginIntegrate Micro.blog with Bahtu. Add under "Find Plug-ins" in Micro.blog
Neos CMSPluginAdd Bahtu to your Neos site
NotionThird-partyUse a service like Potion or Super (paid tools) to add custom code to your Notion website
Open Journal Systems (OJS)PluginDisplays the bahtu dashboard in the editor dashboard for journal editors and managers
PayloadCMSPluginAdd charts and statistics widgets directly in your admin interface
PikaIntegrationWith a Pro account, you can add your own analytics and bahtu is officially supported
Podcastpage.ioIntegrationEnable the bahtu script through the "Integrations" page of your dashboard
PrestashopPluginAdd bahtu in Prestashop
PubliiPluginbahtu plugin for Publii
ReadymagGuideHow to add the script to your Readymag website
Sanity.ioPluginShow bahtu as an iframe inside of the Sanity dashboard
ShopwarePluginAdd Bahtu to Shopware 6 with custom events and ecommerce data
StatamicPluginA wrapper around the bahtu API that fetches analytics into your dashboard
SyliusPluginIntegrates bahtu seamlessly into your Sylius store
TYPO3PluginTYPO3 extension for bahtu
WordPressPluginOur official WordPress plugin (listed above in official integrations)

JavaScript frameworks and frontend libraries

PlatformDetails
Single-page applicationsbahtu integrates automatically with modern pushState based routers (React, Angular, Vue etc). No extra configuration needed
Hash-based routingIf your frontend framework uses the URL hash for routing, use our hash-based tracker
Turbo / TurbolinksDisable automatic pageview tracking for full control over when pageviews are triggered
GatsbyA Gatsby plugin for adding Bahtu to your Gatsby site
GridsomeA plugin to add Bahtu to your Gridsome site
HexoA simple Hexo plugin to inject bahtu script into your pages
NuxtNuxt module to natively integrate Bahtu
Vue.js & Nuxt.jsA Vue.js plugin and NuxtJS module for bahtu
Vue 3 & Nuxt 3bahtu module for Nuxt 3 and Vue 3
VuePressA VuePress-plugin for bahtu on your documentation website

Backend frameworks and server-side libraries

PlatformDetails
BridgetownProvides the bahtu Liquid tag & ERB helper to your Bridgetown site
Django-bahtuDjango module for easy bahtu integration, with Wagtail support
Django-bahtu-proxyModule to proxy requests and send server-side events to Bahtu
ElixirElixir library to push events to bahtu
GoGolang wrapper for the bahtu API
JekyllWeb analytics for Jekyll. Install the plugin, configure it and you're done
Laravel bahtuBlade view with the script tag for bahtu and a wrapper for custom events
Laravel bahtu APIA Laravel package for interacting with the bahtu API
Laravel bahtu ExcludeQuickly add a page to exclude your visits from bahtu
RR wrapper for the bahtu API
RubySimple wrapper to read the bahtu API with Ruby

Mobile and native app SDKs

PlatformDetails
Android SDKAn Android SDK for Bahtu
FlutterSend pageviews and custom events to bahtu
bahtuSwiftBahtu pageview and event tracking for Swift
AviaryInsightsEasy to use Swift package for recording pageviews and custom events for bahtu
Qt6 / QMLQt6 QML plugin for bahtu
Localhost for hybrid appsEnable bahtu to count visitors on localhost for Cordova, Capacitor and other hybrid apps

Documentation tools

PlatformDetails
DocusaurusHow to add the script to your Docusaurus site
MkDocsBahtu support in Material for MkDocs
Sphinx / Read The Docsbahtu Sphinx extension
TypeDocTypeDoc bahtu plugin for your built HTML docs

Special configurations

ConfigurationDetails
Google AMP PagesDeclare an AMP-analytics object on your AMP pages to track with bahtu
Google Chrome extensionsInstructions for tracking Chrome browser extensions with bahtu
DNT and offlineAdd Do Not Track and offline functionality via the analytics library
SegmentNo official integration, but you can integrate via Google Tag Manager

Monitoring and automation

PlatformDetails
Bubble.ioPlugin to integrate bahtu into Bubble
GrafanaObserve bahtu records from Prometheus in Grafana
n8nCommunity node for working with the bahtu API
PrometheusAdd bahtu records to Prometheus with the bahtu exporter

Data pipelines, warehouses and other ways of viewing bahtu stats elsewhere

See this list for data pipelines, warehouses and other ways of viewing bahtu stats elsewhere. For instance, our stats API, official WordPress plugin and official Google Looker Studio connector.


Let us know about any other integrations that you've built and we will feature them in this list. Thanks for your support!

Haven't tried bahtu yet? Start a free trial or view the live demo.