Google Trends Graph Shortcode

and like us on FB

This page exists as a landing page to support the Google WordPress plugin. You may find additional information on our blog by searching the google Tag: google tag.

According to Wikipedia , Google Trends will show how often a particular search-term is entered relative to the total search-volume across various regions of the world. The horizontal axis of the main graph represents time (starting from 2004), and the vertical is how often a term is searched for relative to the total number of searches, globally.

Used in a more traditional sense, the tool is an effective way of measuring the trends associated with particular search terms that you’re using to market your various web properties. It also illustrates how, where and when particular search terms might yield greatest success. While no formal API exists for Trends (yet ), the Trends site opens itself up for various types of hacks that extract little bits of functionality.

This post will show you how to graph up to 5 search terms for a particular region. The default search option is global, so specific geographic regions should be specifically defined with shortcode usage.

The Result

Comparing the search trends of wordpress, drupal, joomla, wordpress plugins, and drupal plugins, I’ll use shortcode as follows: [trends q="wordpress, drupal, joomla, wordpress plugins, drupal plugins"]. The result is as follows:

To request trends for a specific country, use the two-letter country code as follows: [trends q="wordpress, drupal, joomla, wordpress plugins, drupal plugins" geo="AU"] (in this case, Australia).

Shortcode Attributes

w

The width of the graph is determined by w.

h

The height of the graph is determined by h.

q

The query includes all the search terms separated by commas (for example, q="wordpress, drupal, joomla, wordpress plugins, drupal plugins"

geo

To limit the search to a particular geographic region, use the two letter country code . Defaults to a global search.

align

Alignment of the graph. Normally left as center (default).

Plugin Title: Google Trends Graph Shortcode
Description: Google Trends is an extremely simple plugin that'll generate Google Trends graph(s) on your website for up to 5 search terms on a single chart.
Download (downloaded 629 times) | Plugin Page