Google Plus share in a popup - google-plus

I'm trying to build a Google+ share feature on a website just like the one you see on questions here at stackoverflow. When you click that Google+ button an a question it opens a new window to a URL like this: https://plus.google.com/share?url=http://www.stackoverflow.com
I've experimented with this and found that for some reason it only works for a few domains, including stackoverflow.com. For example google.com: https://plus.google.com/share?url=http://www.google.com or eff.org: https://plus.google.com/share?url=https://www.eff.org
Other domains like: https://plus.google.com/share?url=https://www.cnn.com or: https://plus.google.com/share?url=https://www.revision3.com just redirect to my Google+ homepage.
What am I missing here? Why do some domains work and others don't? Is there some metadata present on the pages that work that is missing from the ones that don't? Or perhaps those domains that work were added to some Google+ beta program that I'm not aware of?

It looks like the new share URL is live now for all domains. The mobile 'hack' no longer appears to work, but something like this: https://plus.google.com/share?url=http://favo.rs does

Update: While still not officially supported by the Google+ platform the share URL does now work for all domains.
https://plus.google.com/share?url=http://example.org
It is probably a limited rollout with a few specific partners. The share URL has not publicly been announced as a supported feature by Google.
Google+ feature requests:
https://code.google.com/p/google-plus-platform/issues/detail?id=50
https://code.google.com/p/google-plus-platform/issues/detail?id=153

I personally suggest Google Plus Interactive Posts button
https://developers.google.com/+/web/share/interactive
to use in your apps/websites.Here Google Plus allows many customizations to do according to the requirement. I have used it in my app. Its a better option than Share button.

Related

Can I track if someone clicked a link on my Twitter post

I have a private business Twitter account and I would like to know when someone clicks any link inside one of my posts. This solution cannot assume that we know the form of the link being posted.
For example a twitter post like this:
Have you guys heard of this amazing site called google?
I would like to see how many people clicked on this google.com link. I don't need to know any specific information about who they are, just if it was clicked or not.
Ideally I would want this from the API but crawlers and plugins are also possible. I would like to avoid using a paid tool but those would be acceptable.
I think you have multiple choices:
Use google firebase or google analytics
Create your own short link services by python or any other programming languages.
Just search in the google and look for short link generators which gives appropriate service.
Hi using the twitter api you should be able to understand how many clicks a link has.
https://developer.twitter.com/en/docs/twitter-api/metrics
But to have all this info automated you might need to use a third-party tool.
This should be the most straight forward solution.

Track how often link was clicked

I am currently running a website where I promote different coffees from pubs in my city. On my website I have links to the different coffees.
I have recently seen some of this links being shared on Facebook and other social networks.
So I was wondering if it is somehow possible to track how often one of this links are being clicked?
I have tried using redirects to my site but Facebook uses my pictures in the previews, whereas I don't want this because it is misleading.
I have seen that this works with Bitly so it must somehow be possible?
And there are of course different services providing this, but it would be nice if it would run without any foreign services.
So basically I am looking for a solution which will let me know how often a link, origination from my site was clicked in Facebook, Google+ or any other forum.
There definitely is. Try looking into Google Analytics, it will show you show much data from your personal websites and links that it can blow your mind! Here is the link
Google Analytics helps you analyze visitor traffic and paint a
complete picture of your audience and their needs. Track the routes
people take to reach you and the devices they use to get there with
reporting tools like Traffic Sources. Learn what people are looking
for and what they like with In-Page Analytics. Then tailor your
marketing and site content for maximum impact.
You can even get a free package to use!
Hope this helps!
Yes you have plenty of analytical options.
Something as straight forward as Google Analytics for example.
If you are using cpanel on your hosts server, you even have options such as AWSTATS, which will also provide information.
If all else fails you can even use post data stored in your apache / nginx logs.
Since you have amended your question you might want to check out this tool. It is not google. :)
It is called Click Meter and performs Link Tracking and provides click reports, etc

Hosting Google Plus Communities on My Website

