This is a modular extension for graphiques-digitale/silverstripe-seo-facebook-insights
It enables Facebook Insights ~
It is intended to be used alongside it's siblings:
These are all optional and fragmented from the alpha version
SSSEO, which is now redundant.
The whole module bunch is based largely on 18 Meta Tags Every Webpage Should Have in 2013.
Also, a good overview: 5 tips for SEO with Silverstripe 3.
composer require graphiques-digitale/silverstripe-seo-facebook-insights
- Place the extracted folder
silverstripe-seo-facebook-insightsin the SilverStripe webroot
Depending on your configuration, the general idea is to replace all header content relating to metadata with
$Metadata() just below the opening
<head> tag and
$BaseHref() function, e.g.:
<head> <% base_tag %> $Metadata() <!-- further includes ~ viewport, etc. --> <!-- however, really don't include CSS & JS here ~ do it in the *_Controller of this class --> </head>
This will output something along the lines of:
<!-- SEO --> <!-- Metadata --> <meta charset="UTF-8" /> <link rel="canonical" href="http://dev.seo.silverstripe.org/" /> <title>Your Site Name | Home - your tagline here</title> <meta name="description" content="Welcome to SilverStripe! This is the default home page. You can edit this page by opening the CMS. You can now access the developer documentation, or begin the tutorials." /> <!-- Facebook Insights --> <meta property="fb:app_id" content="FacebookAppID123" /> <meta property="fb:admins" content="AuthorFacebookProfileID123" /> <!-- END SEO -->
Issues are tracked on GitHub @ Issue Tracker
Development and Contribution
Please get in touch @
email@example.com if you have any extertise in any of these SEO module's areas and would like to help ~ they're a lot to maintain.