Goal: To set up the basic WordPress foundations that any WordPress website should have.
Prerequisites or requirements: You need to have a WordPress blog already running, and you’ll need administrator access to it.
Why this is important: The steps covered in this recipe will allow you to grow your business sustainably, increasing your traffic, allowing you to install more tools, recover from security issues, and keeping your site fast as it grows.
When this is done: Only once per WordPress installation.
Who does this: Your webmaster, or the person responsible for web development.
Step 1 – Set up an SEO-friendly WordPress configuration
Outcome: Your WordPress website is set up, with Yoast installed and configured, and your website is using the ideal permalink and homepage structure.
Step 2 – Add Google Tag Manager to your Site
- Sign Up/Log In to GTM 🌐
- Visit the Google Tag Manager website.
- Sign in with your Google account or create one if you don’t have it.
- Create a New Account & Container 📦
- Click on “Create Account”.
- Name your account (usually your business name).
- Create a container (typically your website name).
- Choose “Web” as the target platform.
- Get GTM Code 📜
- Once the container is created, you’ll be given two pieces of code: one for the
<head>
and one for the<body>
of your site.
- Once the container is created, you’ll be given two pieces of code: one for the
- Install a GTM Plugin on WordPress 🛠️
- Go to your WordPress dashboard.
- Navigate to Plugins > Add New.
- Search for “Google Tag Manager” or “GTM”.
- Install and activate a reputable GTM plugin (e.g., “DuracellTomi’s Google Tag Manager for WordPress”).
- Configure the Plugin ⚙️
- Go to the plugin settings (usually under Settings > Google Tag Manager).
- Enter your GTM Container ID (it looks like
GTM-XXXXXXX
).
- Verify Installation ✅
- Return to your GTM dashboard.
- Click on “Preview” mode.
- Visit your WordPress site. You should see a GTM debug pane at the bottom, confirming that GTM is working.
- Add Tags in GTM 🏷️
- Now, you can start adding tags, triggers, and variables in your GTM dashboard as needed.
- Publish Changes 🚀
- Once you’ve set up your tags, click on “Submit” in GTM to make your tags live.
Outcome: Google Tag Manager is installed on your website.
Step 3 – Implement a backup solution
UpdraftPlus is one of the best freemium solutions for backing up your WordPress website.
Outcome: Simply install the plugin from UpdraftPlus.com on your WordPress site and start generating automated/scheduled backups (or even backup on demand).
Step 4 – Speed Up your WordPress Website
Check your website’s performance on the following three sites, making sure to check both mobile and desktop scores. In addition to the list below, these websites will give you actionable tasks to improve your site’s speed.
- https://pagespeed.web.dev/
- https://gtmetrix.com/
- https://tools.pingdom.com/
- Choose a Solid Host: Go for a reputable hosting provider.
- Use a Lightweight Theme: Pick themes optimized for speed.
- Optimize Images: Compress and resize images before uploading.
- Limit Plugins: Only use essential plugins and keep them updated.
- Use a Caching Plugin: Implement caching to speed up load times.
- Optimize Database: Regularly clean up your database.
- Use a Content Delivery Network (CDN): Distribute site content efficiently.
- Minify CSS and JavaScript: Reduce the size of code files.
- Implement Lazy Loading: Load images only when they’re in view.
- Limit Post Revisions: Set a cap on the number of stored revisions.
- Optimize Comments: Break comments into pages or use a third-party system.
- Avoid External Scripts: Limit the use of external scripts like ads or font loaders.
Outcome: You have gone through all the steps and you have optimized every aspect of your WordPress website.
