Spindl
  • 👋Overview
    • Introduction
    • Attribution
    • Privacy
  • Your Spindl app setup
    • Managing team members
  • 🪄Features
    • 📈Onchain Attribution
      • 📉Plotting attribution
    • 📊Web3-native Analytics
      • Chart Builder
      • Event Selection and Filtering
      • Line Chart
      • Funnel
      • Cohort Retention
      • Sankey Diagram
      • Big Numbers
      • Pies and Donuts
    • 🧍‍♂️Audiences
      • Creating an audience
    • 🔗Short Links
      • 🖇️Custom Domains
    • 🤝Referrals
      • Management and reporting
      • ⏩Quick Start
      • ⛓️Technical Details
  • ⚙️Techncial
    • ⏩Start Here
    • Google GTM Guide
    • Javascript SDK / HTML Script Guide
      • ➡️Install
      • ➡️Wallet Connects
      • ➡️Page Views
      • ➡️Custom Events
      • ✅Verify That Events Are Sent Correctly
      • React, Next.js & Html Examples
      • Setup a Reverse Proxy
        • Using Next.js
        • Using Cloudflare Workers
        • Netlify
      • ➡️Referrals
      • Default vs Lite SDK Versions
      • Security
    • API
      • ➡️Short Links
      • ➡️Custom Events API
      • Data Exports
    • Android SDK
    • iOS (Swift) SDK
    • On-Chain
      • ➡️Rewards
  • Contact Spindl
  • Ads
    • ⏩Start Here
    • 📢Creative Specifications
      • Web Banner Ads
      • Discord Embeds
Powered by GitBook
On this page
  1. Techncial
  2. API

Data Exports

Spindl data export lets you get a full daily dump of all your client and blockchain events to a shared AWS S3 bucket. The dump is daily, and delayed about 8 hours to allow enough time for proces

Below is the currently supported schema, if you need something specific not listed here please reach out to us!

Schema

Category
Field Name
Description

Basic Data

event_id

Unique id of the event

event_name

event_type

event_time

url

url_params

path_name

Session Info

session_id

Identity

customer_user_id

(If provided in events)

identity_wallet_address

Browser Information

device_user_agent

User agent of browser

utm_medium

utm_source

utm_campaign

utm_content

utm_term

referer

Page Referer (from Browser)

Onchain Data

chain_id

tx_hash

Attribution Data

attribution_channel

attribution_type

enum (organic, external, etc.)

Technical Details

  • Method 1: Spindl Access to your S3 Bucket

    • You’ll need to give an S3 bucket to the following ARN:

      arn:aws:iam::475852047645:role/spindl-data-exports-role

    • For example, a bucket policy might look like:

      {
          "Version": "2012-10-17",
          "Statement": [
              {
                  "Effect": "Allow",
                  "Principal": {
                      "AWS": "arn:aws:iam::475852047645:role/spindl-data-exports-role"
                  },
                  "Action": [
                      "s3:GetObject",
                      "s3:GetObjectVersion",
                      "s3:PutObject"
                  ],
                  "Resource": "arn:aws:s3:::{bucket-name}/*"
              },
              {
                  "Effect": "Allow",
                  "Principal": {
                      "AWS": "arn:aws:iam::475852047645:role/spindl-data-exports-role"
                  },
                  "Action": "s3:GetBucketLocation",
                  "Resource": "arn:aws:s3:::{bucket-name}"
              },
              {
                  "Effect": "Allow",
                  "Principal": {
                      "AWS": "arn:aws:iam::475852047645:role/spindl-data-exports-role"
                  },
                  "Action": "s3:ListBucket",
                  "Resource": "arn:aws:s3:::{bucket-name}",
                  
              }
          ]
      }

  • Method 2: Spindl IAM Role on your AWS Account

    • Create IAM User on your side with read access to the s3 bucket and provide us the AWS_ACCESS_KEY and AWS_SECRET_KEY

File Format and Details

  • Format: .csv and .parquet files are currently supported

  • Each daily file will be formatted as {YYYY-MM-DD}.csv where the date is the start date

  • First file will upload a backfill, and future files will follow the above format

PreviousCustom Events APINextAndroid SDK

Last updated 1 month ago

⚙️