{
  "format": "dataset-manifest/1",
  "slug": "marketing-campaign-insights",
  "version": 2,
  "seed": "marketing-campaign-insights:1",
  "spec": {
    "format": "dataset/1",
    "slug": "marketing-campaign-insights",
    "name": "Marketing Campaign Insights",
    "tagline": "User engagements, campaigns, leads, project tasks, and invoices from marketing initiatives.",
    "description": "Marketing teams design and execute campaigns to engage users and drive sales. They analyze user interactions, evaluate campaign performance, generate leads, and manage projects related to various products and services. Activities within the business revolve around understanding how users respond to campaigns and how these responses translate into tangible business outcomes. The data reflects numerous user engagements with campaigns, providing insights into which strategies are effective and which require adjustments. Occasional high-value invoices and unique project tasks highlight successful initiatives, offering a glimpse into the operational aspects of the business.\n\nThe dataset consists of several tables that create a comprehensive view of this marketing operation. The user_engagements table tracks individual interactions from users with specific campaigns, detailing metrics such as clicks, impressions, and engagement rates. The campaigns table outlines various marketing initiatives, specifying aspects like campaign goals, target demographics, and overall performance metrics. Leads are represented in the leads table, capturing potential customers generated through campaigns, including their contact information and conversion status. Project tasks in the project_tasks table detail action items and milestones necessary for executing campaigns and managing leads effectively. Finally, the invoices table records financial transactions related to completed sales, linking back to campaign performance and project success.\n\nQueries arising from this dataset can address key marketing questions such as: What types of user engagement correlate with higher lead conversion rates? Which campaigns yield the highest revenue, as reflected in the invoices? How project tasks influence campaign outcomes? This dataset provides a rich environment for practicing data analysis and visualization skills, revealing patterns and insights that can drive marketing decisions. Note that all data within these tables is synthetic, crafted to mimic real-world scenarios for learning and analysis.",
    "domain": "marketing",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "marketing",
      "campaigns",
      "user engagement",
      "leads",
      "analytics",
      "performance",
      "projects"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "user_engagements": {
        "description": "Records interactions from users with various marketing campaigns. Each row links to a specific campaign and user.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user engagement record."
          },
          "user_id": {
            "kind": "uuid",
            "description": "Unique identifier for the user engaging with the campaign."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "Reference to the campaign the user engaged with."
          },
          "engagement_type": {
            "kind": "enum",
            "values": [
              "click",
              "view",
              "share"
            ],
            "description": "Type of engagement the user made.",
            "weights": [
              6,
              3,
              1
            ]
          },
          "engagement_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the user engagement.",
            "nullable": true,
            "when": {
              "column": "engagement_type",
              "in": [
                "click",
                "view",
                "share"
              ]
            },
            "dayProfile": "waking"
          }
        }
      },
      "campaigns": {
        "description": "Details of marketing campaigns, including their objectives and outcomes.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each campaign."
          },
          "name": {
            "kind": "title",
            "description": "Name of the campaign.",
            "pool": [
              "growth",
              "launch",
              "engagement",
              "branding",
              "awareness",
              "conversion",
              "retention",
              "promotion",
              "outreach",
              "expansion",
              "innovation",
              "insight",
              "impact",
              "reach",
              "experience",
              "strategy",
              "success",
              "connect",
              "value",
              "lead",
              "target"
            ],
            "min": 1,
            "max": 3
          },
          "start_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Campaign start date.",
            "trend": "growing"
          },
          "end_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Campaign end date.",
            "trend": "growing"
          },
          "goal": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Objective of the campaign.",
            "nullable": true,
            "pool": [
              "increase",
              "engagement",
              "brand",
              "awareness",
              "sales",
              "conversion",
              "traffic",
              "loyalty",
              "reach",
              "lead",
              "growth",
              "visibility",
              "retention",
              "acquisition",
              "revenue",
              "influence",
              "promotion",
              "feedback",
              "interaction",
              "satisfaction",
              "success"
            ]
          }
        }
      },
      "leads": {
        "description": "Information about potential customers who have shown interest in campaigns.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each lead."
          },
          "user_id": {
            "kind": "uuid",
            "description": "Unique identifier for the user who is a lead."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "Reference to the campaign the lead is associated with."
          },
          "status": {
            "kind": "enum",
            "values": [
              "new",
              "contacted",
              "qualified",
              "converted"
            ],
            "description": "Current status of the lead.",
            "weights": [
              5,
              4,
              2,
              1
            ]
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time the lead was created.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "contacted",
                "qualified",
                "converted"
              ]
            },
            "dayProfile": "business"
          }
        }
      },
      "project_tasks": {
        "description": "Tasks associated with the execution of campaigns, including their statuses.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each project task."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "Reference to the campaign this task is related to."
          },
          "task_description": {
            "kind": "sentence",
            "min": 5,
            "max": 100,
            "description": "Description of the task.",
            "nullable": true
          },
          "status": {
            "kind": "enum",
            "values": [
              "pending",
              "in_progress",
              "completed"
            ],
            "description": "Current status of the project task.",
            "weights": [
              7,
              2,
              1
            ]
          },
          "due_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Deadline for completing the task.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "in_progress",
                "completed"
              ]
            },
            "trend": "seasonal"
          }
        }
      },
      "invoices": {
        "description": "Invoices generated from successful lead conversions related to campaigns.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each invoice."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead that resulted in the invoice."
          },
          "amount": {
            "kind": "decimal",
            "min": 100,
            "max": 10000,
            "scale": 2,
            "description": "Total amount of the invoice.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the invoice was created.",
            "nullable": true,
            "dayProfile": "business"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What types of user engagements are most common across campaigns?",
      "How does the duration of a campaign affect the number of leads generated?",
      "What is the conversion rate from leads to invoices for different campaigns?",
      "Which campaigns have the highest project task completion rates?",
      "What factors influence lead status changes over time?"
    ],
    "suggestedQueries": [
      {
        "title": "Join User Engagements with Campaigns",
        "sql": "SELECT u.id, u.engagement_type, c.name FROM user_engagements u JOIN campaigns c ON u.campaign_id = c.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Leads by Campaign",
        "sql": "SELECT c.name, COUNT(l.id) AS lead_count FROM campaigns c LEFT JOIN leads l ON c.id = l.campaign_id GROUP BY c.name;",
        "dialect": "postgres"
      },
      {
        "title": "Average Invoice Amounts by Lead Status",
        "sql": "SELECT l.status, AVG(i.amount) AS average_amount FROM invoices i JOIN leads l ON i.lead_id = l.id GROUP BY l.status;",
        "dialect": "postgres"
      },
      {
        "title": "Engagement Trends Over Time",
        "sql": "SELECT DATE(u.engagement_date) AS engagement_day, COUNT(u.id) AS total_engagements FROM user_engagements u GROUP BY engagement_day ORDER BY engagement_day;",
        "dialect": "postgres"
      },
      {
        "title": "Campaign Performance Overview",
        "sql": "SELECT c.name, COUNT(DISTINCT l.id) AS leads_generated, COUNT(DISTINCT i.id) AS invoices_issued FROM campaigns c LEFT JOIN leads l ON c.id = l.campaign_id LEFT JOIN invoices i ON l.id = i.lead_id GROUP BY c.name;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Marketing Performance Analysis",
        "body": "Marketing analysts can use this dataset to evaluate the effectiveness of various campaigns by examining user engagement data, lead generation metrics, and conversion rates. By performing SQL queries, they can identify which campaigns had the most significant impact on sales and user interactions, leading to better strategic decisions."
      },
      {
        "title": "ETL Pipelines for Data Integration",
        "body": "Data engineers may utilize this dataset to create ETL pipelines that extract, transform, and load marketing campaign data into a centralized database. This allows for seamless integration with other business intelligence tools, enhancing reporting capabilities and providing stakeholders with timely insights into campaign performance."
      },
      {
        "title": "Lead Management Optimization",
        "body": "Sales teams can leverage this dataset to track leads and their statuses over time. By analyzing lead data, they can identify trends in lead conversion and optimize their follow-up strategies, ultimately improving their chances of converting leads into customers."
      },
      {
        "title": "Project Management in Marketing",
        "body": "Project managers can access the project_tasks table to monitor the progress of tasks associated with marketing campaigns. By analyzing task status and due dates, they can ensure that projects stay on track and meet their deadlines, contributing to smoother campaign execution."
      }
    ]
  },
  "counts": {
    "campaigns": 100,
    "leads": 500,
    "invoices": 200,
    "project_tasks": 300,
    "user_engagements": 1000
  },
  "stats": {
    "user_engagements": {
      "rows": 1000,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 1000,
          "min": 1,
          "max": 1000
        },
        "user_id": {
          "nulls": 0,
          "distinct": 1000
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "engagement_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "click",
          "max": "view"
        },
        "engagement_date": {
          "nulls": 0,
          "distinct": 1000,
          "min": "2023-01-01 14:58:19",
          "max": "2023-12-31 22:10:56"
        }
      }
    },
    "campaigns": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 80
        },
        "start_date": {
          "nulls": 0,
          "distinct": 89,
          "min": "2023-01-21",
          "max": "2023-12-28"
        },
        "end_date": {
          "nulls": 0,
          "distinct": 88,
          "min": "2023-01-02",
          "max": "2023-12-31"
        },
        "goal": {
          "nulls": 10,
          "distinct": 77
        }
      }
    },
    "leads": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "user_id": {
          "nulls": 0,
          "distinct": 500
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "status": {
          "nulls": 0,
          "distinct": 4,
          "min": "contacted",
          "max": "qualified"
        },
        "created_at": {
          "nulls": 200,
          "distinct": 300,
          "min": "2023-01-02 16:45:05",
          "max": "2023-12-29 16:32:57"
        }
      }
    },
    "project_tasks": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 95,
          "min": 1,
          "max": 100
        },
        "task_description": {
          "nulls": 28,
          "distinct": 270
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "completed",
          "max": "pending"
        },
        "due_date": {
          "nulls": 208,
          "distinct": 82,
          "min": "2023-01-03",
          "max": "2023-12-31"
        }
      }
    },
    "invoices": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 166,
          "min": 3,
          "max": 500
        },
        "amount": {
          "nulls": 19,
          "distinct": 181,
          "min": 100.04,
          "max": 9622.28
        },
        "created_at": {
          "nulls": 20,
          "distinct": 180,
          "min": "2023-01-03 05:07:30",
          "max": "2023-12-31 17:40:57"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/campaigns.csv",
      "format": "csv",
      "table": "campaigns",
      "key": "datasets/marketing-campaign-insights/v2/csv/campaigns.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/csv/campaigns.csv",
      "bytes": 5987,
      "sha256": "fcb279308b5503dbc291dce17ba8d54fff73b74e286e5ea070cbda22a6e0a03f",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/leads.csv",
      "format": "csv",
      "table": "leads",
      "key": "datasets/marketing-campaign-insights/v2/csv/leads.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/csv/leads.csv",
      "bytes": 32404,
      "sha256": "906f2cdb328b0427c15a6803e6128674cfd80179238908264d45cdecba394070",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/invoices.csv",
      "format": "csv",
      "table": "invoices",
      "key": "datasets/marketing-campaign-insights/v2/csv/invoices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/csv/invoices.csv",
      "bytes": 6691,
      "sha256": "fc25b5d0c7eae3a4b195021b67cc75111a63ee42e9c78a51a6dc7037bfb99e39",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/project_tasks.csv",
      "format": "csv",
      "table": "project_tasks",
      "key": "datasets/marketing-campaign-insights/v2/csv/project_tasks.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/csv/project_tasks.csv",
      "bytes": 21597,
      "sha256": "621e09efe67a97a083bce3c315084905d48ba0cf7a12959f7b3f24438331715d",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/user_engagements.csv",
      "format": "csv",
      "table": "user_engagements",
      "key": "datasets/marketing-campaign-insights/v2/csv/user_engagements.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/csv/user_engagements.csv",
      "bytes": 70564,
      "sha256": "dfc64625ddad9f0f6c38c24eea992c73cf47fede8c5638c5bf54e8af9ac97f78",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "marketing-campaign-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/marketing-campaign-insights/v2/marketing-campaign-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/marketing-campaign-insights.json",
      "bytes": 375117,
      "sha256": "ef4374059f64069b84eaf94bc626d99465cc5c3cd7f505dcb285a86e88eeb70e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/marketing-campaign-insights/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/sql/postgres.sql",
      "bytes": 174250,
      "sha256": "275fd3bd3fd4474f69610575ddd49db72843edf56dbe5af2b9b16773e276aa01",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/marketing-campaign-insights/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/sql/mysql.sql",
      "bytes": 173686,
      "sha256": "650097176d0a2cd43ba4f254f2c031be9c0d030f97abd84451c0b68d3747e9e8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/marketing-campaign-insights/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/sql/mssql.sql",
      "bytes": 179580,
      "sha256": "b0f959cc00407deb9bf89096e5ee5e597c7dd99840c86a5a3d72e5b10bbe3edc",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/marketing-campaign-insights/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/sql/sqlite.sql",
      "bytes": 173470,
      "sha256": "05c8f053eb8e1da56db3f23ebc88f947de0202b02e73db2d47d4451807bb20ae",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/marketing-campaign-insights/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/prisma/seed.ts",
      "bytes": 318806,
      "sha256": "e74fed56a87a12dc42bdcee69716da280632a38a0201c634a5906a6101e35fd9",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/marketing-campaign-insights/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-campaign-insights/v2/django/fixtures.json",
      "bytes": 470073,
      "sha256": "d10a6e1bb4ce5f8a9284b303df9dad580c15e34c50b3546425d13a82be6ec123",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767983907,
  "updatedAt": 1788784861957
}
