[[TOC]]
This plugin integrates Surfer SEO into your application, enabling advanced text analysis for selected input fields. It provides real-time SEO insights and recommendations, helping you optimize your content directly within your workflow.
The plugin requires you to select a Content Type Definition (CTD) and a rich text field for which the SEO analysis will be performed. The analysis window will be displayed in the sidebar during content creation and editing, providing real-time SEO analysis of the content from the selected rich text field. This seamless integration ensures that users can optimize their content as they work, without needing to switch between tools
Note: The plugin also supports optional fields such as title, whose content will be processed as an
<h1>
. lead, whose content will be analyzed as a<p>
and FAQ, whose content will also be included in the analysis.
The fields selected in the plugin configuration will be passed for analysis in the following format.
<body>
<h1>{{Title}}</h1>
<p>{{Lead}}</p>
{{source}}
<h2>Frequently Asked Questions</h2>
<div>
<h3>{{question.1}}</h3>
<div>{{question.1}}</div>
</div>
<div>
<h3>{{question.2}}</h3>
<div>{{question.2}}</div>
</div>
{{...}}
</body>
It's worth noting that if an optional field is not selected, it will not be included in the analysis. For example, if
the title field is left empty, the <h1>
tag will not be sent for analysis.
Note: You must be logged into your Surfer SEO account and enable third-party cookies in your browser for this integration to function properly.
First, select the keywords you want to target for analyzing your content. These keywords will guide the SEO recommendations and help optimize your text effectively. Choosing relevant keywords is essential to ensure the analysis aligns with your goals.
Next, select the tag of interest from the list of available tags.
Now, the content of the selected field will be analyzed based on the tags you have chosen.
You can read more about SurferSeo plugin here
yarn
- to install dependenciesyarn start
- to start development mode - rebuild on file modifications- update your
plugin-manifest.json
file to contain the production URL and other plugin information yarn build
- to build plugins
Dev environment is configured to use:
prettier
- best used with automatic format on save in IDEeslint
- it is built into bothstart
andbuild
commands
The plugins are built into a single dist/index.js
file. The manifest is copied to dist/plugin-manifest.json
file.
Warning: While developing, you can use https://localhost:3053/plugin-manifest.json
address to load the plugin
manifest. Make sure your browser trusts the local certificate on the latter, to be able to use it e.g.
with https://editor.flotiq.com
Hint: You can use localhost url from development mode https://localhost:3053/index.js
- Open Flotiq editor
- Open Chrome Dev console
- Execute the following script
FlotiqPlugins.loadPlugin('plugin-id', '<URL TO COMPILED JS>')
- Navigate to the view that is modified by the plugin
- Open Flotiq editor
- Open Chrome Dev console
- Paste the content of
dist/index.js
- Navigate to the view that is modified by the plugin
Hint: You can use localhost url from development mode https://localhost:3053/plugin-manifest.json
- Open Flotiq editor
- Add a new plugin and paste the URL to the hosted
plugin-manifest.json
file - Navigate to the view that is modified by the plugin