0
我在我的wordpress站點使用FV WordPress Flowplayer來顯示視頻。我想在我的部分視頻中添加Google Analytics事件跟蹤。有任何想法嗎?我認爲這個插件不支持這個。任何其他插件呢?谷歌分析FV WordPress的事件跟蹤WordPress的Flowplayer
我在我的wordpress站點使用FV WordPress Flowplayer來顯示視頻。我想在我的部分視頻中添加Google Analytics事件跟蹤。有任何想法嗎?我認爲這個插件不支持這個。任何其他插件呢?谷歌分析FV WordPress的事件跟蹤WordPress的Flowplayer
您可以創建集成非常簡單。 Flow Player支持用於收聽,暫停和結束的API。您可以使用javascripot聆聽這些事件,並在事件發生時觸發事件。
例如: //獲得第一位玩家 var api = flowplayer();
api.bind("finish", function(e, api) {
_gaq.push(['_trackPageview', 'Video', 'play']);
});
更多流動播放器API:
http://flowplayer.org/docs/api.html
UPDATE
我發現流播放器已經與谷歌Analytics(分析)集成。