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.

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 ?

    Répondre à ce 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 !

    Répondre à ce 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.

    Répondre à ce message

Ajouter un commentaire

Avant de faire part d’un problème sur un plugin X, merci de lire ce qui suit :

  • Désactiver tous les plugins que vous ne voulez pas tester afin de vous assurer que le bug vient bien du plugin X. Cela vous évitera d’écrire sur le forum d’une contribution qui n’est finalement pas en cause.
  • Cherchez et notez les numéros de version de tout ce qui est en place au moment du test :
    • version de SPIP, en bas de la partie privée
    • version du plugin testé et des éventuels plugins nécessités
    • version de PHP (exec=info en partie privée)
    • version de MySQL / SQLite
  • Si votre problème concerne la partie publique de votre site, donnez une URL où le bug est visible, pour que les gens puissent voir par eux-mêmes.
  • En cas de page blanche, merci d’activer l’affichage des erreurs, et d’indiquer ensuite l’erreur qui apparaît.

Merci d’avance pour les personnes qui vous aideront !

Par ailleurs, n’oubliez pas que les contributeurs et contributrices ont une vie en dehors de SPIP.

Qui êtes-vous ?
[Se connecter]

Pour afficher votre trombine avec votre message, enregistrez-la d’abord sur gravatar.com (gratuit et indolore) et n’oubliez pas d’indiquer votre adresse e-mail ici.

Ajoutez votre commentaire ici

Ce champ accepte les raccourcis SPIP {{gras}} {italique} -*liste [texte->url] <quote> <code> et le code HTML <q> <del> <ins>. Pour créer des paragraphes, laissez simplement des lignes vides.

Ajouter un document

Suivre les commentaires : RSS 2.0 | Atom