I have a html file which contains the standard javascript redirect affiliate code ( the one with:
| Code: : |
...
window.location = myCrm + "/go/" + code + affiliate + ad;
...
|
)
Because my order form is working with API (i'm not using the form hosted by InfusionSoft) I've added a code to the redirect html file that sets a cookie value to the affiliate name, and when someone signs up to the membership site I'll find the Affiliate ID with
| Code: : |
DataService.findByField
|
and then send the returned (affiliate) Id (integer) along with the rest of the data using
| Code: : |
InvoiceService.addRecurringOrder
|
xmlrpc call.
is this method correct? will this work?
thanks.