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

[Resolved] Order Tracking Not Working for Guests

by

WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Order Tracking Not Working for Guests

  • This topic has 7 replies, 2 voices, and was last updated 5 years ago by Shadow Labs.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 14, 2021 at 10:45 pm #7325
    scottelkin
    Participant

    Tried this by ordering several times. If I am logged in, then it gets tracked. If I checkout without first logging in it does not. You can see it in our log.

    Logged in first:

    [04/14/2021 8:44 PM] – SUCCESS : WooCommerce Integration – Saving wpam_id (1) with order. Order ID: 18871
    [04/14/2021 8:44 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 18871
    [04/14/2021 8:44 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
    [04/14/2021 8:44 PM] – SUCCESS : WooCommerce Integration – Order status: pending
    [04/14/2021 8:44 PM] – NOTICE : WooCommerce Integration – Order status for this transaction is not in a ‘completed’ or ‘processing’ state. Commission will not be awarded at this stage.
    [04/14/2021 8:44 PM] – NOTICE : WooCommerce Integration – Commission for this transaction will be awarded when you set the order status to completed or processing.
    [04/14/2021 8:44 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 18871
    [04/14/2021 8:44 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
    [04/14/2021 8:44 PM] – SUCCESS : WooCommerce Integration – This notification is for a new subscription payment
    [04/14/2021 8:44 PM] – NOTICE : The commission will be calculated via the recurring payemnt api call.

    Not Logged In:

    [04/14/2021 10:27 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 18873
    [04/14/2021 10:27 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
    [04/14/2021 10:27 PM] – SUCCESS : WooCommerce Integration – Order status: pending
    [04/14/2021 10:27 PM] – NOTICE : WooCommerce Integration – Order status for this transaction is not in a ‘completed’ or ‘processing’ state. Commission will not be awarded at this stage.
    [04/14/2021 10:27 PM] – NOTICE : WooCommerce Integration – Commission for this transaction will be awarded when you set the order status to completed or processing.
    [04/14/2021 10:27 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 18873
    [04/14/2021 10:27 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
    [04/14/2021 10:27 PM] – SUCCESS : WooCommerce Integration – This notification is for a new subscription payment
    [04/14/2021 10:27 PM] – NOTICE : The commission will be calculated via the recurring payemnt api call.

    I can see my click getting tracked before the order, however.

    Please advise.

    April 15, 2021 at 6:15 am #7327
    Shadow Labs
    Keymaster

    @scottelkin, If you want to process WooCommerce subscription orders please install this addon: https://wpaffiliatemanager.com/affiliates-manager-woocommerce-subscription-integration/

    April 15, 2021 at 6:36 am #7330
    scottelkin
    Participant

    Ok but how does that handle my question where guests aren’t getting affiliate credit?

    April 15, 2021 at 12:54 pm #7333
    Shadow Labs
    Keymaster

    @scottelkin, According to your log the plugin stopped processing both orders because they were subscription payments. Are you saying there is more data in the debug file?

    April 15, 2021 at 3:39 pm #7334
    scottelkin
    Participant

    Ok, well I installed it, but it doesn’t change my main question. The key line in the log is this:

    [04/14/2021 8:44 PM] – SUCCESS : WooCommerce Integration – Saving wpam_id (1) with order. Order ID: 18871

    If I check out prior to logging in, I see this instead:

    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 18881

    and if you look further, it says that it can’t find cookie even though I cleared my cookies and went straight to the site using the affiliate link:

    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 18881
    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Integration – Order status: pending
    [04/15/2021 3:33 PM] – NOTICE : WooCommerce Integration – Order status for this transaction is not in a ‘completed’ or ‘processing’ state. Commission will not be awarded at this stage.
    [04/15/2021 3:33 PM] – NOTICE : WooCommerce Integration – Commission for this transaction will be awarded when you set the order status to completed or processing.
    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Subscription Integration – Order processed. Order ID: 18881
    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Subscription Integration – This notification is for a new subscription payment
    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Subscription Integration – Order ID: 18881, Total amount: 600.00, Total shipping: 0.00, Total tax: 0
    [04/15/2021 3:33 PM] – FAILURE : WooCommerce Subscription Integration – could not get wpam_id/wpam_refkey from cookie. This is not an affiliate sale
    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Integration – Order processed. Order ID: 18881
    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Integration – Checking if affiliate commission needs to be awarded.
    [04/15/2021 3:33 PM] – SUCCESS : WooCommerce Integration – This notification is for a new subscription payment
    [04/15/2021 3:33 PM] – NOTICE : The commission will be calculated via the recurring payemnt api call.

    April 16, 2021 at 6:25 am #7336
    Shadow Labs
    Keymaster

    @scottelkin, The ID is saved when a new order is placed (assuming the cookie is present in the browser). It doesn’t matter if it’s a guest checkout or the user is logged in.

    Before clicking the PLACE ORDER button you can check for a cookie named “wpam_id” in your browser.

    April 16, 2021 at 2:13 pm #7337
    scottelkin
    Participant

    Correct. No cookie is being saved.

    April 17, 2021 at 4:40 am #7338
    Shadow Labs
    Keymaster

    @scottelkin, https://wpaffiliatemanager.com/forums/topic/affiliate-purchases-not-generating-commissions/

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 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