How to Import & Export Newsletter Subscribers in Magento 2

magento 2 import export newsletter subscribers

Today, we’d like to introduce you to the Magento 2 import export of newsletter subscribers. Suppose you run an online business with multiple newsletter subscribers but want to move to a brand new Magento 2 website (read about data migration from Magento 2 to 1). Of course, you would like to migrate all the existing newsletter subscribers to the new storefront. Magento 2, however, doesn’t let you do that with the help of its default import and export tools. Luckily, there is a solution that enables the desired functionality. Meet the Improved Import & Export extension. With its help, you will freely import and export newsletter subscribers in Magento 2.

In the following article, we focus on transferring newsletter subscribers to and from Magento 2. You will discover the conditions for importing subscriber data to your e-commerce website. Besides, we provide attributes associated with newsletter subscribers in Magento 2. And of course, there is a guide on how to import newsletter subscribers from Magento 1 to Magento 2. If you are going to migrate from your old e-commerce website to a brand-new one, you’ve come to the right place. The general details about Magento 2 newsletter subscribers’ import and export are also gathered below.

Table of contents

Overview & Magento 2 Newsletter Subscriber Management

A newsletter subscription is an e-commerce feature that allows you to attract buyers to a site and create a loyal customer base. The right use of newsletter subscription within Magento 2 improves the impact of your marketing activity, increases conversion, and boosts sales. 

Complimenting such customer-engaging strategies as a reward program, refer-a-friend, abandoned cart, and others, newsletter subscription stands out from the list thanks to its double-purpose nature. It both serves as an info source and attracts visitors to a store. You can keep your audience aware of your store events, providing them with an opportunity to find a relevant offer among various campaigns held. 

Newsletter subscriber, in turn, is a special customer status in Magento 2. By default, every store visitor can become a subscriber upon filling out the special section at the front end. However, configuring the general newsletter settings allows for defining whether a guest subscription is permitted or not. For manual admin control, there’s an option to assign specific users to the subscriber list from the customer pages in the backend. 

The list of newsletter subscribers can be found at Marketing > Communications > Newsletter Subscribers. The tab contains subscriber info, including email addresses, names (if there are any), associated websites, and store views. Once enabled, subscriptions stay active and update a subscriber list even if you are not sending out newsletters at the moment. 

magento 2 import export newsletter subscribers

Importing and exporting Magento 2 newsletter subscribers is a safe way of transferring a built-up customer base from one system to another so that your audience stays with you. Here, in the post, we will discover every detail on how to import newsletter subscribers successfully.

Magento 2 Newsletter Subscriber Import Preparations 

Since Magento 2 processes data in a table format only, you have to either transfer the existing table from another platform or build a relevant one yourself to import newsletter subscribers. If you want to compose a data table from scratch, see the Master Google Sheet for references. 

We use a CSV table as a sample to display the improved import functionality via a well-known format for those who’ve tried any kind of import in Magento 2. As CSV is frequently used in Magento 2, our Master Google Sheets contains all the possible entity tables in the very format.

The next chapter will unveil the specifics of the newsletter subscriber attributes. But before you start with your CSV table, make sure to see the requirements for the data enclosure:  

Character set Unicode (UTF-8)
Field separator Comma, Tab
Text delimiter

Magento 2 Import Export of Newsletter Subscribers: Attributes

The data table below contains all the information you may require during the Magento 2 newsletter subscriber import. In addition, we highly recommend you check out the Sample GoogleSheet to learn the specifics of subscribers’ transfer from another system or store to Magento 2. 

Attribute name Reference Values Value example
subscriber_id Internal ID of the subscriber used for identification purposes inside of Magento 2 Numeral value 25
subscriber_email The email address of a subscriber to whom newsletters will be sent. 

The main identifier of a subscriber. A required value.

Typical symbols for an email address testsub@email.com
store_id The store ID where a user is identified as a subscriber.

A required value. 

Numeral value.

You can find store_id in the URL of the store view at Stores > All Stores.

1
subscriber_status The status of a newsletter subscriber.

