Add visit action

This action lets you add a visit via the AffiliateWP integration. Use it to automate you daily work and save time and resources.

How to add a visit

This section aims to help you getting started on how to add a visit via AffiliateWP. Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

"Add visit" 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.

wpwh_call_action

(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )

Connection examples

Get inspired on how to use the "Add visit" action within our AffiliateWP integrations. Down below you will find various examples with our other integrations.
When a donation was cancelled via The GiveWP Logo for our WP Webhooks integration GiveWP, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When an order was updated 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 form was submitted via The WPForms Logo for our integration WPForms, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a paid membership expired via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a new license 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 donation failed via The GiveWP Logo for our WP Webhooks integration GiveWP, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When the object cache was cleared via The W3 Total Cache Logo for our WP Webhooks integration W3 Total Cache, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a user enrolled into a course via The WP Courseware Logo for our WP Webhooks integration WP Courseware, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a Pabbly Connect webhook request was received via The Pabbly Connect Logo for our WP Webhooks integration Pabbly Connect, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When an ACF term field was updated via The Advanced Custom Fields Logo for our WP Webhooks integration Advanced Custom Fields, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a subscription status was updated via The WooCommerce Subscriptions Logo for our WP Webhooks integration WooCommerce Subscriptions, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a coupon was restored via The Woocommerce Logo for our integration WooCommerce, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a contact was removed from a list 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 comment was updated via The WordPress Logo for our integration WordPress, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a comment 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 user password was recovered via The WP User Manager Logo for our WP Webhooks integration WP User Manager, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a donation was refunded via The GiveWP Logo for our WP Webhooks integration GiveWP, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a subscription trial ended via The WooCommerce Subscriptions Logo for our WP Webhooks integration WooCommerce Subscriptions, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a post was updated via The WordPress Logo for our integration WordPress, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When the CSS/JS cache was cleared via The LiteSpeed Cache Logo for our WP Webhooks integration LiteSpeed Cache, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a user completed a course via The WP Courseware Logo for our WP Webhooks integration WP Courseware, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.

More available AffiliateWP endpoints

Discover more of the available endpoints used for the AffiliateWP integration.
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.