Make requests to a unique URL provided by Pipedream and save data for SQL analysis.
You can run this workflow for ==free== on Pipedream. It's a potential solution for this post on Reddit
https://xxxxx.m.pipedream.net?button=your-button-name
Pipedream provides an always-on URL to trigger Node.js workflows (and the data posted to the URL or sent on the query string can be referenced in the triggered code). Your workflow will run every time you make a request to the URL provided by Pipedream and will:
You can then query the data sent to the SQL service (just select the SQL tab to the left — it can take up to 1-minute for your data to be ready to query after your workflow runs). Here's an example based on the object.
Try this SQL Query
SELECT
year(from_iso8601_timestamp(timestamp)) as year,
month(from_iso8601_timestamp(timestamp)) as month,
day(from_iso8601_timestamp(timestamp)) as day,
button as buttonName,
count(button)
FROM
buttonclicks
GROUP BY
year(from_iso8601_timestamp(timestamp)),
month(from_iso8601_timestamp(timestamp)),
day(from_iso8601_timestamp(timestamp)),
button
Try modifying the code and workflow, and let us know if you have any feedback! You can contact us at support@pipedream.com or on Spectrum (just click the Community link in the header).
Pipedream is an automation platform for developers. Build and run any workflow, based on any trigger, with no infrastructure.
Iterate quickly with built-in observability, automatic versioning and instant deploys.