Sharepoint
Sharepoint integration
アプリケーションのインストルメンテーションを開始する前に、Pyze から App Key を受け取っていることを確認してください。
インストールとセットアップ
マスターページにPyzeを追加
- SharePointデザイナーを開き、マスターページセクションに移動します。
- 右クリックして、高度なモードでマスターページを編集します。
- 以下のスニペットをコピーして、閉じているボディタグ(</body)の上に貼り付けて、チェックインしてマスターページを公開します。
あるいは、User custom action(UCA)ルートを作成してPyzeを有効にすることもできます。
<!-- Start Pyze Script -->
<script type="text/javascript">
var pyzeAppKey="YOUR_PYZE_APP_KEY";
!function(e,t){var s=e.Pyze||{_q:[]},i=e.PyzeEvents||{_q:[]},n=e.PyzeCuratedEvents||{_q:[]},r=e.PyzeIdentity||{_q:[]};function p(t,e){function s(e){t[e]=function(){t._q.push([e].concat(Array.prototype.slice.call(arguments,0)))}}for(var i=0;i<e.length;i++)s(e[i])}p(s,["initialize","getTimerReference","getAppInstanceId","postWebAppVersion","postPageView","setUserOptOut","deleteUser"]),p(i,["postCustomEvent","startTimerForEvent","postCustomEventWithAttributes","postTimedEvent","postTimedEventWithAttributes","postExplicitActivation"]),p(n,["post"]),p(r,["setUserProfile","resetUserProfile","updateUserProfile"]);var o=t.createElement("script"),a=t.getElementsByTagName("script")[0];o.type="text/javascript",o.async=!0,o.src="https://cdn.pyze.com/pyze.js",a.parentNode.insertBefore(o,a),e.Pyze=s,e.PyzeEvents=i,e.PyzeCuratedEvents=n,e.PyzeIdentity=r}(window,document),Pyze.initialize(pyzeAppKey);
</script>
<!-- End Pyze Script -->
警告
PYZE_APP_KEY を独自の appKey に置き換えたことを確認してください。