Hey there, I’m a bit of a newbie when it comes to working with APIs, but I know it’s possible to send a webhook from ActiveCampaign –> Google App Script whenever my contacts take certain actions, and I’m wondering how to add a +1 count to a cell every time the webhook triggers?
Hi Michael, I think you’re better off asking this question in the Google Apps Script community. However the simplest workaround I can imagine is to capture the raw events in rows in a separate sheet and then just use the countif function in Sheets to count each type of action.
I would create two separate sheets within your Google Spreadsheet, maybe label one of them ‘RAW-DATA’ and the other one ‘Summary’. I would direct all your webhooks to populate the raw data sheet, and then use Google’s built in functions to summarize that data however you’d like.
For anyone who’s interested, I managed to get this set up on my own - it was crazy difficult for me, but it’s working great now.
Basically, I set up a webhook for every action I wanted to track and changed the end of the Google App Script URL to “?metric=______” (based on the name of the column in Sheets).
So now it’s SUPER easy to keep track of my funnel metrics every day of the month, and it updates automatically.