A required value. 

1 – Subscribed

2 – Not active

3 – Unsubscribed

4 – Unconfirmed

4
change_status_at Date and time when any sort of changes have been applied to a subscriber status The data format is:

yyyy-mm-dd

The time format is:

hh:mm:ss

2020-01-01 22:03:16
firstname The first name of a newsletter subscriber Alphabetic, numeral values.

Special signs and punctuation marks are also supported.

James
lastname The last name of a subscriber Alphabetic, numeral values.

Special signs and punctuation marks are also supported.

Poe
password_hash Hash is generated automatically during export so that a customer can log in to the new system with the same email and password. Ex.: You have a table where a password hash is known only for some subscribers, but not for all of them. In this case, only rows with a specified hash will create new customers in a store.

The other subscribers will be considered guests, even if there’s data on the customer’s first and last names.

See the Sample Sheet
subscriber_confirm_code The value appears in the previously exported files. Defines the code that is added to each newsletter for spam protection. See the Sample Sheet See the Sample Sheet

Magento 2 Newsletter Subscriber Import & Export: Prerequisites

To gain the maximum benefits out of Magento 2 newsletter subscriber import, you need to learn how to use the procedure efficiently.

In this chapter, we’ve prepared the most useful tips and tricks that will help you master this type of import faster.

  • Magento 2 newsletter subscriber import is impossible without providing three vital values — ‘subscriber_email’, ‘store_id’, and ‘subscriber_status’. Other attributes are optional and will be created automatically.
  • The ‘password_hash’ and ‘subscriber_confirm_code’ are only true for a file previously composed during export. You can’t create a password hash or confirmation code yourself, as they are retrieved automatically from the original system.
  • A subscriber is identified with the ‘subscriber_email’ value. All the updates will be applied only if a subscriber email is specified. 
  • If a subscriber doesn’t belong to a target database, they are added automatically during import. The password hash is a crucial value for the process.
  • All subscribers imported without data on password hash will be considered guests and will be displayed only through the three main identifiers a subscriber email, store ID, and subscriber status — in the subscriber list in the backend.
  • Password hash allows users whose data was transferred to log in to the new system under their previous name and with the previous password. Based on the feature, any changes to the first and last names in the transferred subscriber data will not be applied. However, you can change any other attribute without problems.
  • In case you transfer the ‘newsletter subscribers’ entity from Magento 1 to Magento 2, double-check what password hash algorithm is used for the subscriber credentials. Only two types are supported for import via the functionality — md5 and sha256.

Keep in mind that some countries’ legislations forbid subscribing users to a newsletter without their consent. Make sure to provide customers with the proper notice on how your newsletter subscriptions work and stay compliant with GDPR and other user protection policies.

How to Import Newsletter Subscribers from Magento 1 to Magento 2

Since Magento 2 doesn’t let you transfer this entity by default, you need a third-party solution responsible for the complete migration. Although there are Magento 2 extensions aimed at newsletter subscribers only, we don’t recommend you use them since there is a universal instrument designed for the migration of all entities. Meet the Free Magento 1 to Magento 2 Migration add-on by Firebear. We developed this tool to let Magento 1 merchants effortlessly migrate to the second version of our favorite e-commerce platform. Let’s take a look at the core features the addon offers to move newsletter subscribers from Magento 1 to Magento 2. 

Magento 1 to Magento 2 Migration Service and Assisted Migration

Features

  • Free Add-On. You can get the add-on for free, but note that it works together with the Improved Import & Export Magento 2 extension. Both the module and add-on are developed by certified Magento 2 specialists, so you deal with the best import and export solutions.
  • Administrator Panel + CLI. You can launch the migration of newsletter subscribers from Magento 1 to Magento 2 with no programming skills. The add-on offers an intuitive admin interface. However, you can also leverage simple CLI commands. They always follow the same pattern: bin/magento firebear:migrate –entity=EntityName. For instance, bin/magento firebear:migrate –entity=NewsletterSubscribers.
  • Selective Migration. You can quickly transfer all the core entities from Magento 1 to Magento 2, including newsletter subscribers, products, customers, categories, orders, etc. The full list is available below.
  • Downtime. The downtime is reduced since you can leverage a separate migration for each entity. It is only necessary to start the reindex.
  • XML Filters. Our add-on lets you utilize custom XML commands to filter customer and product attributes and make your migration more precise.
  • Magento 2 to Magento 2. You can also use the Free Magento 1 to Magento 2 Migration add-on to move data from one Magento 2 website to another or merge two stores.

