gpt4 book ai didi

redirect - 谷歌加 : How to get feedback after sharing my content?

转载 作者:行者123 更新时间:2023-12-02 05:18:15 25 4
gpt4 key购买 nike

我正在使用 Google plus 的共享链接,如下所示:

<a href="https://plus.google.com/share?url={URL}"      
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
<img src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a>

用户点击确认按钮“分享”后,在谷歌弹出窗口中,我的网站没有反馈用户是否真的分享了内容或取消了分享(他点击了取消按钮)。是否可以从弹出窗口获得反馈?

另一种选择,如何在没有弹出窗口的情况下使用共享链接:

https://plus.google.com/share?url=YOUR_URL_HERE

但是我的网站也无法通过这种方式获得反馈。虽然 google plus 表单将用户重定向回我的网站,但它不会发送任何信息,也不会在 POST 或 GET 数组中发送。

最佳答案

您应该按照 documentation here 中的说明使用 Web 共享按钮.如果您使用此方法,您可以将可选的 data-onendinteraction 标记添加到 HTML 以触发 JavaScript 回调,您可以使用它来跟踪共享的成功/失败。

关于redirect - 谷歌加 : How to get feedback after sharing my content?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17376052/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com