0
Hi,
We are looking to track submissions through RS Forms Pro, can anyone advise how we implement the API within this extension?
Our thought process is to have the marketing material link directly to the form in question using the affiliate ID string, and then the form submission confirms/records the submission in Affiliate Tracker against the appropriate affiliate ID.
Many thanks,
Chris
We are looking to track submissions through RS Forms Pro, can anyone advise how we implement the API within this extension?
Our thought process is to have the marketing material link directly to the form in question using the affiliate ID string, and then the form submission confirms/records the submission in Affiliate Tracker against the appropriate affiliate ID.
Many thanks,
Chris
Responses (6)
-
Accepted Answer
1you would need to see where RS Forms Pro handles the submission, and there is where you can include our API code to track that submission
here is the explanation on how to use the API: http://www.joomlathat.com/documentation/affiliate-tracker/using-the-api-to-create-conversions -
Accepted Answer
-
Accepted Answer
0Hi,
RS Forms Pro has places on each form config to add php scripts to be called after submission - if I add the code (altered I hope to be correct for RS Forms Pro) to the post-submission section, I get the following error:
Fatal error: require_once(): Failed opening required '/home/a00000cc/public_html/checkDSadministratorDScomponentsDScom_affiliatetrackerDStablesDSconversion.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a00000cc/public_html/check/components/com_affiliatetracker/helpers/helpers.php on line 84
Do I perhaps need to add something else? Maybe this isn't PHP script that I am adding?
$conversion_data = array(
"name" => "CMLF Submission",
"component" => "com_rsform",
"extended_name" => "Check My Legal Fees form submission",
"type" => 1,
"value" => 100 ,
"reference_id" => 123,
"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, $user_id);
Thanks for any additional help.
Chris -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »