Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

441 B
Raw Blame
TAGS "Dub Misc Endpoints"

NODE endpoint
SQL >

    SELECT
        (
            SELECT
                (SELECT count() FROM dub_click_events_mv)
                + (SELECT count() FROM dub_lead_events_mv)
                + (SELECT count() FROM dub_sale_events_mv)
        ) AS events,
        (SELECT COUNT(timestamp) + 42036155 FROM dub_links_metadata) AS links,
        (SELECT SUM(amount) FROM dub_sale_events_mv) AS sales

TYPE ENDPOINT