Is it possible to embed a google community into a website page?
This way our clients can benefit from content and all other features in our website, yet be able to collaborate using Google Communities.
Ideally I would like to grab a Javascript code just like +1 button and paste it into my website page, add an iframe or something of this nature!
UPDATE:
Sounds like if I try to be convincing, I may be able to influence some decisions!
More details: Our website services offers login with Google using Google OAuth, This way the user is either logged in or is forced to login with Google to get access to private areas of our customer portal, where you can review the status of Support Tickets, submit new support tickets, have access to knowledge base, documents, blogs, etc.
We have incorporated all sort of social plugins into the blogs, product catalogs and so forth.
It would be fantastic is the users can have access to a community (Forum or Discussion Board) within the same place. Google Community seem to be the tool but in the wrong place.
No such widget exists at this time, but it's an interesting idea. If you want to share more details on precisely what you're looking for, you can file the issue here: https://code.google.com/p/google-plus-platform/. The more details you can provide, the more likely that, if we decide to implement this feature, we'll end up with something that you want.

how can I make an app the displays all permanent google+ hangouts and the people in them?

I'm completely new to using the Google+ apis and the quickstart guides are a bit confusing (i tried the ruby version since i'm probably most familiar there. looks like this: https://github.com/googleplus/gplus-quickstart-ruby)
and I've also looked at the google hangout apis - but those seem to be more for augmenting hangouts (i.e. once you're in a hangout, you'd see the extension, etc. you built).
what I'd like to do is create a place for everyone at my company to log in and see a list of all the permanent hangouts I've created and see who's currently joined that hangout (and which hangouts are available for a meeting).
I'm really sorry for the question but any help getting started is appreciated.
There is currently no API that is officially provided that can tell you what hangouts are currently available. If you are interested in seeing one, you may wish to see if the feature has been requested at https://code.google.com/p/google-plus-platform/issues/list and, if not, request it.
Your question, however, seems to have an assumption that I'm not entirely sure is valid. What do you mean by a "permanent hangout"? In general, hangouts are created and destroyed on an ad-hoc basis (although there are some exceptions).
One of those exceptions are for hangouts that are tied to calendar events (as you note). In these cases, you can use the Calendar API to get the Event resource and get the hangout URL from that (see https://developers.google.com/google-apps/calendar/v3/reference/events and related pages for the API), but it still won't report who is in a hangout at any given time.
One way you can approach what you're doing is to have your website have virtual meeting topics and when someone joins one of these topics, they run an app that reports back to your website the URL of the hangout they're in. Your website can then include this "room information" as associated with the topic on the website for others to see. This solution is outlined in the video at http://www.youtube.com/watch?v=Al4SbeVyLm4.

Is this a blackhat SEO technique?

I have a site which has been developed completely in flash. Now the site owners do not want to shift to a more text/html based site. So am planning to create an alternative html/text based site which the googlebot will get redirected to. (By checking the useragent). My question is that is this allowed officially by google?
If not then how come there are many subscription based sites which display a different set of data to google compared to the users? Is that allowed?
Thank you very much.
I've dealt with this exact scenario for a large ecommerce site and Google essentially ignored the site. Google considers it cloaking and addresses it directly here and says:
Cloaking refers to the practice of presenting different content or URLs to users and search engines. Serving up different results based on user agent may cause your site to be perceived as deceptive and removed from the Google index.
Instead, create an ADA compliant version of the website so that users with screen readers and vision aids can use your web site. As long as there as link from your home page to your ADA compliant pages, Google will index them.
The official advice seems to be: offer a visible link to a non-flash version of the site. Fooling the googlebot is a surefire way to get in trouble. And remember, Google results will link to the matching page! Do not make useless results.
Google already indexes flash content so my suggestion would be to check how your site is being indexed. Maybe you don't have to do anything.
I don't think showing an alternate version of the site is good from a Google perspective.
If you serve up your page with the exact same address, then you're probably fine. For example, if you show 'http://www.somesite.com/' but direct googlebot to 'http://www.somesite.com/alt.htm', then Google might direct search users to alt.htm. You don't want that, right?
This is called cloaking. I'm not sure what the effects of it are but it is certainly not whitehat. I am pretty sure Google is working on a way to crawl flash now so it might not even be a concern.
I'm assuming you're not really doing a redirect but instead a PHP import or something similar so it shows up as the same page. If you're actually redirecting then it's just going to index the other page like normal.
Some sites offer a different level of content -- they LIMIT the content, they don't offer alternative and additional content. This is done so it doesn't index unrelated things generally.