Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Tracking affiliate transactions when the buy button is within a wordpress post

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Tracking affiliate transactions when the buy button is within a wordpress post

Tagged: Sales tracking with PayPal button

  • This topic has 5 replies, 3 voices, and was last updated 14 years, 8 months ago by wpCommerce.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 3, 2010 at 4:45 pm #1671
    alameda
    Member

    Hi,

    I’ve installed and tested wp affiliate, it tracks clicks, sales and affiliate commission

    …so far so good but

    It works only when i use a “home made” web page, which is a “static” page with the .php extension.

    After this successfull integration i decided to transfer the text content of my sales letter to my wordpresss blog, and created a dedicated blog post.

    I understood that the tracking was possible thanks to these 2 lines of code:

    <input type=”hidden” name=”notify_url” value=”http://www.mydomain.com/wp-content/plugins/wp-affiliate-platform/api/ipn_handler.php”&gt;

    <input type=”hidden” name=”custom” value=”<?php echo $_COOKIE; ?>”>

    so i’ve installed a WP plugin called php exec in order to have this snippet of php code executed successfully.

    With this set-up i’m able to track transactions but i have no affiliate referals coming up within wp affiliate dashboard.

    I would really appreciate if you could help me out in order to see what’s wrong.

    Thanks for your support !

    October 4, 2010 at 1:53 am #25050
    amin007
    Participant

    So, your sales are getting tracked after a purchase but the affiliate clicks are not tracking right?

    Can you please post a link to this blog post? What did you do to simulate an affiliate click?

    October 4, 2010 at 9:18 am #25051
    alameda
    Member

    Hi,

    no transactions are being tracked from this post http://www.recettecupcakes.com/le-guide-delicieux-des-meilleures-recette-de-cupcake

    but transactions are being tracked from this landing page that i created http://www.recettecupcakes.com/best-of/index.php

    thanks

    October 5, 2010 at 1:18 am #25052
    amin007
    Participant

    Thank you for the URLs it helps with the troubleshooting. I had a quick look at the HTML code of your button and I found that the following line in the button that doesn’t work:

    <input name="custom" type="hidden" value="&lt;?php echo $_COOKIE['ap_id']; ?&gt;" />

    Can you see the problem? The PHP code is not getting executed.. see the following:

    &lt;

    Why? Because you must have pasted that button code in the Visual view of the WordPress editor and WordPress by default converts all the “<” “>” characters to their equivalent HTML code. I am guessing you understand a bit of PHP so you should already know what this means if not let me know and I will explain more :)

    Basically, paste the button code in the HTML view of the editor then after you update the page just look at the page source to make sure the php code is executing meaning there will be a value of nothing (in the case of no affiliate referral) or the affiliate’s ID (in the case of a referral).

    October 15, 2010 at 10:39 am #25053
    alameda
    Member

    Hi,

    I’ve made the modifications, i had a couple more sales but i still can’t see any transaction within the WP Affiliate Platform – Stats Overview.

    Is it normal to not see new sales if they hadn’t been made by affiliates ? Or should i see the transactions anyway ?

    Thanks

    October 16, 2010 at 12:17 am #25054
    wpCommerce
    Moderator

    The affiliate platform will only track and show you the details if a sale comes through an affiliate.

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

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