API Credentials
Login to your ActiveCampaign account.
Click "Settings".
Click "Developer".
In the API access section, copy and save the URL and Key to a text file.
![](https://integratepro.com/academy/wp-content/uploads/activecampaign-api-min-1024x657.jpg)
Tags
Click "Contacts".
Click "Manage Tags".
Create these tags.
IP Viral - Count
IP Viral - Do Not Notify
IP Viral - Promote
IP Viral - Promote Already
IP Viral - Reward
IP Viral - Webhook
Custom Fields
Click "Lists".
Click "Manage Fields".
Click "Add Field".
Create the following custom fields exactly like this.
IP Viral Count
IP Viral Reward URL
ip_viral_id
IP Viral Count and IP Viral Reward URL are Text Input. ip_viral_id is Hidden Field.
Automations
Import the following automations.
IMPORTANT: In this order!
Name | URL |
IP Viral - Count | https://tplshare.com/pjZKypm |
IP Viral - Promote - Reset | https://tplshare.com/mNx29bj |
IP Viral - Promote - Basic | https://tplshare.com/bDQXdJL |
IP Viral - Reward | https://tplshare.com/bW$cnsx |
IP Viral - Webhook | https://tplshare.com/J9DP6lf |
IP Viral - Count
ActiveCampaign > Automations > Create an automation > Import an automation
Enter your automation URL here... https://tplshare.com/pjZKypm
Click "Import".
Click the Automation Setup Wizard "Get Started".
![](https://integratepro.com/academy/wp-content/uploads/ac-automation-wizard-min-1024x656.jpg)
Choose the IP Viral Count
custom field, set From to "Any value" and the To to "Any Value".
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard1-min-1024x656.jpg)
Set the field to IP Viral - Count
custom field.
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard3-min-1024x656.jpg)
Verify that the Send an email credentials are correct.
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard4-min-1024x656.jpg)
Edit the automation trigger and set Runs to "every time".
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard5-min-1024x656.jpg)
Edit the email and include a link that when clicked applies the IP Viral - Do Not Notify
tag.
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard6-min-1024x656.jpg)
Set the automation to Active.
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard7-min-1024x656.jpg)
IP Viral - Promote - Reset
ActiveCampaign > Automations > Create an automation > Import Automation
Enter your automation URL here... https://tplshare.com/mNx29bj
Click "Import".
Click the Automation Setup Wizard "Get Started".
Select the contact field to update to IP Viral Count
. Set the New Content to 0.
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard9-min-1024x656.jpg)
Set the automation to Active.
IP Viral - Promote - Basic
ActiveCampaign > Automations > Create an automation > Import an automation
Enter your automation URL here... https://tplshare.com/bDQXdJL
Click "Import".
Click the Automation Setup Wizard "Get Started".
Verify that the Send an email credentials are correct.
Set Select and automation to enter to IP Viral - Promote - Reset
.
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard10-min-1024x656.jpg)
Edit the email and include the following content modified appropriately. Replace example.com/ipviral with your domain and subdirectory. Verify that this url is hyperlinked.
Ex - Please use this link to recommend:
https://example.com/ipviral/?ipr=%CONTACTID%
Set the automation to Active.
IP Viral - Reward
ActiveCampaign > Automations > Create an automation > Import an automation
Enter your automation URL here... https://tplshare.com/bW$cnsx
Click "Import".
Click the Automation Setup Wizard "Get Started".
Set the End another automation to exit to IP Viral - Count
.
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard11-min-1024x656.jpg)
Verify that the Send an email credentials are correct.
Edit the email and verify that the %IP_VIRAL_REWARD_URL%
is hyperlinked to itself.
Ex - Please visit this link %IP_VIRAL_REWARD_URL%
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard12-min-1024x656.jpg)
Set the automation to Active.
IP Viral - Webook
ActiveCampaign > Automations > Create an automation > Import an automation
Enter your automation URL here... https://tplshare.com/J9DP6lf
Click "Import".
Click the Automation Setup Wizard "Get Started".
Choose the ip_viral_id
custom field, set From to "Any value" and the To to "Any Value".
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard13-min-1024x656.jpg)
Set the field to ip_viral_id
custom field.
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard15-min-1024x656.jpg)
Edit the automation trigger and set Runs to "every time".
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard17-min-1024x656.jpg)
Make the appropriate changes to the webhook url to reference IP Viral on your site.
Ex - https://example.com/ipviral/webhook.php
![](https://integratepro.com/academy/wp-content/uploads/ac-wizard16-min-1024x656.jpg)
Set the automation to Active.
Summary
- API Credentials
- Tags
- Custom Fields
- Automations