{
  "format": "dataset-manifest/1",
  "slug": "affiliate-marketing-tracker",
  "version": 1,
  "seed": "affiliate-marketing-tracker:1",
  "spec": {
    "format": "dataset/1",
    "slug": "affiliate-marketing-tracker",
    "name": "Affiliate Performance Insights",
    "tagline": "Performance metrics, campaign details, and user feedback from various affiliate marketing campaigns.",
    "description": "Affiliate marketing connects advertisers with publishers to amplify sales and brand visibility. This dataset models the intricate ecosystem of affiliate marketing, tracking essential performance metrics like clicks, conversions, and user feedback. It provides insights into various affiliate campaigns, illustrating how clicks often peak during shopping seasons while conversions highlight the success of targeted strategies. With diverse entries reflecting user engagement patterns and financial transactions related to merchant payments, this synthetic dataset offers a valuable resource for businesses aiming to optimize their affiliate strategies. The relational structure allows for comprehensive analysis across multiple dimensions of the affiliate marketing process, making it ideal for analytics and business intelligence dashboards.",
    "domain": "marketing",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "affiliate marketing",
      "performance metrics",
      "campaign analysis",
      "clicks",
      "conversions",
      "payments",
      "data insights"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "affiliates": {
        "description": "Each row represents an affiliate with unique identifiers and engagement details, linked to various campaigns through foreign keys.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the affiliate."
          },
          "name": {
            "kind": "fullName",
            "description": "Full name of the affiliate."
          },
          "email": {
            "kind": "email",
            "from": "name",
            "description": "Email address of the affiliate.",
            "nullable": true
          },
          "created_at": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date the affiliate was added to the system."
          }
        }
      },
      "campaigns": {
        "description": "This table captures the details of each marketing campaign, including its duration and associated affiliates.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the campaign."
          },
          "affiliate_id": {
            "kind": "fk",
            "ref": "affiliates.id",
            "description": "Reference to the affiliate running the campaign."
          },
          "name": {
            "kind": "words",
            "min": 3,
            "max": 10,
            "description": "Name of the campaign."
          },
          "start_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Start date of the campaign."
          },
          "end_date": {
            "kind": "date",
            "after": "start_date",
            "withinDays": 60,
            "description": "End date of the campaign.",
            "nullable": true
          }
        }
      },
      "performance_metrics": {
        "description": "Metrics related to affiliate performance for specific campaigns, detailing user interactions over time.",
        "rows": 600,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the performance metric entry."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "Reference to the campaign this metric relates to."
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date of the recorded metrics."
          },
          "clicks": {
            "kind": "int",
            "min": 0,
            "max": 5000,
            "description": "Number of clicks received on the campaign."
          },
          "conversions": {
            "kind": "int",
            "min": 0,
            "max": 500,
            "description": "Number of conversions resulting from the clicks.",
            "nullable": true
          }
        }
      },
      "payments": {
        "description": "Financial transactions related to affiliate payouts, linking each payment to a specific affiliate and campaign.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the payment record."
          },
          "affiliate_id": {
            "kind": "fk",
            "ref": "affiliates.id",
            "description": "Reference to the affiliate receiving the payment."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "Reference to the campaign related to the payment."
          },
          "amount": {
            "kind": "decimal",
            "min": 10,
            "max": 1000,
            "scale": 2,
            "description": "Amount of money paid to the affiliate."
          },
          "payment_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date when the payment was made.",
            "nullable": true
          }
        }
      },
      "user_feedback": {
        "description": "Feedback from users regarding their experience with the affiliate campaigns, providing qualitative insights.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the feedback entry."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "Reference to the campaign this feedback pertains to."
          },
          "user_id": {
            "kind": "uuid",
            "description": "Unique identifier for the user providing feedback."
          },
          "feedback": {
            "kind": "sentence",
            "min": 5,
            "max": 200,
            "description": "User's feedback on the campaign.",
            "nullable": true
          },
          "submitted_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date and time the feedback was submitted.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "monetary",
      "free-text",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the peak times for clicks and conversions in affiliate campaigns?",
      "How does user feedback correlate with conversion rates?",
      "Which affiliates generate the highest revenue through their campaigns?",
      "What is the average payout per campaign for affiliates?",
      "Are there specific campaigns that consistently perform better than others?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Campaigns and Affiliates",
        "sql": "SELECT campaigns.name, affiliates.name FROM campaigns JOIN affiliates ON campaigns.affiliate_id = affiliates.id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Clicks by Campaign",
        "sql": "SELECT campaigns.name, SUM(performance_metrics.clicks) AS total_clicks FROM performance_metrics JOIN campaigns ON performance_metrics.campaign_id = campaigns.id GROUP BY campaigns.name;",
        "dialect": "postgres"
      },
      {
        "title": "Conversion Rates by Date",
        "sql": "SELECT date, SUM(conversions) / NULLIF(SUM(clicks), 0) AS conversion_rate FROM performance_metrics GROUP BY date ORDER BY date;",
        "dialect": "postgres"
      },
      {
        "title": "Payments Analysis",
        "sql": "SELECT affiliates.name, SUM(payments.amount) AS total_paid FROM payments JOIN affiliates ON payments.affiliate_id = affiliates.id GROUP BY affiliates.name;",
        "dialect": "postgres"
      },
      {
        "title": "Feedback Trends Over Time",
        "sql": "SELECT campaigns.name, COUNT(user_feedback.id) AS feedback_count FROM user_feedback JOIN campaigns ON user_feedback.campaign_id = campaigns.id GROUP BY campaigns.name ORDER BY feedback_count DESC;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Marketing Analyst",
        "body": "A marketing analyst uses the dataset to monitor affiliate performance across various campaigns. By analyzing clicks and conversions over time, they identify trends and peak periods, optimizing future campaigns accordingly."
      },
      {
        "title": "Business Intelligence Developer",
        "body": "A BI developer integrates the data into dashboards, allowing stakeholders to visualize affiliate performance metrics. This helps in making informed decisions regarding budget allocations and campaign strategies."
      },
      {
        "title": "Affiliate Manager",
        "body": "An affiliate manager leverages the dataset to evaluate the effectiveness of individual affiliates. By reviewing performance metrics and payments, they can identify high-performing affiliates and tailor incentives to boost performance."
      },
      {
        "title": "Data Scientist",
        "body": "A data scientist employs machine learning techniques on the dataset to predict future trends in affiliate marketing. By analyzing historical data, they develop models that forecast clicks and conversions based on various factors."
      }
    ]
  },
  "counts": {
    "affiliates": 200,
    "campaigns": 150,
    "payments": 300,
    "performance_metrics": 600,
    "user_feedback": 400
  },
  "stats": {
    "affiliates": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "name": {
          "nulls": 0,
          "distinct": 198,
          "min": "Alice Ibrahim",
          "max": "Zoe Miller"
        },
        "email": {
          "nulls": 22,
          "distinct": 176
        },
        "created_at": {
          "nulls": 0,
          "distinct": 180,
          "min": "2023-01-05",
          "max": "2024-12-30"
        }
      }
    },
    "campaigns": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "affiliate_id": {
          "nulls": 0,
          "distinct": 111,
          "min": 1,
          "max": 200
        },
        "name": {
          "nulls": 0,
          "distinct": 150
        },
        "start_date": {
          "nulls": 0,
          "distinct": 136,
          "min": "2023-01-01",
          "max": "2024-12-26"
        },
        "end_date": {
          "nulls": 19,
          "distinct": 125,
          "min": "2023-01-05",
          "max": "2025-01-23"
        }
      }
    },
    "performance_metrics": {
      "rows": 600,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 148,
          "min": 1,
          "max": 150
        },
        "date": {
          "nulls": 0,
          "distinct": 412,
          "min": "2023-01-01",
          "max": "2024-12-31"
        },
        "clicks": {
          "nulls": 0,
          "distinct": 570,
          "min": 2,
          "max": 4996
        },
        "conversions": {
          "nulls": 67,
          "distinct": 328,
          "min": 6,
          "max": 499
        }
      }
    },
    "payments": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "affiliate_id": {
          "nulls": 0,
          "distinct": 153,
          "min": 2,
          "max": 200
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 132,
          "min": 1,
          "max": 150
        },
        "amount": {
          "nulls": 0,
          "distinct": 300,
          "min": 16.05,
          "max": 994.56
        },
        "payment_date": {
          "nulls": 30,
          "distinct": 221,
          "min": "2023-01-09",
          "max": "2024-12-28"
        }
      }
    },
    "user_feedback": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 138,
          "min": 1,
          "max": 150
        },
        "user_id": {
          "nulls": 0,
          "distinct": 400
        },
        "feedback": {
          "nulls": 35,
          "distinct": 364
        },
        "submitted_at": {
          "nulls": 0,
          "distinct": 400,
          "min": "2023-01-01 17:41:59",
          "max": "2024-12-31 19:22:22"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/affiliates.csv",
      "format": "csv",
      "table": "affiliates",
      "key": "datasets/affiliate-marketing-tracker/v1/csv/affiliates.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/csv/affiliates.csv",
      "bytes": 9808,
      "sha256": "58e58a441403e0bbc32e2c8568917038a22cf0b781ba60539ccfb3470233ed40",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/campaigns.csv",
      "format": "csv",
      "table": "campaigns",
      "key": "datasets/affiliate-marketing-tracker/v1/csv/campaigns.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/csv/campaigns.csv",
      "bytes": 10822,
      "sha256": "87c435218270fb6a88ab5aba67bc7459dd0c7c24488ac51fe94cfb086a4718ed",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payments.csv",
      "format": "csv",
      "table": "payments",
      "key": "datasets/affiliate-marketing-tracker/v1/csv/payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/csv/payments.csv",
      "bytes": 8537,
      "sha256": "3cc71208263a11b7aacd776f70429799ee29302260ebbdbb341d1562af76b8b4",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/performance_metrics.csv",
      "format": "csv",
      "table": "performance_metrics",
      "key": "datasets/affiliate-marketing-tracker/v1/csv/performance_metrics.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/csv/performance_metrics.csv",
      "bytes": 16474,
      "sha256": "1170471909dd55a179e8e09c1c112f882236e02b19c77788549b054c6a08cd29",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/user_feedback.csv",
      "format": "csv",
      "table": "user_feedback",
      "key": "datasets/affiliate-marketing-tracker/v1/csv/user_feedback.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/csv/user_feedback.csv",
      "bytes": 46842,
      "sha256": "95940accc318ca18bd470307cb972325ad96d72b401147c8867ff33284ec2418",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "affiliate-marketing-tracker.json",
      "format": "json",
      "table": null,
      "key": "datasets/affiliate-marketing-tracker/v1/affiliate-marketing-tracker.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/affiliate-marketing-tracker.json",
      "bytes": 264565,
      "sha256": "e0f187af80a84d6369b998eee332519444f881b0582776cd98e5ce6c422939ff",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/affiliate-marketing-tracker/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/sql/postgres.sql",
      "bytes": 118560,
      "sha256": "79dec9e8359e84e25e7f39f93adfed597ad11fce5f08069af3711a64a03e443b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/affiliate-marketing-tracker/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/sql/mysql.sql",
      "bytes": 117966,
      "sha256": "2df4feb78867b11e134a54456c9fcad2224901e71deaa0529821a9e6e4f8de5b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/affiliate-marketing-tracker/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/sql/mssql.sql",
      "bytes": 121374,
      "sha256": "cd08d2799bc3b599cbbfead343886f65d337a4d5528f36bf0a8dacfd11768ab0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/affiliate-marketing-tracker/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/sql/sqlite.sql",
      "bytes": 117734,
      "sha256": "dfe1f9ad2f2752b710376c80e758bde57049cd1e1790fa81c0b54da3c9ca9723",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/affiliate-marketing-tracker/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/prisma/seed.ts",
      "bytes": 212829,
      "sha256": "ae84e9b410f0c692efdc5ffa734f16d3f39623e71afcc6d0dbcabd453c5e13ac",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/affiliate-marketing-tracker/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/affiliate-marketing-tracker/v1/django/fixtures.json",
      "bytes": 341381,
      "sha256": "b77608785566184ed3ebb460946b2a9c17f1fef2c87029dd5619890f92957430",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768281430,
  "updatedAt": 1788768281430
}
