Integrations

webdoc provides integrations for analytics, search, social graphs, and with more to come. These integrations are configured in the template.integrationssection of the webdoc configuration.

Analytics

webdoc allows you to add analytics tracking from Google Analytics or Plausible. You can configure which analytics provide you use with template.integrations.analytics.provider.

Google Analytics

{
    "template": {
        "integrations": {
            "analytics": {
                "provider": "google-analytics", // Adds GA script to generated pages
                "trackingID": "UA-XXX-00"       // Unique identifier from GA
            }
        }
    }
}

Plausible

Plausible is an open-source and privacy friendly analytics service.

{
    "template": {
        "integrations": {
            "analytics": {
                "provider": "plausible",     // Adds script from plausible.io
                "nakedDomain": "example.com" // Site domain tagged in plausible.io dashboard
            }
        }
    } 
}

Search

webdoc provides an integration with Algolia DocSearch so you can serve full-text search to your audience. You will have to use the Algolia DocSearch (legacy) crawler to index your website before configuring the integration. The webdoc integration adds a text search bar in the app bar.

You will need your application id, its api key, and the index name that provides search result in the configuration:

{
    "template": {
        "integrations": {
            "search": {
              "provider": "algolia",
              "apiKey": "kadlfj232983lkqwem",
              "indexName": "webdoc-example",
              "appId": "349o39841;akdsfu"
            }
        }
    }
}
Powered by webdoc!