with Visitor Queue and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The Visitor Queue API lets you track and identify businesses that visit your website, providing valuable data for lead generation and marketing analytics. By leveraging this API on Pipedream, you can automate tasks such as scoring leads, syncing data with CRM systems, and engaging with potential customers through targeted outreach. The ability to connect with hundreds of apps on Pipedream allows for powerful, automated workflows that can enrich your sales pipeline and optimize your marketing strategies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
visitor_queue: {
type: "app",
app: "visitor_queue",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.visitorqueue.com/api/v1/ga_views`,
headers: {
"Authorization": `Token ${this.visitor_queue.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})