Action: Add visit

Create a visit within AffiliateWP via a webhook call.
On this page you will find further information about the Add visit action and how to use it via WP Webhooks, as well as via other external services such as Integromat, Pabbly, Integrately, or Zapier.
The Add visit action is part of our AffiliateWP integration.

Webhook setup guide

This section aims to help you getting started with the Add visit action.
Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

Arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Add visit action which is then handled accordingly to the described purpose. You can use the arguments that you would like to send values for.
To learn more about it, please see the Setup Guide above.
user_id *

The id or email of the related user. (Optional in case affiliate_id is set).

affiliate_id *

The id or email of the related affiliate. (Optional in case user_id is set).

ip

The ip of the person who should be assigned to the visit. (Will be anonymized in case IP logging is disabled within AffiliateWP).

campaign

Set a visit campaign. This can be a identifier you created for a specific project. E.g. Summer Promotion

context

Some more details of where the user comes from. E.g.: cta-button

url

A URL the visitor arrived at.

referrer

A referral URL from where the visitor came from If nothing is set, it will be counted as direct traffic.

date

The date and time of creation of the visit. In case nothing is set, the current time is used.

do_action

Advanced: Register a custom action after this webhook was fired.

Connection examples

Get inspired on how to use the AffiliateWP action. Down below you will find various examples with our other integrations.
When a post was trashed via The WordPress Logo for our integration WordPress, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When an order was created via The Woocommerce Logo for our integration Woocommerce, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a form was submitted via The Elementor Logo for our WP Webhooks integration Elementor, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a product was created via The Woocommerce Logo for our integration Woocommerce, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When an assignment was uploaded via The LearnDash Logo for our WP Webhooks integration LearnDash, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a customer was deleted via The Woocommerce Logo for our integration Woocommerce, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a form was submitted via The HappyForms Logo for our WP Webhooks integration HappyForms, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a membership was canceled via The Paid Membership Pro Logo for our WP Webhooks integration Paid Memberships Pro, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a user was created via The WordPress Logo for our integration WordPress, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a referral status changed via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a user has logged in via The WordPress Logo for our integration WordPress, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a group access was removed via The LearnDash Logo for our WP Webhooks integration LearnDash, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a custom trigger was called via PHP via The WordPress Logo for our integration WordPress, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a booking was added via The Amelia Logo for our WP Webhooks integration Amelia, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a subscription status has changed via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a new subscription payment was created via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a contact was added to a tag via The FluentCRM Logo for our WP Webhooks integration FluentCRM, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a form was submitted via The Gravityforms Logo for our integration Gravity Forms, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When an appointment was rescheduled via The Amelia Logo for our WP Webhooks integration Amelia, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a form was submitted via The Formidable Logo for our WP Webhooks integration Formidable Forms, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When an affiliate status was changed via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.

More available endpoints

Down below you will find a list of all available triggers and actions for the AffiliateWP integration.
If you want to learn more about a specific endpoint, simply click on it.
Full disclosure: When clicking on some of the links on our website and purchasing the related product and/or service, we may earn a commission free of any additional cost for you.