链接到 Google PlusOne,不嵌入按钮(出于隐私原因)

发布于 2025-01-05 07:08:47 字数 1548 浏览 0 评论 0原文

Google 似乎只提供了嵌入 +1 按钮的代码。

然而,与之相关的还有严重的隐私问题(加上相当长的加载时间)。

有关与 Facebook Like 和 Google +1 相关的隐私和法律问题的一些提示,请参阅:Like 按钮和隐私问题

常见的解决方法似乎是双击解决方案德语还在slashdot上进行了讨论英语),其中第一次点击启用按钮(从 Google 加载 javascript),第二个按钮位于常规 +1 按钮上。

但是,我也不想实施这种双击解决方案。主要是因为 Google +1 按钮丑陋得要命,而且不适合页面布局

我真正想要的是一个单独的网页,用户基本上可以在其中确认他喜欢该页面。该页面可以存在于 google.com 上,本质上这将是第二次点击。我并不是想欺骗人们对页面进行+1。第二次点击对我来说一切都很好。我只是不想强迫他们加载 plusone 按钮(而且我不喜欢它的外观)。

不过,似乎有一个选项

https://plus.google.com/share?url=<URL>

在 Google+ 上分享,而不是+1

我也看过这个网址:(

https://plusone.google.com/_/+1/confirm?hl=en&url=<URL>

参见此处:向电子邮件简讯添加 Google Plus(一个或共享)链接),但我无法提交此表单(即似乎不起作用)。

最好的有效解决方案似乎是双击方法。 :-(

更新:网址,https://plusone.google.com/_/+1/confirm?hl=en&url= 实际上似乎确实有效。这只是我的隐私代理破坏了它,然后它似乎更像是一个“Google+共享”对话框,我对这个结果还不满意(特别是,因为这似乎不是一个)。谷歌提倡的方法,他们可以随时我想请考虑禁止该网站)

It seems that Google only offers code to embed the +1 button.

However, there are heavy privacy concerns (plus quite some load time) associated with it.

For some pointers about the privacy and legal issues associated with Facebook like and Google +1, see: Like button and privacy concern

A common workaround seems to be a two-click solutionGerman (also discussed on slashdotEnglish), where the first click enables the button (loading the javascript from Google), the second then is on the regular +1 button.

However, I do not want to implement this two-click solution either. Largely because the Google +1 button is ugly as hell, and doesn't fit to the page layout.

What I'm really looking for is a separate web page, where the user can essentially confirm that he likes the page. This page can live on google.com, and essentially this would be the second click. I'm not trying to trick people into +1'ing the page. The second click is all fine with me. I just don't want to force them to load the plusone button (and I don't like its looks).

There seems to be the option of

https://plus.google.com/share?url=<URL>

which however is a share on Google+, not a +1.

I've seen this URL, too:

https://plusone.google.com/_/+1/confirm?hl=en&url=<URL>

(see e.g. here: Adding a Google Plus (one or share) link to an email newsletter) but I cannot submit this form (i.e. doesn't seem to work).

The best working solutions seems to be the two-click approach. :-(

Update: the url, https://plusone.google.com/_/+1/confirm?hl=en&url=<URL> actually does seem to work. It was just my privacy proxy breaking it. Then it seems to be more of a "Google+ share" dialog. I'm not yet happy with this result (in particular, since this doesn't seem to be an advocated approach for Google, and they can at any point consider to ban the site, I guess)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

故事未完 2025-01-12 07:08:47

唯一官方支持的对 URL 进行 +1 的方法是使用 +1 按钮。要么始终加载,要么在第二次单击时加载。

The only officially supported method of +1'ing a URL is with the +1 button. Either always loading or loading it on a second click.

我现在正在研究的方法相当简单:

我为网站设置了一个 Google Plus 页面,然后“加号”按钮将用户发送到那里。事实上就像我正在使用的 Facebook 图标一样。然后,用户可以获得交互选项的完整选择,包括 +1,还包括圈选和分享。

首先,这显然不应该违反任何g+政策。其次,这对于用户来说是相当透明的行为。 “加号”按钮会将他们带到 Google plus,在那里他们会看到通常的 plus 用户界面。

其次,仍然只需点击两次“+1”。因此,它并不比任何其他符合数据隐私的解决方案更差。

The approach that I'm now looking into is fairly trivial:

I've set up a Google Plus page for the web site, and the "plus" button sends user there. In fact just like the Facebook icon I'm using. Then the users get the full choice of interaction options, including +1, but also circling and sharing.

First of all, this obviously should not violate any g+ policies. Secondly, it is a fairly transparent behaviour for the users. The "plus" button takes them to Google plus, where they see the usual plus UI.

Secondly, it's still just two clicks to "+1". So it is not worse than any other data privacy compliant solution.

筑梦 2025-01-12 07:08:47

我找到了解决方案 在这里

问题是,社交网站接受您自己的“共享”表单,但前提是链接是 URL 编码的。

在 WordPress 中,我在没有官方 API 的情况下使用了一个自定义 Google+ 按钮,并且当前正在运行,代码如下:

<a href="http://plus.google.com/share?url=<?php print(urlencode(get_permalink())); ?>+<?php print(urlencode(the_title())); ?>" title="Share this story on google+">google+</a>

希望有帮助,请转到上面的链接以获取其余社交网站链接的列表。 :)

I found the solution here.

The problem is, social sites accepts your own "share" forms, but only if the link is URL encoded.

In Wordpress, a custom Google+ button that I'm using without the official API, and it's currently working, is this following code:

<a href="http://plus.google.com/share?url=<?php print(urlencode(get_permalink())); ?>+<?php print(urlencode(the_title())); ?>" title="Share this story on google+">google+</a>

Hope it helps, go to the link above for a list of the rest of the social sites links. :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文