Announcement

Collapse
No announcement yet.

Affiliate tracking

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Affiliate tracking

    I have read the advanced user guide , page 60,..
    I am confused on how to set it up.
    Can someone please tell me Step by step how to set it up in Actinic?
    Please tell me what Codes to insert and where?
    Thanks.

    #2
    I've never done this, so cannot give you a worked example.

    Do you have an affiliate program you want to use? Do they instructions about how they want the data sent to them that we can see?

    Comment


      #3
      He is an example:

      <img src="https://www.affiliatecompanyname.com/yourcompanyname/exit.cfm?ordertotal=123.45&orderemail=you@someplace.com&ordernum=123456" height=1 width=1>

      1) Where 123.45 equals the order sub-total, less taxes, shipping, and handling. This field is required!

      2) Where you@someplace.com is equal to the email address of the customer OR the customer's last name OR the customer's ID. Basically, you can put in any type of id in this field to help you match up a customer with an affiliate. You may choose to simply put in "N/A", or "None" if you do not want to use this field.

      3) Where 123456 is equal to the invoice or order number. Use 0 if this field is not going to be used.

      So...

      <img src="https://www.affiliatecompanyname.com/yourcompanyname/exit.cfm?ordertotal=NETQUOTEVAR:ACTINICORDERTOTAL&orderemail=none&ordernum=NETQUOTEVAR:THEORDERNUMBER" height=1 width=1>

      ...needs to be inserted into Act_Order04.html

      However I did need to make some changes in OrderScript.pl so the variables would input the order total before VAT:

      Search for 'expose the order'.
      You will see...

      # expose the order total in various formats for affiliate tracking
      links
      #
      #
      # send the total as an integer in the currency base unit
      # e.g. "512834"
      #
      $::s_VariableTable{$::VARPREFIX.'ACTINICORDERTOTAL'} = $nTotal;
      #
      # send the total as a formatted string
      # e.g. "$5,128.34"
      #
      $::s_VariableTable{$::VARPREFIX.'FORMATTEDORDERTOTALCGI'} =
      ACTINIC::EncodeText2($sTotal, $::FALSE);
      $::s_VariableTable{$::VARPREFIX.'FORMATTEDORDERTOTALHTML'} =
      ACTINIC::EncodeText2($sTotal);
      #
      # send the total as a partially formatted string
      # the value will include a decimal place and any thousand
      # separators, but not the currency symbol
      # e.g. "5,128.34"
      #
      @Response = ActinicOrder::FormatPrice($nTotal, $::FALSE,
      $::g_pCatalogBlob);
      if ($Response[0] != $::SUCCESS)
      {
      return (@Response);
      }
      $::s_VariableTable{$::VARPREFIX.'NUMERICORDERTOTALCGI'} =
      ACTINIC::EncodeText2($Response[2]);

      In each of the statements above, replace $nTotal with $nSubTotal.
      Save the file and update the site.


      I havent fully tested this yet, but I should give you an outline to set these babies up.

      Regards,

      Toby
      Regards,

      Toby Blanchard

      Comment

      Working...
      X