[WordPress] 外掛分享: Simple Content Experiments

WordPress 外掛 Simple Content Experiments 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Simple Content Experiments」是 2014-09-18 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2019-12-27,距離現在已有 1953 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.2.1 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.3.3 以上。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

lonkoenig | firebrandllc |

外掛標籤

google | testing | adopt-me | a b testing | content experiments |

內容簡介

截至2019年8月,Google已不再允許使用實驗 API 來開展新的實驗。

因此,這個專案不會更新。

請使用Google Optimize。

Google作為Analytics的一部分提供了一個免費的內容測試服務,稱為Google Experiments。

注意:Google目前正在逐步淘汰Analytics Content Experiments。

Google Optimize 是免費的首選實驗執行方式。Analytics Content Experiments 目前仍然可用,但將在未來被淘汰。

我們目前支援這個外掛,但隨著Content Experiments API開始逐步淘汰,我們將停止支援此外掛。

在Google Experiments的簡單(網頁)表單中,使用者會被重新導向到一個包含變化(變異體)的單獨頁面。這裡有一些外掛可以幫助您實現這個方案。

簡單內容實驗外掛實現了Content Experiments Without Redirects (Browser-only implementation)中描述的「Client-side」模型。
這個方案比較複雜,但允許更多的靈活性。
簡單內容實驗外掛允許您在單個頁面上定義包含多個變化的區域,並使用簡單的短代碼。
例如,您可以比較兩個用於呼籲點擊的圖片哪個更能吸引使用者點擊。

使用這個外掛,您需要:

在您的站點上安裝 Google Universal Analytics
Content Experiment
您的實驗ID(在上面設置實驗時會顯示)

樣本內容實驗:

[experiment id="EXPERIMENT ID"]
[ex_variant]
第一個變化的內容
[/ex_variant]
[ex_variant]
第二個變化的內容
[/ex_variant]
[/experiment]

特色:

允許頁面內變化。您不需要為每個變化創建一個整個網頁
簡單的短代碼語法
使用Google Experiments API來確定哪些用戶看到哪些變化
添加類(“xvariantclick”)和自定義數據屬性(“data-xvariant”),可用於分析事件目標和跟踪

目標和跟踪:

實驗變換中的錨點會獲得額外的類:“xvariantclick”
此類可以與Google標籤管理器一起使用,創建一個根據對這些元素的點擊響應的規則。

注意:如果您正在使用Google標籤管理器,您需要創建一個觸發器和標籤,才能正確運行該實驗。
請參見名為“Google標籤管理器”的一節,了解如何設置。

Google Analytics實驗:

要在實驗內部跟踪點擊的項目,請在目標定義中使用這些新的事件。
您可以查找一個事件,在“類別”中等於“實驗”或等於您上一次定義的類別的事件。

調試

您可以通過將以下內容添加到您的wp-config.php文件中,啟用JavaScript控制台日誌調試信息:

/** Enable console log

原文外掛簡介

As of August 2019, Google no longer allows new Experiments using the Experiments API.
So this project will not get updated.
Please use Google Optimize.
As part of Analytics, Google offers a free content testing service called Google Experiments.
NOTE: Google is deprecating Analytics Content Experiments.

Google Optimize is the free, preferred way to run experiments. Analytics Content Experiments remain available but are being deprecated in the future.

We are currently supporting this plugin, but will discontinue support as the Content Experiments API becomes deprecated.
In the simple (page) form of Google Experiments, the user is redirected to a separate page which contains the variation. There are a number of plugins that can help you implement this scheme.
The Simple Content Experiments plugin implements the “Client-side” model described in Content Experiments Without Redirects (Browser-only implementation)
This scheme is more complicated to set up, but allows more flexibility.
The Simple Content Experiments plugin allows you to define sections within a single page that contain multiple variations with simple shortcodes..
For example, you can test if one call-to-action image gets more clicks than another.
To use this plugin, you will need:

Google Universal Analytics installed on your site
A Content Experiment
Your experiment ID (Will be displayed when setting up the experiment above.)

Sample content experiment:
[experiment id="EXPERIMENT ID"]
[ex_variant]
content for first variation
[/ex_variant]
[ex_variant]
content for second variation
[/ex_variant]
[/experiment]

Features:

Allows in-page variations. You don’t need to create a whole page for each variation
Simple shortcode syntax
Uses Google Experiments API to determine which user sees which variation
Adds class (“xvariantclick”) and custom data attribute (“data-xvariant”) which can be used for Analytics event goals and tracking

Goals and Tracking:
Anchors within an experiment variation get an additional class: “xvariantclick”
This class can be used with Google Tag Manager to create a rule that responds to clicks on those elements.
Note: If you are using Google Tag Manager, you need to create a trigger and tag to have the Experiment run properly.
See the section called “Google Tag Manager” for information on how to set this up.
Google Analytics Experiments:
To track clicked items within an experiment, use these new events in your goal definitions.
You can look for an event where Category = “experiment” or whatever you named your category above.
Debugging
You can enable JavaScript console log debugging messages by adding the following to your wp-config.php file:
/** Enable console log debugging messages for the Simple Content Experiments plugin: */
define('WPSCE_DEBUG', true);

Google Tag Manager
As simple as “Simple Content Experiments” is, Google Optimize is even simpler. And the recommended solution if you’re running GTM.
But if you still want to use the old Content Experiments, you can. (For now.)
When running Google Tag Manager, sometimes the Experiments API will run before Analytics is loaded and ready.
Don’t worry if that is just programmer-speak, you just need to add a new Tag and Trigger.
Obviously, none of this applies if you’re not running Tag Manager.
Trigger
Name:
I called mine “AnalyticsLoaded” but you can name it whatever you want.
Choose Event:
“Page View”
Configure Trigger:
“Window Loaded”
Fire On:
“All Page Views”
Tag
Name:
Whatever you want. I called mine “SimpleExperimentPlugin”
Choose Product:
“Custom HTML” tag
Configure Tag:

Fire On:
“AnalyticsLoaded” or whatever you named the trigger above.
Requirements

Google Analytics (Universal Analytics)
This version of the plugin requires jQuery 1.6 or higher.

While jQuery is probably already available in your theme, in the unlikely event that it isn’t, you can use a plugin like WP jQuery Plus to add it to your site.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Simple Content Experiments」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.3 | 2.4 | 2.4.1 | 3.0.0 | 3.0.1 | 3.0.2 | 3.1.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Simple Google Content Experiments 》使用 WordPress 內建的自訂欄位,您可以將 Google Analytics Content Experiments 代碼插入支援自訂欄位的任何自訂文章類型中。, 建立一個新的自訂欄位,並將...。

文章
Filter
Apply Filters
Mastodon