ActiveCampaign Tagging Webhook Action
You can add a tag to a listener in your ActiveCampaign account using Actions. This can be triggered when a listener subscribes to a feed, or listens to a particular episode.
Things You'll Need
- Your ActiveCampaign URL, usually something like https://businessname.activehosted.com/
- Log in to your AC account and copy the URL.
- Your ActiveCampaign API key
- Click Settings → Developer and copy the API key. It's a long string of letters and numbers.
Setting up the Action in Hello Audio
Head to your Actions page in your Hello Audio account at https://app.helloaudio.fm/actions. This requires a Powerhouse Hello Audio plan.
Decide what you'd like to cause the tag to be added by choosing options in the "When this happens..." section.
For "I want this to happen" choose "POST to a Webhook".
In the URL field paste the following, replacing businessname with what's required for your URL, and adding your API key after the = sign replacing ###############:
https://businessname.activehosted.com/admin/api.php?api_action=contact_sync&api_key=###############
In the Header, paste the following:
{ "Content-Type": "application/x-www-form-urlencoded" }
In the Body, paste the following:
email=[[email]]&tags=listened-to-[[feed]]-[[episode]]
You can replace "listened-to-[[feed]]-[[episode]]" with whatever you'd like the tag to be. This example will include the feed and episode titles in the tag name.
The hyphens are NOT required. Spaces are okay. Capital letters are okay. It is case- and space-sensitive. If the tag doesn't already exist in your ActiveCampaign account, it will be created. If it does exist, it will use that tag.
When it looks like the image below, click "Save This Action". Done!
Testing the Action
To confirm all is working properly, you can click "Test Action" in your list of Hello Audio actions. Your Hello Audio email address will be updated as a contact in ActiveCampaign with the tag you chose. The test takes a few minutes.
It should appear in the top of your Action History after a few minutes. If it appears red, something is wrong with your setup. Be sure to follow the steps above closely.