WordPress Affiliate Manager

Affiliates Management Plugin for WordPress

  • Home
  • Features
    • Screen Shots
  • Download
  • Documentation
  • Addons
  • Support
    • Support Forum
    • Forum Login
    • Forum Registration
    • Contact
    • Premium Addon/Plugin Support

How to capture the affiliate ID

by

WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › How to capture the affiliate ID

  • This topic has 3 replies, 2 voices, and was last updated 10 years ago by CatAlley.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 18, 2016 at 2:18 am #1878
    CatAlley
    Participant

    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.

    April 18, 2016 at 2:48 am #1879
    Shadow Labs
    Keymaster

    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;
    
    April 19, 2016 at 2:52 am #1881
    CatAlley
    Participant

    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.

    April 20, 2016 at 1:30 am #1884
    CatAlley
    Participant

    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.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Featured Addons

  • WooCommerce Coupon Tracking
  • WooCommerce Product Specific Commission

Copyright © 2026 | WordPress Affiliate Manager | Privacy Policy