Entities

Now, let’s take a look at all entities the Free Magento 1 to Magento 2 Migration add-on lets you move between the two e-commerce websites. In addition to Newsletter Subscribers, you can also transfer the following 24 entities

  1. Products;
  2. Product Attributes;
  3. Product reviews;
  4. Product ratings;
  5. Categories;
  6. Product media (including images and videos);
  7. Inventory (product stock data);
  8. CMS blocks (static data);
  9. CMS pages (static data);
  10. Customers with addresses;
  11. Customer groups;
  12. Customer wishlists;
  13. Store administrator accounts;
  14. Email templates;
  15. URL rewrites;
  16. Catalog price rules;
  17. Cart Price Rules;
  18. Orders;
  19. Quotes for orders;
  20. Invoices;
  21. Credit Memos;
  22. Taxes;
  23. Order taxes aggregated;
  24. Order shipping data.

Transferring Newsletter Subscribers from Magento 1 to Magento 2

Now, that you know the opportunities related to the Free Magento 1 to Magento 2 Migration add-on, let’s look at the migration procedure for newsletter subscribers and other entities. 

When you purchase the Improved Import & Export Magento 2 extension, the add-on is automatically added to the download section of your Firebear account. If you already have our module installed, contact us, and we will provide you with the download link.

After installing the extension, run the same procedure for the M1-M2 Migration add-on. Next, follow these steps:

  1. Proceed to the module’s configuration page and specify the Magento 1 (or Magento 2 if you want to transfer data between two M2 websites) database connection credentials.
    Connect Magento 1 database with Magento 2 database for magento 2 import export newsletter subscribers
  2. After that, visit the Data Migration section, where you can specify the path to your Magento 2 root folder.
    Data migration from Magento 1 to Magento 2: magento 2 import export newsletter subscribers
  3. Next, choose Newsletter Subscribers as an entity you want to transfer and hit ‘Run.’ The Improved Import & Export plugin will start the migration from Magento 1 to Magento 2.

That’s it! Now, your newsletter subscribers are successfully transferred from Magento 1 to Magento 2. You can proceed to another entity.

Magento Migration Service and Support

Since the migration addon is free, we provide limited technical support for it. You can leverage demo training and a few tips from our team. However, detailed developer documentation is included. 

If you need full support, contact us or purchase the Support period for Magento 2 extensions.

If you don’t want to be responsible for the migration from Magento 1 to Magento 2, you can rely on the Firebear team. We offer a full-specter migration service, transferring all the data you need to move between your e-commerce websites. We provide not only full-cycle M1-M2 data migration but also post-migration data configuration! If you want to save time and let us do all the dirty work, contact us to discuss the costs and conditions. 

Magento 2 Import and Export of Newsletter Subscribers: General Details

Meet the Improved Import & Export Magento 2 extension – your number-one time-saver when it comes to data transfers to and from your e-commerce website. The module provides the ability to import and export newsletter subscribers automatically. Below, we describe all core features of the plugin in more detail from the perspective of the Magento 2 newsletter subscribers’ import and export.

The Improved Import & Export Magento 2 extension lets you import and export newsletter subscribers to Magento 2 in bulk. It means that the transfer won’t take much time. You can apply several different behaviors during the import process. Firstly, it is possible to import new subscribers into your database. Secondly, the module allows you to update the existing list with the latest data. As for the similar export procedure, it creates an output file according to the specified parameters.

You can use the extension to move newsletter subscribers from Magento 1 to Magento 2. At the same time, migration from external systems is possible, too. So are the transfers in the opposite direction.

