Has anyone used a custom webhook to send Invoca events to Amplitude? I’m trying to track calls and telesales and not sure if that’s possible with Amplitude. I’m thinking I just need to have my dev team send the device_id to Invoca to make it happen.
Update: I was able to implement this without using dev resource. Thought I’d share what I did in case it helps anyone else out.
- Go to Marketing Data in Invoca and add a variable for Amplitude Device ID. I labeled it device_id.
- Navigate to your Invoca tag. Update the “Data Source Type” column for the variable you just created to JS Data Layer. In the “Data Source Name” column, I entered amplitude.getInstance().options.deviceId. This will pull the Amplitude device id of the user, which is needed for the webhook (either user ID or device ID is needed). As an FYI, we use the Amplitude SDK on our site.
- Now it’s time to create the webhooks! I created a pre-transfer webhook to track calls, and a post-call webhook for telesales. In both, I am using the POST url
https://api2.amplitude.com/2/httpapi. For content type, I selected JSON. Here’s my Invoca Call webhook setup:
Both webhooks are almost identical in set up. The Telesale webhook includes order ID in the json and under firing conditions, we are only firing it off the Telesale signal we created. It seems like the webhooks are working as expected. The only failures occurring are when calls/Telesales are coming from the number overflow pool - not sure if there’s a way around that.
Hope this helps someone!
Hi
I absolutely love your post and that you circled back around with what worked for you as a solution! Thank you so much for contributing to the Amplitude Community and I’m sure a fellow future Amplitude user would benefit what you shared
Reply
Welcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comWelcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.