- This topic has 3 replies, 2 voices, and was last updated 10 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Affiliates Management Plugin for WordPress
by
WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › How to capture the affiliate ID
How do I get the affiliate id to appear on the landing page, or in a popup, when a customer clicks on the creative on the affiliate’s site. I see your suggested code $aff_id = $_COOKIE[‘wpam_id’]; but don’t know how to use it. I just need to know which affiliate the customer is coming from.
Hi, Are you familiar with PHP coding? You can use this piece of code to show the ID in your theme’s template file:
$aff_id = $_COOKIE['wpam_id'];
echo "affiliate ID: ". $aff_id;
I am not very familiar with PHP coding but I understand the piece of code you sent me. Thanks. However I don’t understand where to use it. I am using the Popup Maker plugin to create a popup containing a shortcode form on the landing page that the customer sees first. I would like the affiliate ID to appear in a form field so that it would be included in the email sent when the form is submitted. The form was created with FS Contact Form.
I realize you may not be able to address the other plugins so the ID could be inserted somewhere else related to the customer who clicked on the creative on the affiliate’s site.
okay. Lets approach this from a different perspective. The link in the creative code contains the affiliate ID. Is there some way for the administrator to capture the ID when a potential customer clicks on the creative?
We intend to use the Affiliate Manager in an unconventional way where the purchase will be made on an external web site which we have no control over so the commission will have to be managed manually; therefore, we must identify the affiliate the customer is linked from.