{
  "format": "dataset-manifest/1",
  "slug": "email-campaign-engagement",
  "version": 3,
  "seed": "email-campaign-engagement:1",
  "spec": {
    "format": "dataset/1",
    "slug": "email-campaign-engagement",
    "name": "Email Campaign Engagement",
    "tagline": "Email marketing metrics including audiences, campaigns, sends, engagement events, and unsubscribes.",
    "description": "Email marketing teams craft engaging campaigns to connect with their audiences and drive action. They segment target audiences based on demographics and behaviors to maximize engagement. Each campaign is carefully designed with specific goals, and once launched, emails are sent to the identified audiences, initiating a series of measurable interactions. These interactions are captured through various engagement events, including opens, clicks, and unsubscribes, allowing marketers to analyze the effectiveness of their strategies in real-time.\n\nIn this dataset, the 'audiences' table contains information about different segments of recipients, detailing their preferences and characteristics. Each audience is linked to multiple 'campaigns', which outline the specific emails sent out. The 'sends' table records each email sent, associated with a specific campaign and audience, including timestamps for accurate tracking. The 'engagement_events' capture the actions taken by recipients after receiving the emails, providing insights into how effectively the campaigns resonate with the intended audience. Lastly, the 'unsubscribes' table logs instances where recipients choose to opt-out, offering crucial feedback on audience satisfaction and campaign relevance.\n\nThe relationships among these tables allow marketers to answer vital questions, such as: Which audience segments engage the most? What type of content leads to higher click-through rates? How do engagement rates differ across various campaigns? This data is excellent for practicing skills related to data analysis, marketing strategy evaluation, and understanding customer behavior in a digital marketing context. \n\nKeep in mind, this data is synthetic, designed to mimic real-world scenarios while providing a safe and practical environment for developers to hone their skills.",
    "domain": "marketing",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "email marketing",
      "campaigns",
      "engagement",
      "analytics",
      "unsubscribes",
      "sends",
      "audiences"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "audiences": {
        "description": "This table contains information about the audiences targeted in email campaigns. Each audience has a unique identifier and descriptive attributes.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each audience."
          },
          "name": {
            "kind": "words",
            "max": 3,
            "description": "The name of the audience.",
            "pool": [
              "marketers",
              "students",
              "professionals",
              "parents",
              "retirees",
              "techies",
              "gamers",
              "travelers",
              "foodies",
              "athletes",
              "creatives",
              "entrepreneurs",
              "educators",
              "investors",
              "healthcare",
              "petowners",
              "fashionistas",
              "environmentalists",
              "hobbyists",
              "seniors"
            ],
            "min": 1
          },
          "description": {
            "kind": "sentence",
            "max": 50,
            "description": "A brief description of the audience."
          }
        }
      },
      "campaigns": {
        "description": "This table holds details about the email campaigns created. Each campaign is linked to a specific audience.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each campaign."
          },
          "audience_id": {
            "kind": "fk",
            "ref": "audiences.id",
            "description": "The audience targeted by the campaign."
          },
          "title": {
            "kind": "words",
            "max": 3,
            "description": "Title of the email campaign.",
            "pool": [
              "launch",
              "update",
              "newsletter",
              "promotion",
              "event",
              "webinar",
              "offer",
              "survey",
              "announcement",
              "guide",
              "strategy",
              "tips",
              "trends",
              "insights",
              "case",
              "study",
              "report",
              "feedback",
              "invitation",
              "reminder",
              "welcome"
            ],
            "min": 1
          },
          "created_at": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-01-01",
            "description": "The date and time when the campaign was created.",
            "dayProfile": "business"
          }
        }
      },
      "sends": {
        "description": "This table records the instances when emails are sent out as part of a campaign. Each send is linked to a specific campaign.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each send event."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "The campaign associated with this send."
          },
          "sent_at": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-01-01",
            "description": "The date and time when the email was sent.",
            "dayProfile": "waking"
          }
        }
      },
      "engagement_events": {
        "description": "This table captures user engagement events resulting from email sends, such as opens and clicks. Each event is linked to the specific send.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each engagement event."
          },
          "send_id": {
            "kind": "fk",
            "ref": "sends.id",
            "description": "The send associated with this engagement event."
          },
          "event_type": {
            "kind": "enum",
            "values": [
              "open",
              "click"
            ],
            "description": "Type of engagement event.",
            "weights": [
              7,
              3
            ]
          },
          "event_at": {
            "kind": "datetime",
            "after": "send_id.sent_at",
            "withinDays": 30,
            "description": "The date and time when the engagement event occurred."
          }
        }
      },
      "unsubscribes": {
        "description": "This table records instances of users unsubscribing from campaigns. Each unsubscribe is linked to a specific send.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each unsubscribe event."
          },
          "send_id": {
            "kind": "fk",
            "ref": "sends.id",
            "description": "The send associated with this unsubscribe event."
          },
          "unsubscribed_at": {
            "kind": "datetime",
            "after": "send_id.sent_at",
            "withinDays": 30,
            "description": "The date and time when the unsubscribe occurred."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the average open rate for different campaigns?",
      "How quickly do users engage with emails after they are sent?",
      "What percentage of recipients unsubscribe after receiving a campaign?",
      "Which audience segments respond better to specific campaign types?",
      "How do engagement metrics vary across different times of the year?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Campaigns and Sends",
        "sql": "SELECT c.title, s.sent_at FROM campaigns c JOIN sends s ON c.id = s.campaign_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Engagement Events by Type",
        "sql": "SELECT event_type, COUNT(*) FROM engagement_events GROUP BY event_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Unsubscribes per Campaign",
        "sql": "SELECT c.title, COUNT(u.id) AS unsubscribe_count FROM campaigns c LEFT JOIN unsubscribes u ON u.send_id IN (SELECT id FROM sends WHERE campaign_id = c.id) GROUP BY c.id;",
        "dialect": "postgres"
      },
      {
        "title": "Engagement Over Time",
        "sql": "SELECT DATE(event_at) AS engagement_date, COUNT(*) FROM engagement_events GROUP BY engagement_date ORDER BY engagement_date;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Marketing Analyst",
        "body": "A marketing analyst can utilize this dataset to evaluate the effectiveness of various email campaigns over time. By analyzing open and click rates, they can identify trends and patterns that inform future campaign strategies."
      },
      {
        "title": "Data Scientist",
        "body": "A data scientist might use this dataset to build predictive models around user engagement. By examining the timing and type of engagement events, they can create algorithms that predict future user behavior based on historical data."
      },
      {
        "title": "Business Intelligence Developer",
        "body": "A BI developer can integrate this dataset into a dashboard, providing stakeholders with real-time insights into campaign performance. Visualizations can highlight key metrics such as engagement rates and unsubscribe counts, supporting data-driven decision-making."
      }
    ]
  },
  "counts": {
    "audiences": 200,
    "campaigns": 150,
    "sends": 500,
    "engagement_events": 1000,
    "unsubscribes": 200
  },
  "stats": {
    "audiences": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "name": {
          "nulls": 0,
          "distinct": 152
        },
        "description": {
          "nulls": 0,
          "distinct": 200
        }
      }
    },
    "campaigns": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "audience_id": {
          "nulls": 0,
          "distinct": 112,
          "min": 3,
          "max": 200
        },
        "title": {
          "nulls": 0,
          "distinct": 113
        },
        "created_at": {
          "nulls": 0,
          "distinct": 150,
          "min": "2022-01-15 17:12:46",
          "max": "2023-01-01 10:17:18"
        }
      }
    },
    "sends": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 145,
          "min": 1,
          "max": 150
        },
        "sent_at": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-01 13:46:07",
          "max": "2023-01-01 16:47:05"
        }
      }
    },
    "engagement_events": {
      "rows": 1000,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 1000,
          "min": 1,
          "max": 1000
        },
        "send_id": {
          "nulls": 0,
          "distinct": 434,
          "min": 1,
          "max": 499
        },
        "event_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "click",
          "max": "open"
        },
        "event_at": {
          "nulls": 0,
          "distinct": 1000,
          "min": "2022-01-05 22:50:08",
          "max": "2023-01-29 08:31:52"
        }
      }
    },
    "unsubscribes": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "send_id": {
          "nulls": 0,
          "distinct": 156,
          "min": 3,
          "max": 500
        },
        "unsubscribed_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2022-01-11 10:46:47",
          "max": "2023-01-28 12:59:56"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/audiences.csv",
      "format": "csv",
      "table": "audiences",
      "key": "datasets/email-campaign-engagement/v3/csv/audiences.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/csv/audiences.csv",
      "bytes": 16264,
      "sha256": "01b77352352247b4c2be46f81720d8f7800ab00a9799a0dea6fab1a2688bf06a",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/campaigns.csv",
      "format": "csv",
      "table": "campaigns",
      "key": "datasets/email-campaign-engagement/v3/csv/campaigns.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/csv/campaigns.csv",
      "bytes": 6581,
      "sha256": "608cee5f7812da0f32dcc5ab4f4438181bf2901c85160de9e1b4bdd1871bf1a7",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/sends.csv",
      "format": "csv",
      "table": "sends",
      "key": "datasets/email-campaign-engagement/v3/csv/sends.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/csv/sends.csv",
      "bytes": 14056,
      "sha256": "4e8144d87acd9e72a34e983b20734feefbbff80fe016d6b8c24d74fa438e2cb7",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/engagement_events.csv",
      "format": "csv",
      "table": "engagement_events",
      "key": "datasets/email-campaign-engagement/v3/csv/engagement_events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/csv/engagement_events.csv",
      "bytes": 34009,
      "sha256": "214142cf0f22ee632b12d704b9d103ef591ad19eede17843071d51eccd9ed31b",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/unsubscribes.csv",
      "format": "csv",
      "table": "unsubscribes",
      "key": "datasets/email-campaign-engagement/v3/csv/unsubscribes.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/csv/unsubscribes.csv",
      "bytes": 5673,
      "sha256": "fd61d2435ac6b2de44af999d9d9a5e62a4ef38f8d404db6722db338089d2594f",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "email-campaign-engagement.json",
      "format": "json",
      "table": null,
      "key": "datasets/email-campaign-engagement/v3/email-campaign-engagement.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/email-campaign-engagement.json",
      "bytes": 235526,
      "sha256": "789b042b8564496448bd553d1bb46ef743f2731dc61236728f982704edca9939",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/email-campaign-engagement/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/sql/postgres.sql",
      "bytes": 103701,
      "sha256": "51d67d6f6a125047f769050819e63c8ea2a476d2c984afa6a30e4d7b7167cbc3",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/email-campaign-engagement/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/sql/mysql.sql",
      "bytes": 103126,
      "sha256": "ab54a3620f91097ba7636aad07ef38dd13676c2db2b6749bea8bf24e67f758db",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/email-campaign-engagement/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/sql/mssql.sql",
      "bytes": 106871,
      "sha256": "b3eb2a0e0672aa3a17e67df2b2c1f0d009c9627f0b0948ea73dd991b0a628e45",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/email-campaign-engagement/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/sql/sqlite.sql",
      "bytes": 102930,
      "sha256": "1487aa3031159fbaba23e5b9b9fb61fd6d9102c7288cd64ce83cfc942cecc2eb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/email-campaign-engagement/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/prisma/seed.ts",
      "bytes": 206695,
      "sha256": "705b63f9c0fcfa811aaabb493d40ec0c751745c0b79db553be143b53e5462dd8",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/email-campaign-engagement/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/email-campaign-engagement/v3/django/fixtures.json",
      "bytes": 329564,
      "sha256": "e7f36d3d9d271e77cc8b28d81979d798c24ad5680fe9c8af1bd5baa3f3e0136d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766646835,
  "updatedAt": 1788783625157
}
