with PostHog and Unbounce?
Emit new event when an action is performed in a project. See the documentation
Emit new event when a new form submit is received.
Captures a given event within the PostHog system. See the documentation
Retrieve a list of all leads for a given page (including AMP), pop-up, or sticky-bar. See the documentation
The PostHog API lets you track events, update user properties, and extract analytics to understand user behavior within your applications. Integrating this API into Pipedream workflows allows you to automate actions based on event data, sync user properties across platforms, and trigger alerts or notifications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
posthog: {
type: "app",
app: "posthog",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.posthog.com/api/users/@me/`,
headers: {
Authorization: `Bearer ${this.posthog.$auth.api_key}`,
},
})
},
})
The Unbounce API lets you tap into the powerful landing page platform to automate tasks and sync data with other services. Use it within Pipedream workflows to capture, analyze, and act on leads generated through your landing pages. Think of fetching form submissions, updating leads in a CRM, or dynamically modifying landing page content.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
unbounce: {
type: "app",
app: "unbounce",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.unbounce.com/users/self`,
headers: {
Authorization: `Bearer ${this.unbounce.$auth.oauth_access_token}`,
"Accept": `application/vnd.unbounce.api.v0.4+json`,
},
})
},
})