Add visit action

This action lets you add a visit via the AffiliateWP integration. Use it to automate you daily work ans 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 membership was set to pending cancellation via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, 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 user voted on a poll via The WP-Polls Logo for our WP Webhooks integration WP-Polls, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a HTTP request was received via The Webhooks Logo for our WP Webhooks integration Webhooks, 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 customer was updated via The Woocommerce Logo for our integration WooCommerce, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a cover photo was updated 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 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 a user completed a unit 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 n8n HTTP request was received via The n8n Logo for our WP Webhooks integration n8n, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a user started following a user via The wpDiscuz Logo for our WP Webhooks integration wpDiscuz, 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 ticket was reopened via The Fluent Support Logo for our WP Webhooks integration Fluent Support, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When an order was updated via The Woocommerce Logo for our integration WooCommerce, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a quiz was completed 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 course 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 shortcode was called via The WordPress Logo for our integration WordPress, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a note was added to a ticket via The Fluent Support Logo for our WP Webhooks integration Fluent Support, 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 a form was submitted via The Contact Form 7 Logo for our integration Contact Form 7, add a visit via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP.
When a user unfollowed a user via The wpDiscuz Logo for our WP Webhooks integration wpDiscuz, 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.