在网站的head标签内添加跟踪代码:
<script> function SocialShare(url) { window.open('https://m.kidhod.la/share?url=' + url, '', 'height=600,width=800'); } </script>
然后在更改要共享到页面 HTML 的 URL 后放置共享按钮:
<button onclick="SocialShare('http://yoursite.com/')">Share</button>
Also you can use this code to share the current page:
<button onclick="SocialShare(window.location.href)">Share</button>