Plugin SEO

Search Engine Optimisation Plugin

The SEO plugin adds the possibility to automatically insert <meta> tags, canoical URL, Google webmaster tools meta code and Google Analytics javascript code in the <head> of your website.

It is fully configurable in the SPIP configuration page and meta tag values can be supplied for each article and section independently.

INSTALLATION

Manual installation

You may use the following tags in your templates:

  • #SEO_META_TAGS: to insert the configured <meta> tags.
  • #SEO_GWT: to insert the Google Webmaster Tools <meta> tags.
  • #SEO_URL: to insert the canonical <link> tag.
  • #SEO_GA: to insert the JavaScript Google Analytics tags.

You should insert #SEO_META_TAGS before your call to #INSERT_HEAD, and then #SEO_GWT.

The #SEO_GA tag can be inserted at the foot of the page.

Automatic installation

The #INSERT_HEAD tag must be present in all of your templates (before <INCLURE{fond=inc-head}>, if used).

ATTENTION: the plugin will not work correctly if you place #INSERT_HEAD in the inc-head.html file or another file that you include in the <head> of your squelettes. As a result the plugin is not compatible with the “squelettes-dist” include in SPIP base package.

CONFIGURATION

The plugin configuration is available in “Site Configuration / Search Engine Optimization” (see screenshot below).

If “Activate meta tags editing in rubriques and articles” is activated you can configure the <meta> tags in each section or articles through the form that is added to the editing pages.

Page de Configuration

HOW IT WORKS

  • Meta tags (if enabled): The <meta> tags are added to the home page and all article and section pages where #INSERT_HEAD is present. You can configure the default behaviour in the configuration of the plugin but if “Activate meta tags editing in rubriques and articles” is enabled these per-page values have the priority if specified.
  • Canonical URL (if enabled): Canonical URLs are added to the home page and all section and article pages.
  • Google Webmaster Tools (if enabled): The Google Webmaster Tools verification code <meta> tag is added only on the home page.
  • Google Analytics (if enabled): The Analytics JavaScript code is added to all pages where #INSERT_HEAD is present.

Portfolio

updated on 9 February 2019

Discussion

3 discussions

  • Guylaine

    Hello I try to add on one of my sites this plugin without success here is the error message

    Parse error: syntax error, unexpected $end in /home/animouff/public_html/plugins/seo/base/seo_tables.php on line 1

    You always talk about version or do I see the plugin version?

    Reply to this message

  • 1

    I’ve choosed first option for robots : index,follow after save i get this :

    <meta name="robots" content="Radosław Sobik" />

    - that is in source page

    My web page

    Radosław Sobik - is a name of autor and copyright - what I do wrong??

    • I found solution on French version:

      bonsoir,
      petit bug repéré sur la v1.5.2 / Rév. 55021 au niveau de la balise meta robots : celle-ci prends la valeur de la meta copyright

      Pour corriger, il suffit de remplacer dans le code du fichier ’formulaires/configurer_seo_metas.php’ à la ligne 47

      $config[’meta_tags’][’tag’][’robots’] = _request(’copyright’);

      par

      $config[’meta_tags’][’tag’][’robots’] = _request(’robots’);

      Et merci pour ce plugin fort utile !

    Reply to this message

  • Thomas Sutton

    The plugin has a bug. It should specify canonical URLs with a <link rel=...>, not a <link rev=...>.

    A fixed has been committed to SVN and a new package will be available soon.

    Reply to this message

Comment on this article

Who are you?
  • [Log in]

To show your avatar with your message, register it first on gravatar.com (free et painless) and don’t forget to indicate your Email addresse here.

Enter your comment here

This form accepts SPIP shortcuts {{bold}} {italic} -*list [text->url] <quote> <code> and HTML code <q> <del> <ins>. To create paragraphs, just leave empty lines.

Add a document

Follow the comments: RSS 2.0 | Atom