track referrals only

0
Rather than pay a commission on sales/conversions, we want to pay a flat amount for each visitor referred to the site. Can this be done and how?
Responses (6)
  • Accepted Answer

    Wednesday, November 29 2017, 05:27 PM - #Permalink
    0
    not directly. This means basically that you want to convert every unique LOG into a conversion (with a flat commission). That requires a bit of coding.
    The reply is currently minimized Show
  • Accepted Answer

    Jereme
    Jereme
    Offline
    Monday, December 04 2017, 08:31 PM - #Permalink
    0
    ellen rothwax wrote:

    Rather than pay a commission on sales/conversions, we want to pay a flat amount for each visitor referred to the site. Can this be done and how?


    See my post here on how to do this.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, December 10 2017, 01:19 PM - #Permalink
    0
    I think your post actually lead me to this post which has me modifying the code.
    If I understand it correctly, I need to add this:
    $conversion_data = array(
    "name" => "Clik on link",
    "component" => "com_affiliatetracker",
    "extended_name" => "Account ID: " . $data['atid'],
    "type" => 1,
    "value" => 1 ,
    "reference_id" => $data['atid'],
    "approved" => 1,
    );

    require_once(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_affiliatetracker'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'helpers.php');
    AffiliateHelper::create_conversion($conversion_data, false);

    after this:
    if (!$row->store()) {
    $mainframe->enqueueMessage($db->getErrorMsg());
    return false;
    }

    on this file: /plugins/system/affiliate_tracker/affiliate_tracker.php
    at the function saveLog($data), around line 108.

    Is that correct?

    Can I create an override in the template html file so it doesn't get overridden with updates?
    If so, what would the path be?
    /plugins/system/affiliate_tracker/affiliate_tracker.php ??
    • Germinal Camps
      more than a month ago
      hello,

      yes, you can use something like that.
      There's no template override path for this, as it is a plugin, not a component view...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 11 2017, 04:11 PM - #Permalink
    0
    OK, so now where do I get the API?
    Or in other words,
    how do I identify the button/link that gets clicked ?
    Sorry, I don't know Javascript or php, so I need some help here.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 11 2017, 04:17 PM - #Permalink
    0
    you don't need to identify that, that's precisely the part that the API will do for you...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 11 2017, 04:47 PM - #Permalink
    0
    So how do you suggest I test this to see if it is working properly?
    We are still in developmental stages. Do I try putting a link in an email or another site? Is the fact that it is all coming from one IP address a problem?
    The reply is currently minimized Show
Your Reply