Google+ Badge
An example of a profile pictures next to sample search results

No longer supported per the announcement that Google will no longer be showing authorship in their search results. Blog post here.

A simple module which adds Google Authorship information to node pages. It does this by changing the submitted by link to the node author to their Google+ profile or adding a link to the HTML head. This associates the content with the user and will generally result in the user's profile picture being displayed in Google's search results, hopefully leading to higher click-through rates.

Sample search result.

    Features

  • Adds Google authorship information to node pages
  • Boosts the credibility of your site when potential visitors see your site listed in search results
  • Supports tokens (Special thanks to DamienMcKenna)
  • Works with Metadata module, if enabled (Special thanks to DamienMcKenna)
  • Specify which content types to display authorship information
  • Specify which author roles display authorship information. Useful for distinguishing between content written by official contributors and other user generated content.
  • Optionally retain link to user profiles and include authorship information in the HTML head
  • Optionally use user accounts for bio pages. Useful is you don't want authors' by lines to link straight to Google+ profiles but instead to a bio page on your site.
  • Maintainer is open to new feature requests
    • Upcoming

    • Specify a URL pattern for bio pages that are not based on user entities, but are instead node pages.

How it Works

This module adds a field to the Drupal 7 user entity to store a Google+ profile ID. Using that field, if it is filled, this module alters the Submitted by line of a node's full content display to link to the Google+ profile of the appropriate author or adds a link within the HTML head element. Finally, by setting the "rel='author'" attribute Google search bots will recognize and display an author's profile picture in its search results.

Installation

I've written a blog post about setting up Google Authorship with Google here. The post goes into more depth about how to set up your Google+ profile. Part two, focuses on setting up this module in tandem with the Metatag module, but since version 7.x-2.0-beta0, may of what the Metatag module provides is possible with GA alone. I still recommend it if you are already using Metatag however.

    Quick setup

  1. Add the module to /sites/all/modules (or /sites/all/modules/contrib).
  2. Go to admin/modules and enable the Google Authorship module.
  3. For each user for whom you would like Google to display author information, add their 21 digit Google+ Profile ID from their profile URL. You may also have users do this themselves.
  4. Ensure that the "Display Author and Date" setting is checked for all the content types that you would like to have Google Authorship apply its changes.
  5. Each user will need to have their Google+ profile page link back to your domain. If they have an email at your domain on their profile, they simply need to input their email address in here once. If not, they should follow the following instructions:
    1. Edit the Contributor To section of their profiles (under Profile>About>Links).
    2. In the dialog that appears, click Add custom link, and then enter the website URL.
    3. If you want, click the drop-down list to specify who can see the link.
    4. Click Save.
  6. To verify that Google can see authorship information on your nodes, you can paste the URL of a node which this module should have overridden into Google's Structured Data Tool.

Have a more specific use case? Go to admin/config/search/google_authorship to see the configuration options available for use with more complicated site architectures.

What's New in 2.x?

Version 2.x brings a suite of new features to the Google Authorship module. Mainly having to do with its configurability. If you're upgrading from 1.x, everything should still work just as you expect, but you can refine how it works if you so choose.

You can now:

  • Specify which content types to display authorship information
  • Specify which author roles display authorship information. Useful for distinguishing between content written by official contributors and other user generated content.
  • Optionally retain link to user profiles and include authorship information in the HTML head
  • Optionally use user accounts for bio pages. Useful if you don't want authors' by lines to link straight to Google+ profiles, but instead to a bio page on your site.

Using with the Metatag module?

No problem. Everything should still function just as it did, but I suggest you go to admin/config/search/google_authorship and select "Only use the Metatag module" and ensure that you do not have "Put Google Authorship Information in page head instead of relinking the author username on node pages" enabled. This prevents your site from having duplicate rel="author" markup in its source code.

Important Notes

This module may not work out-of-box with themes that override the submitted link too. If it does not seem to be working, please first check that your theme does not override it on its own. You can avoid this issue by selecting the "Put Google Authorship Information in page head instead of relinking the author username on node pages" option in the module configuration.

Similar Projects

The Metatag module can accomplish the same functionality as the Google Authorship module. It is a broader solution for providing metadata and richsnippets for content on your site. In order to set it up for Google Authorship, it will require a more set-up than this module. The Google Authorship module attempts to be a quick, simple, focused solution for a single use case. That said, if you are already using Metatag, or want to, you can use Google Authorship in tandem with it to automate the set-up.

The Submitted By module provides similar functionality to Google Authorship. However, Google Authorship chooses to address one specific use case and requires much less configuration to get set up, i.e., one need not set up any tokens or any of the additional fields the user account would require. In addition, Google Authorship does not create a new field to be added to content types and instead works with and overrides Drupal's default "submitted by" feature and has no dependencies.

Project information

Downloads