這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Cookie Monster

描述

I recently had a situation in which I needed to pass a URL parameter into WordPress so that it could be inserted into all links off of a blog page. For example, a partner would pass traffic to a blog using the format http://www.myblog.com?refcode=joe. All links embedded in the post would need to pass the value of refcode if it existed, even if the visitor requested multiple pages after the initial visit.

I created a Plugin (Cookie Monster) that will allow a Blog Admin to define which URL parameters should be captured, and then creates a shortcode so that the value can be used in your Posts and Pages. A WordPress shortcode is a macro code that is embedded in your content.

In the example above, if you define refcode in the Cookie Monster Admin Settings, and if that URL parameter refcode contains a value in the querystring, it will automatically be saved into a cookie in the visitors browser. Anywhere that you place the shortcode jimmy in your Post, Cookie Monster will insert the querystring value into your Post. The cookie value will persist across browser sessions.

Support

website : http://www.z-car.com/blog/programming/cookie-monster-wordpress-url-parameter-utility
email : cookiemonster@pcorner.com

安裝

  1. Upload cookie.php to the /wp-content/plugins/cookiemonster directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place [shortcodes] in your templates that you have defined in the setup menu

常見問題

Why would I use this?
So that you can pass info from the querystring to all links on your site. For example, perhaps you have an arrangement where you pay anyone who links to your blog a split of a commision you make on a sale. If they pass you a value on the querystring, for example refcode=affpartner1, you can then pass that into your affiliate links so that you can share commisions.

評價

2017年3月31日
So nice! So simple! So great! It works fantastic! Thank you so much! 🙂
2016年9月3日
If you are doing any type of affiliate marketing and want to build a team, this is the plugin to use. Having your own funnel for the company you are promoting is essential if you want to make more money as an affiliate and this plugin allows your team to use your funnels as well. Can be used with any type of page you build. The great thing about using a cookie is that if your visitor decides to delete your affiliate id from the URL and try to sign up under the company directly, you still get credit for it! Very simple to use.
閱讀全部4個評價

貢獻者及開發者

“Cookie Monster” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Cookie Monster 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • First version

1.1

  • Fixed to work with WordPress 3.0 Thanks to BronStar!

1.2

  • Updating SVN

1.3

  • Added ability to change cookie expiration which also allows setting to 0 to act as a session cookie. Other minor changes and error handling. This version will require you to recreate all of your tracking cookie parameters due to some internal changes.

1.4

  • Fixed deprecated call error

1.5

  • Resolved issue with plugin breaking some themes

1.51

  • Fix version issue