Custom Tracking API

kunjan
kunjan
Offline
0
Where to put the custom tracking code. Actually i want to track the form filled from the RS Form Pro. Will the custom tracking API code will work for it?
Responses (5)
  • Accepted Answer

    Friday, March 28 2014, 10:29 AM - #Permalink
    0
    yes it will work, but you have to find the place to put it. you need to find the place where the form is submitted, and add it there. do you have programming skills? you should actually ask RSForm people about this (ask them where is the code for when "after the form is submitted")
    The reply is currently minimized Show
  • Accepted Answer

    kunjan
    kunjan
    Offline
    Friday, March 28 2014, 11:46 AM - #Permalink
    0
    I just tried and it works but i have few issues. I did the following changes in the code. and what i want is:
    1. Do not calculate commission for the user. (is there something that i can add in the following code to do so)
    2. I get this error after filling up the form "You must provide at least one recipient email address." My form contains these fields - Name, Email, Country, Message, Submit.
    3. Is there a code to get some ref. number or user-id of the affiliate while receiving the inquiry form? or is this something i need to ask with RS Form


    $conversion_data = array(
    "name" => "Inquiry Form",
    "component" => "com_rsform",
    "extended_name" => "Inquiry",
    "type" => 1,
    "value" => 0 ,
    "reference_id" => 234,
    "approved" => 0,
    );

    require_once(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_affiliatetracker'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'helpers.php');
    AffiliateHelper::create_conversion($conversion_data, $user_id);
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 28 2014, 11:59 AM - #Permalink
    0
    Hello,

    1. the comission is always calculated automatically. to change this, a small code tweak would be necessary.

    2. where? in the backend?

    3. the code (the affiliate ID) is also retrieved automatically from the API...
    The reply is currently minimized Show
  • Accepted Answer

    kunjan
    kunjan
    Offline
    Friday, March 28 2014, 12:06 PM - #Permalink
    0
    Hey, Thanks for you quick response :)
    1. Tweaking is something we can do? or should we take extra support from joomlathat?
    2. No, Its on the frontend (screenshot attached.)
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 28 2014, 12:44 PM - #Permalink
    0
    1. well.. depending on how good a coder you are... if you're confortable editing PHP code and such, you can try, but otherwise this should be done either by us or by another good developer...

    2. so.. this happens when you "apply" for a new affiliate account?
    The reply is currently minimized Show
Your Reply