with Google Analytics and Airship?
Return report metrics based on a start and end date. See the documentation
Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. See the documentation
The Google Analytics API unlocks the power of your analytics data, enabling automated access to custom reports, real-time statistics, and user behavior analysis. With it, you can extract actionable insights, push data to other platforms, and tailor your business strategy with precision. Leveraging Pipedream's serverless platform, these capabilities can be seamlessly integrated into workflows that trigger actions in other apps, send alerts, or even feed data warehouses for deeper analysis.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_analytics: {
type: "app",
app: "google_analytics",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.google_analytics.$auth.oauth_access_token}`,
},
})
},
})
The Airship API provides tools to engage customers across SMS, email, app notifications, and more. By leveraging this API, you can automate messaging based on user behavior, preferences, and lifecycle events. Integrating Airship with Pipedream allows you to connect these communication capabilities with hundreds of other services to build robust, automated workflows. This lets you craft personalized customer journeys, respond promptly to user actions, and monitor the effectiveness of different communication strategies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
airship: {
type: "app",
app: "airship",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://go.urbanairship.com/api/schedules`,
auth: {
username: `${this.airship.$auth.app_key}`,
password: `${this.airship.$auth.master_secret}`,
},
})
},
})