在网站的head标签内添加跟踪代码:
<script> function SocialShare(url) { window.open('http://www.fxquan.com/share?url=' + url, '', 'height=600,width=800'); } </script>
然后,在将您要共享的URL更改为页面HTML之后,放置共享按钮:
<button onclick="SocialShare('http://yoursite.com/')">Share</button>
您也可以使用此代码分享当前页面:
<button onclick="SocialShare(window.location.href)">Share</button>