私のサイトでは、次のようにgoogle+ボタンがレンダリングされています。
JSでは:
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
HTMLで:
<g:plusone size="medium" href="https://site.com"></g:plusone>
これにコールバックを追加して、ユーザーがクリックしたことを検出するにはどうすればよいですか?ここにドキュメントがあります:https ://developers.google.com/+/plugins/+1button/#jsapi現在のレンダリングで実装する方法がわかりません。ありがとう