Another sphere of application for the Improved Import & Export Magento 2 extension is the bulk editing of newsletter subscribers. Export a file with the corresponding information, mass edit its content, and import the fixed data back to your store. That can be helpful regarding substantial customer lists. The extension will help you save tons of time and effort. And note that you can set subscribers to “Subscribed,” “Unsubscribed,” “Not Activated,” and “Unconfirmed” statuses.

magento 2 import export newsletter subscribers

How to Import Newsletter Subscribers to Magento 2

With the Improved Import & Export Magento 2 extension, you only need to create a new import profile selecting the appropriate entity – newsletter subscribers. After composing a table with the corresponding attributes, follow these steps to import them to Magento 2:

  1. Proceed to System -> Improved Import / Export -> Import Jobs and hit the Add New Job button.
    magento 2 import export newsletter subscribers: add new job

  2. Configure General Settings. You can name your import job and automate the Magento 2 newsletter subscribers’ import if it is a regular process.
    magento 2 import export newsletter subscribers: general settings
  3. Visit the Import Settings section to select Newsletter Subscribers in the Entity dropdown as your import entity.
    magento 2 import export newsletter subscribers: choose entity
  4. Choose Add/Update to add new newsletter subscribers to Magento 2 and update the existing ones.
    magento 2 import export newsletter subscribers: import behavior
  5.  Now, select a file type, data source, and a couple more parameters. If you use a CSV file and want to upload it manually, select CSV and File, and then browse the update.
    magento 2 import export newsletter subscribers: choose import source
  6. Save the job, and run the Magento 2 import.

magento 2 import export newsletter subscribers: import run

You can find more nuances associated with the import process here: Improved Import & Export Extension Manual. Also, contact us to get help with the import of newsletter subscribers to Magento 2.

How to Export Newsletter Subscribers from Magento 2

The situation with the export process is almost the same: create a new export profile, configure the output format and its destination, specify filters, and start the data transfer. Soon, you will get an export file with newsletter subscribers:

Follow these steps to export newsletter subscribers from Magento 2:

  1. Proceed to System > Improved Import/Export > Export jobs and click the ‘Add New Job’ button.
    magento 2 import export newsletter subscribers: add new export job
  2. In the General Settings, specify the job name and set the job schedule to export newsletter subscribers from Magento 2 automatically.
    magento 2 import export newsletter subscribers: general settings export
  3. In the Export Settings section, choose Newsletter Subscribers as your export entity.
    magento 2 import export newsletter subscribers: choose entity
  4. In the Export Behavior, decide on the file format and separators.
    magento 2 import export newsletter subscribers: choose file format
  5. In the Export Source section, select the export source for your newsletter subscribers, such as File, Google Sheets, Dropbox, FTP, URL, etc.
    magento 2 import export newsletter subscribers: choose export source
  6. Finish the configuration and run the export process.

You can find more nuances associated with the export process here: Improved Import & Export Extension Manual. Also, contact us to get help with the Magento 2 newsletter subscribers’ export.

Get Improved Import & Export Magento 2 Extension

Magento 2 Newsletter Subscribers Import & Export FAQ

Let’s take a look at other nuances of importing and exporting Newsletter Subscribers in Magento 2 with the help of the Improved Import & Export Magento 2 extension.

How to import and export newsletter subscribers to Magento 2 automatically?

If you need to import or export newsletter subscribers between Magento 2 and third parties or other Magento 2 websites on a regular basis, you can achieve this goal with the Improved Import & Export extension. The extension leverages cron to let you create a schedule of updates, importing and exporting newsletter subscribers for you at a specified time.

How to import newsletter subscribers to Magento 2 from external systems?

While Magento 2 blocks the import of third-party data that doesn’t follow its requirements, the Improved Import & Export extension lets you create a mapping scheme matching third-party attributes and their values to ones used within the system. Consequently, any external data, including newsletter subscribers, is easily adapted to the native standards of your e-commerce website. Note that you can also apply mapping to export processes to generate the output your partners need.

