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

MixPanel

描述

This plugin adds a meta box to the bottom of every page, which will allow you to mark the event of the page landing in MixPanel accordingly.
You no longer need to add the mixpanel.track() javascript snippet in your theme files.

Updated to Version 1.5.1
– Tracking code updated to latest version.
– Now you can custom label posts too.
– Event tracking code has been moved to wp_footer.php for speed improvements.

安裝

To install the plugin, either upload the .zip file using the plugin installer in your wp-admin, or
SFTP the files over to your wp-content/plugins/ directory and activate it.

Configuration Options

There are some variables that are necessary to make the plugin do it’s thing, you can set these settings under the Settings -> Mixpanel Options page

  1. MIXPANEL_TOKEN: This is the token for your specific project.
  2. MIXPANEL_DEBUG: If your site is in development mode, you can turn this on and see debug messages in your Firebug Console
  3. MIXPANEL_SUBDOMAIN_COOKIE: Make this true if you have MixPanel on two sites with the same token. Like blog.domain.com, app.domain.com

How does it work?

On every page in WordPress, you’ll see an option panel for MixPanel Event Label. Whatever value you put in this label, will
show up as an event in MixPanel.

@TODO
1. build some logic to do smarter tracking
2. add stuff to track links in a smart way

評價

2016年9月3日
I used the plugin to integrate Optimizely, inputed label for MixPanel event on every page in WordPress, now I can see the info n details on people that viewed my page. I wonder, if I can use the plugin to get info on people who clicked Subscribe button? In this case there will be 2 labels on the same page, how should I implement it, where to insert the second label?
閱讀全部5個評價

貢獻者及開發者

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

貢獻者

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

對開發相關資訊感興趣?

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