Table: mailchimp_root - Query MailChimp Account using SQL
MailChimp is a marketing automation platform and an email marketing service. It provides a platform for users to create, send, and manage email newsletters. The platform also offers various integrations and features to help manage and talk to their audience and customers.
Table Usage Guide
The mailchimp_root
table provides insights into the authenticated MailChimp user's account details. As a marketing professional or business owner, explore account-specific details through this table, including contact details, industry type, and plan details. Utilize it to uncover information about your account, such as the number of audiences, the number of campaigns, and the date of the last login.
Examples
Basic info
Explore the general information of your Mailchimp account, such as the account name, email, last login date, pro status, role, and total subscribers. This can be useful for understanding the account's status and user engagement level.
select account_id, account_name, email, last_login, pro_enabled, role, total_subscribersfrom mailchimp_root;
select account_id, account_name, email, last_login, pro_enabled, role, total_subscribersfrom mailchimp_root;
Get contact details of the account
This query allows you to gain insights into the contact details associated with each account. This can be beneficial for tasks such as account management, marketing outreach, or customer service inquiries.
select account_id, account_name, contact ->> 'addr1' as address1, contact ->> 'addr2' as address2, contact ->> 'city' as city, contact ->> 'company' as company, contact ->> 'country' as country, contact ->> 'state' as state, contact ->> 'zip' as zipfrom mailchimp_root;
select account_id, account_name, json_extract(contact, '$.addr1') as address1, json_extract(contact, '$.addr2') as address2, json_extract(contact, '$.city') as city, json_extract(contact, '$.company') as company, json_extract(contact, '$.country') as country, json_extract(contact, '$.state') as state, json_extract(contact, '$.zip') as zipfrom mailchimp_root;
Get the industry's average campaign statistics of the account
Explore the average campaign statistics within a specific industry to understand performance trends such as open rate, bounce rate, and click rate. This can help in benchmarking your account's performance against industry averages.
select account_id, account_name, industry_stats ->> 'open_rate' as open_rate, industry_stats ->> 'bounce_rate' as bounce_rate, industry_stats ->> 'click_rate' as click_ratefrom mailchimp_root;
select account_id, account_name, json_extract(industry_stats, '$.open_rate') as open_rate, json_extract(industry_stats, '$.bounce_rate') as bounce_rate, json_extract(industry_stats, '$.click_rate') as click_ratefrom mailchimp_root;
Get the details of the users who havent't logged in in the last 30 days
Discover users who have been inactive for the past month. This query is useful for identifying potential user churn or inactive accounts that may require re-engagement efforts.
select account_id, account_name, email, last_login, role, total_subscribersfrom mailchimp_rootwhere last_login <= now() - interval '30' day;
select account_id, account_name, email, last_login, role, total_subscribersfrom mailchimp_rootwhere last_login <= datetime('now', '-30 day');
Get the details of the users who use Mailchimp Pro version
Discover the segments of users who have opted for the Pro version of Mailchimp. This is beneficial for understanding user preferences and tailoring marketing strategies accordingly.
select account_id, account_name, email, last_login, role, total_subscribersfrom mailchimp_rootwhere pro_enabled;
select account_id, account_name, email, last_login, role, total_subscribersfrom mailchimp_rootwhere pro_enabled = 1;
Schema for mailchimp_root
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The Mailchimp account ID. |
account_name | text | The name of the account. | |
contact | jsonb | Information about the account contact. | |
text | The account email address. | ||
industry_stats | jsonb | The average campaign statistics for all campaigns in the account's specified industry. | |
last_login | timestamp with time zone | The date and time of the last login for this account in ISO 8601 format. | |
pro_enabled | boolean | Whether the account includes Mailchimp Pro. | |
role | text | The user role for the account. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
title | text | The title of the resource. | |
total_subscribers | bigint | The total number of subscribers across all lists in the account. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- mailchimp
You can pass the configuration to the command with the --config
argument:
steampipe_export_mailchimp --config '<your_config>' mailchimp_root