How to import and export newsletter subscribers to Magento 2 via API?

As we’ve just mentioned above, the Improved Import & Export Magento 2 extension provides the ability to create API connections to let you import newsletter subscribers between Magento 2 and any external systems eliminating standard data file transfers from this process. You can find the corresponding option in every import/export job. Specify the parameters necessary to sync the two systems and freely move newsletter subscribers in a bi-directional API connection. Note that the plugin also lets you leverage its mapping functionality for API connections.

How to import and export newsletter subscribers to Magento 2 via ODS files?

We’ve just mentioned above that you can use our extension to move newsletter subscribers via different file formats. If newsletter subscribers are stored in an ODS file, you no longer need to convert it to a CSV file to fit the Magento 2 requirements. With the Improved Import & Export Magento 2 extension, it is possible to import ODS files to your ecommerce website without any necessity to run the conversion. You can also export newsletter subscribers using this file format.

How to import and export newsletter subscribers to Magento 2 via XLSX files?

We’ve just mentioned above that you can use our extension to move newsletter subscribers via different file formats. If the newsletter subscribers are stored in an XLSX file, you no longer need to convert it to a CSV file to fit the Magento 2 requirements. With the Improved Import & Export Magento 2 extension, it is possible to import XLSX files to your ecommerce website without any necessity to run the conversion. You can also export newsletter subscribers using this file format.

How to import and export newsletter subscribers with custom attributes to Magento 2 via JSON files?

We’ve just mentioned above that you can use our extension to move newsletter subscribers via different file formats. If the newsletter subscribers are stored in an ODS file, you no longer need to convert it to a CSV file to fit the Magento 2 requirements. With the Improved Import & Export Magento 2 extension, it is possible to import JSON files to your ecommerce website without any necessity to run the conversion. You can also export newsletter subscribers using this file format.

How to import newsletter subscribers to Magento 2 via compressed files?

If the newsletter subscribers are stored in a compressed file, you can also use the Improved Import & Export extension to transfer it to Magento 2. Just follow these two requirements:
– your file archive should be in a ZIP or TAR format;
– the compressed data should be stored in a CSV, XML, ODS, XLSX, or JSON file.

How to import newsletter subscribers to Magento 2 from Google Sheets?

As we’ve already mentioned above, storing your newsletter subscribers in Google Sheets is no longer a problem. There is no need to export them from the service and then transfer the output to Magento 2. The Improved Import & Export lets you move the corresponding data straight from Google Sheets to your Magento 2 database. It is only necessary to specify the address of the corresponding table.

How to import and export newsletter subscribers to Magento 2 from Dropbox?

In addition to Google Sheets and other file sources, the Improved Import & Export module supports Dropbox. Your data should be saved as a CSV, XML, ODS, XLSX, or JSON file. If it is compressed, use ZIP or TAR formats. If these conditions are followed, you can use Dropbox as your import and export destination for newsletter subscribers.

How to import and export newsletter subscribers to Magento 2 from Google Drive?

In addition to Google Sheets and Dropbox, there is also an opportunity to use Google Drive to transfer newsletter subscribers to/from Magento 2. As usual, store your data in CSV, XML, ODS, XLSX, or JSON formats. If it is a compressed file, use ZIP or TAR formats.

Final Words

As you can see, the Magento 2 import export of newsletter subscribers is no longer a problem if you use the Improved Import & Export Magento 2 extension. Our module not only enables both procedures but also makes them as comfortable as possible. The straightforward interface of the extension lets you import/export newsletter subscribers to Magento 2 in a fully automated manner via multiple file formats.

Although Magento 2 doesn’t let you transfer newsletter subscribers, you won’t get lost them anymore. With the Improved Import & Export Magento 2 extension and the Free Magento 1 to Magento 2 Migration add-on, you can move them along with 24 other entities within just a few clicks. Follow the links below to get all the necessary instruments to perform the migration:

Get Improved Import & Export Magento 2 Extension

Get Free Magento 1 to Magento 2 Migration Add-On