Title: Soapberry
Author: Brooke.
Published: <strong>2020 年 1 月 2 日</strong>
Last modified: 2020 年 7 月 4 日

---

搜索插件

![](https://ps.w.org/soapberry/assets/banner-772x250.jpg?rev=2221318)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/soapberry/assets/icon-256x256.png?rev=2221318)

# Soapberry

 作者：[Brooke.](https://profiles.wordpress.org/brookedot/)

[下载](https://downloads.wordpress.org/plugin/soapberry.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/soapberry/#description)
 * [评价](https://cn.wordpress.org/plugins/soapberry/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/soapberry/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/soapberry/#developers)

 [支持](https://wordpress.org/support/plugin/soapberry/)

## 描述

Soapberry makes it possible to use an externally hosted [Ackee](https://ackee.electerious.com/)
analytics instance with your WordPress site without editing any code. It provides
a settings page in WP Admin to add the required JavaScript tracking elements to 
your site’s footer.

To use this plugin, one must have access to an Ackee instance set up with a Domain
ID and [CORS headers](https://docs.ackee.electerious.com/#/docs/CORS%20headers) 
matching that of the WordPress domain.

The upstream Ackee project describes the project as a:

> Self-hosted, Node.js based analytics tool for those who care about privacy. Ackee
> runs on your own server, analyses the traffic of your websites and provides useful
> statistics in a minimal interface.

The plugin’s current functionality is limited to the essential features of addding
the JavaScript tracker to the footer with an option to disable tracking of logged
in visits. In the future, this functionality might extend to tracking based on user
roles or the ability to use Ackee’s personalization analytics with the visitor’s
consent.

## 屏幕截图

 * [[
 * Soapberry Settings Page in WP Admin.

## 安装

The quickest method for installing Soapberry is:

 1. Visit Plugins -> Add New in the WordPress admin
 2. Search for “Soapberry”
 3. Click “Install Now”
 4. Once the install is complete, click “Activate”.
 5. Go to the Settings -> Soapberry to add your Ackee settings.

If you would prefer to do things manually, then follow these instructions:

 1. Upload the `soapberry` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to the Settings -> Soapberry to add the Ackee settings.

## 常见问题

### Why Soapberry?

The [Ackee plant](https://en.wikipedia.org/wiki/Ackee) is in the Sapindaceae (soapberry)
family. The name Soapberry strives to indicate this plugin is complementary to the
work by the Ackee project while by unique enough to make clear that the two are 
not formally associated. Fun fact, the fruit of the Soapberry plant is used to make
soap which is where Sapindus got its secondary name.

### The plugin is active but I do not see the tracking code.

First, make sure your theme has the `wp_footer()` function added before the closing
body tag. The plugin hooks into the WordPress footer, making this template tag required.

If you’re still not seeing the tracking code, make sure your settings have been 
saved, and you do not have the “Exclude Logged In” checkbox enabled. If you are 
excluding logged in visits, then try loading your site in a private tab or another
browser.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Soapberry」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Brooke. ](https://profiles.wordpress.org/brookedot/)

[帮助将「Soapberry」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/soapberry)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/soapberry/)，查看[SVN仓库](https://plugins.svn.wordpress.org/soapberry/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/soapberry/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/soapberry/)。

## 更新日志

#### 1.1.0

 * Fixed: tracking script is now output with a line break at the end.
 * Fixed: Validation improvements for Ackee Domain ID and consent cookie fields.
 * Enhancements: PHPCS ignore is more explicit.
 * Added: Respects Do Not Track by default with an option to override and always
   output the tracker.
 * Added: A cookie setting to allow visitors to opt-in to Ackee.
 * Added: An option to output the detailed view.

#### 1.0

 * Inital release

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.1 或更高版本 **
 *  已测试的最高版本为 **5.4.19**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/soapberry/)
 * 标签
 * [analytics](https://cn.wordpress.org/plugins/tags/analytics/)[stats](https://cn.wordpress.org/plugins/tags/stats/)
   [tracking](https://cn.wordpress.org/plugins/tags/tracking/)
 *  [高级视图](https://cn.wordpress.org/plugins/soapberry/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/soapberry/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/soapberry/reviews/)

## 贡献者

 *   [ Brooke. ](https://profiles.wordpress.org/brookedot/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/soapberry/)