How to Migrate a Store From Shopify to WooCommerce Without Losing SEO
Migrating an e-commerce store to WooCommerce is a critical operation requiring precision to avoid data loss, SEO penalties, and revenue disruption. This playbook outlines the hands-on steps to ensure a smooth transition.
Migration Playbook: From Legacy to WooCommerce
1. Data Export: The Foundation
The first step is to extract all essential data from your current platform. Prioritize completeness and accuracy.
H3. Products Export
- Identify Export Method: Most platforms offer CSV or XML exports. For complex stores, consider API access or third-party migration tools if direct export is limited.
- Key Fields:
SKU(Crucial for unique identification and updates)Product NameDescription(Full HTML content)Short DescriptionPrice(Regular, Sale)Stock QuantityStock Status(In Stock, Out of Stock)Weight,DimensionsProduct Type(Simple, Variable, Grouped, External - map to WooCommerce types)Categories(Hierarchical structure, e.g.,Parent > Child)TagsAttributes(Size, Color, Material - critical for variations)Image URLs(Full URLs, ensure they are publicly accessible)Product URL(Old URL, essential for redirects)Meta Title,Meta Description(SEO data)Custom Fields(UPC, MPN, brand, etc.)
- Common Mistake: Forgetting to export all product variations, not including image URLs, or missing custom metadata.
H3. Customers Export
- Identify Export Method: Usually CSV.
- Key Fields:
Customer ID(If available, for linking orders)First Name,Last NameEmail Address(Unique identifier)Billing Address(Street, City, State, Postcode, Country)Shipping Address(If different from billing)Phone NumberRegistration Date
- Common Mistake: Customer passwords are rarely exportable directly. Inform customers they will need to reset their password on the new site.
H3. Orders Export
- Identify Export Method: Often CSV or XML.
- Key Fields:
Order ID(Preserve original ID if possible, or map to a custom field)Customer Email(To link to imported customers)Order DateOrder Status(Map to WooCommerce statuses: Processing, Completed, On Hold, etc.)Total Amount,Subtotal,Shipping Cost,Tax AmountPayment MethodShipping MethodBilling Address,Shipping Address(Full details)Line Items: For each item in the order:Product SKU,Product Name,Quantity,Price per item.
- Common Mistake: Losing line item details, not mapping order statuses correctly, or failing to link orders to imported customers.
2. Data Mapping & Import to WooCommerce
This is where you transform your exported data to fit WooCommerce's structure.
H3. Pre-Import Setup
- Install WooCommerce: Set up a fresh WordPress installation with WooCommerce.
- Permalinks: Go to
Settings > Permalinksand selectPost namefor products and categories. This is crucial for SEO-friendly URLs. - Basic Configuration: Set currency, store address, shipping zones, and tax options.
- Tools: For robust imports, consider a premium plugin like WP All Import (with WooCommerce add-on). For simpler migrations, the native WooCommerce CSV importer can work, but it's less flexible for complex data.
H3. Mapping Process
- Create a Mapping Spreadsheet: Map each field from your exported CSV/XML to its corresponding WooCommerce field.
- Example:
Old_Product_Code->SKU,Old_Price->Regular Price.
- Example:
- Products:
- Variations: This is the most complex part. Ensure your export clearly distinguishes parent products from variations, and that attributes (e.g., "Color: Red") are correctly formatted. WP All Import handles this well.
- Categories/Tags: Ensure hierarchical categories are correctly formatted (e.g.,
Electronics > Laptops). - Images: If your export contains image URLs, WP All Import can download and attach them. Ensure these URLs are stable.
- Custom Fields: Map any custom product data (e.g., UPC, brand) to WooCommerce custom fields or specific plugin fields.
- Customers: Map exported customer data to WordPress user fields and WooCommerce customer meta.
- Orders: Map order data, ensuring line items are correctly associated with products (via SKU). This often requires a dedicated order import tool or a custom script.
H3. Import Execution
- Clean Data: Before importing, review your mapped data for inconsistencies, duplicates, or formatting errors.
- Import Order:
- Products: Start with products. Import a small batch (e.g., 10-20 products) to test your mapping. Verify product types, prices, images, and variations.
- Customers: Import customers next.
- Orders: Import orders last, linking them to the imported customers and products.
- Common Mistake: Importing all data at once without testing, incorrect data types (e.g., text in a number field), or not handling product variations properly.
3. URL Preservation & 301 Redirects
This is non-negotiable for SEO. Losing old URLs means losing search engine rankings and traffic.
H3. Strategy
- Export Old URLs: Get a complete list of all product, category, and static page URLs from your old site.
- Generate New URLs: WooCommerce will generate new URLs based on your permalink settings and product/category slugs.
- Create Redirect Map: Build a
Old URL->New URLspreadsheet.- Example:
/old-category/old-product-name.html->/product/new-product-name/
- Example:
- Implement Redirects:
- Plugin: Use a dedicated redirect plugin like Redirection (free) or the redirect features in Rank Math or Yoast SEO Premium. These allow bulk CSV import of redirects.
- .htaccess (Apache) / Nginx config: For very large numbers of redirects, or if you need server-level control, implement them directly in your server configuration file.
.htaccess example:Redirect 301 /old-product-url/ https://newsite.com/new-product-url/RedirectMatch 301 ^/old-category/(.*)$ https://newsite.com/new-category/$1(for wildcard redirects)
- Test Redirects: Use a tool like Screaming Frog or a browser extension to crawl a sample of old URLs and verify they redirect correctly to the new ones (HTTP status 301).
- Common Mistake: Forgetting redirects for deleted products/categories, not testing redirects, or using 302 (temporary) instead of 301 (permanent) redirects.
4. Preserve Metadata
Metadata includes product attributes, custom fields, SEO titles/descriptions, and image alt text.
H3. Steps
- Export: Ensure all relevant metadata is included in your initial data export.
- Mapping: When importing, map these fields to their appropriate WooCommerce or custom fields. WP All Import is highly effective for mapping arbitrary data to custom fields.
- SEO Data: If you used an SEO plugin on the old site, try to export its specific meta title/description fields. Some migration tools can map these directly to Yoast SEO or Rank Math fields in WooCommerce. Otherwise, you may need to re-enter or use a custom script.
- Common Mistake: Assuming metadata will transfer automatically, leading to loss of valuable SEO data or product information.
5. Set Up Payments
Configure your payment gateways to ensure customers can complete purchases.
H3. Configuration
- Install Plugins: Install the official WooCommerce plugins for your chosen payment gateways (e.g., Stripe, PayPal, Square).
- API Keys: Enter your live API keys and credentials.
- Settings: Configure gateway-specific settings, such as payment capture methods, order statuses, and available countries.
- Common Mistake: Not configuring all payment methods, or using test credentials in a live environment.
6. Test Checkout
Thoroughly test the entire customer journey before launch.
H3. Testing Checklist
- Product Pages: Verify all product types (simple, variable, grouped) display correctly with accurate pricing, stock, images, and descriptions.
- Add to Cart: Test adding products from product pages and category listings.
- Cart Page: Update quantities, remove items, apply coupons.
- Checkout Flow:
- Perform a guest checkout.
- Perform a logged-in customer checkout.
- Test all configured shipping methods.
- Test all configured payment gateways (use real, small transactions in live mode to verify actual payment processing).
- Verify order confirmation emails are sent and received.
- Check that the order appears correctly in the WooCommerce admin with the correct status and details.
- Customer Accounts: Register a new user, log in, view past orders, update addresses.
- Common Mistake: Only testing one payment method, not testing edge cases (e.g., out-of-stock product checkout), or not verifying order processing in the backend.
7. Verify SEO (Post-Launch)
Post-migration SEO verification is crucial to maintain search rankings.
H3. Steps
- Sitemap:
- Generate a new XML sitemap (Yoast SEO or Rank Math do this automatically).
- Submit the new sitemap to Google Search Console (GSC) and Bing Webmaster Tools.
- Redirects:
- Monitor GSC for "Not Found (404)" errors. Address any new 404s immediately.
- Use a crawler (e.g., Screaming Frog) to crawl your old site's URLs and ensure they all redirect with a 301 status.
- Google Search Console:
- Add the new site to GSC.
- If your domain changed, use the "Change of Address" tool in GSC.
- Monitor "Core Web Vitals," "Coverage," and "Enhancements" reports for any new issues.
- Analytics:
- Ensure Google Analytics (or your preferred analytics tool) is correctly installed and tracking data from day one.
- Monitor traffic and conversion rates for any significant drops.
- Common Mistake: Forgetting to update GSC, not monitoring for 404s, or not having analytics set up from the start.
Migration Checklist
- [ ] All data exported (Products, Customers, Orders).
- [ ] Data cleaned and mapped to WooCommerce fields.
- [ ] WooCommerce installed and configured (permalinks, currency, shipping, tax).
- [ ] Products imported and verified (all types, images, variations, stock).
- [ ] Customers imported and verified.
- [ ] Orders imported and verified (linked to customers, correct statuses).
- [ ] All old URLs collected.
- [ ] 301 redirects created and thoroughly tested.
- [ ] Payment gateways configured and tested with live transactions.
- [ ] Checkout process tested (guest, logged-in, all payment methods, shipping).
- [ ] Customer account functionality tested (registration, login, order history).
- [ ] New XML sitemap submitted to Google Search Console.
- [ ] Google Search Console "Change of Address" tool used (if domain changed).
- [ ] Google Analytics (or equivalent) tracking verified.
- [ ] Post-launch SEO monitoring plan in place.
Need this done for you? Hire me on Freelancehunt: https://freelancehunt.com/freelancer/sspoisk
Комментарии
Отправить комментарий