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.

Make clickId optional

Tim Wilsone7fbf7bdb083
diff --git a/packages/tinybird/pipes/v2_customer_events.pipe b/packages/tinybird/pipes/v2_customer_events.pipe
index 97f4bb7e82..8e7660d8d5 100644
--- a/packages/tinybird/pipes/v2_customer_events.pipe
+++ b/packages/tinybird/pipes/v2_customer_events.pipe
@@ -117,9 +117,11 @@ SQL >
%
SELECT * FROM (
+ {% if defined(clickId) %}
SELECT *, NULL AS saleAmount
FROM click_events
UNION ALL
+ {% end %}
SELECT *, NULL AS saleAmount
FROM lead_events
UNION ALL