Banner

bridgetown-plausible-tag

License: MIT Gem Version Coverage Status Tests Linters Changelog

- [Installation](#installation) - [Configuration](#configuration) - [Usage](#usage) - [Demo](#demo) - [Contributing](#contributing) - [License](#license) ## Installation If you're running Bridgetown v0.15 or later, you can install this plugin via an automation to guide you through the configuration: ```bash bundle exec bridgetown apply https://github.com/andrewmcodes/bridgetown-plausible-tag ``` Otherwise, you can run this command to add this plugin to your site's Gemfile: ```shell bundle add bridgetown-plausible-tag -g bridgetown_plugins ``` or add the following to your `Gemfile`: ```ruby group :bridgetown_plugins do gem "bridgetown-plausible-tag", "~> 0.0.1" end ``` Run `bundle install` and then modify your `bridgetown.config.yml` configuration to point to your Plausible domain. ## Configuration ```yml # bridgetown.config.yml plausible: # Your Plausible domain. # Note that this domain should not include www or https:// # # Type: String # Required: true domain: example.com ``` ## Usage This plugin provides the `plausible` Liquid tag to your site. Use the tag in the head of your document: ```liquid {% plausible %} ``` [Refer to the Plausible Documentation for more information.](https://docs.plausible.io/plausible-script) ## Demo [bridgetown-plausible-starter](https://github.com/andrewmcodes/bridgetown-plausible-starter) This starter can be used to reproduce issues as well as provide an example of the plugin's usage. ## Contributing Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/andrewmcodes/bridgetown-plausible-tag/issues). You can also take a look at the [contributing guide](https://github.com/andrewmcodes/bridgetown-plausible-tag/blob/main/CONTRIBUTING.md). ## License This plugin is released under the [MIT License](LICENSE).