Support

Home Forums Event Espresso Premium InfusionSoft Integration, Payment Option & Affiliates

InfusionSoft Integration, Payment Option & Affiliates

Posted: May 22, 2013 at 9:36 pm


Mike Doughty

May 22, 2013 at 9:36 pm

Hi, We have the Business Licence for Event Espresso, I have setup the InfusionSoft Integration and setup it up to use the merchant facility I have setup in InfusionSoft. My question is when I provide an affiliate with link to my event page, and then the person purchase a ticket through the Event Espresso page I’ve setup. How does the affiliate information get passed through to InfusionSoft. Would I need to hard code into the page using php to populate the affiliate code information from the url string, and would this information be passed through to InfusionSoft.

Thanks, Mike


Seth Shoultes

  • Support Staff

May 22, 2013 at 11:13 pm

Hi Mike,

I haven’t had a chance to look into the Infusionsoft affiliate system, yet. This is something I am thinking about looking into adding. Can you give me some details about how you foresee this working?


Mike Doughty

May 22, 2013 at 11:55 pm

Hi,

I think generally with the InfusionSoft Integration, it is providing a facility where information that is in the url string can be captured on the page, ie on the page you have some code that collects from the url string the necessary information and then when the submit button [or what every button is used to post] is clicked on the information in the fields are passed across to InfusionSoft. This would deal with general field information someone wants to pass through.

How I have seen this done in the other apps that integrate with IS is generally two ways. First way you have a box for IS integration where we could go in an put the script we want to run on the page.

Like how in Word Press there is an Analytics box where you put your script code for Analytics. You could do something similar for IS. I can then put into that box the php code to have the field info I want to collect from the url string and have passed through to IS on the submit button being clicked.

ie “<form accept-charset=”UTF-8″ action=”https://appname.infusionsoft.com/app/form/process/9237fae93453ad337ac3df2948a96c14″ class=”infusion-form” method=”POST” >
<input name=”inf_form_xid” type=”hidden” value=”9237fae93453ad337ac3df2948a96c14″ />
<input name=”inf_form_name” type=”hidden” value=”name” />
<input name=”infusionsoft_version” type=”hidden” value=”1.25.3.49″ />

<input class=”infusion-field-input” id=”inf_field_FirstName” name=”inf_field_FirstName” type=”hidden”  value=”<?php echo $_GET[“Contact0FirstName”]; echo $_GET[‘FirstName’]; echo $_GET[“inf_field_FirstName”]; ?>”/>
<input class=”infusion-field-input” id=”inf_field_Email” name=”inf_field_Email” type=”hidden”  value=”<?php echo $_GET[“Contact0Email”]; echo $_GET[‘Email’]; echo $_GET[“inf_field_Email”]; ?>”/>
<input style=”border:none; background-image:url(../name/Images/addtocart-style2.png); color:#FFF; font-family:Helvetica; font-size:18px; height:127px; width:368px; display:block; background-position:center; background-repeat: no-repeat;” type=”submit” value=”” />
</form>”

This means any information would be pushed through to InfusionSoft on the clicking of the submit button. I’m not an expert by any means, however tha’st how I would do it to provide flexibilty.

The other option is to allow for certain custom fields to be update, where you put in the InfusionSoft Custom Field Id, and you are able to match that to the EventEspresso Database Field. For example in your Question area, put the InfusionSoft Field ID you want it to match to. This however doesn’t deal with being able to pass through the affiliate ID. If you had an Affiliate ID in the EE Database and had your forms set to allow us to specfify the field name in the URL string used, collected the value and then map to the appropriate IS field ID that could work.

Like I said I’m no expert, so those are my thoughts.  Just comes down to collecting information in the url string, mapping and then passing through to appropriate field id in IS.

Thanks, Mike

 


Mike Doughty

May 24, 2013 at 4:09 pm

Hi, Just wondering if there was any update on whether the affiliate code from url string can be passed through to InfusionSoft when someone purchases a ticket. Thanks, Mike


Seth Shoultes

  • Support Staff

May 24, 2013 at 9:04 pm

We have a hook in the payment process you can use to run the code you posted above, but I will need to find an example and see if it will work.


Seth Shoultes

  • Support Staff

May 24, 2013 at 9:08 pm

There is an action hook called `action_hook_espresso_track_successful_sale`, which is on line 133 in process_payments.php. You should be able to hook into that so you can run any affiliate HTML. But you will need to have some way of tracking the affiliate code throughout the registration process.


Seth Shoultes

  • Support Staff

May 24, 2013 at 10:32 pm

Also, another thought. You will need some way of capturing the affiliate id when customer is directed to your website. I can take a look at integrating with affiliate tracking, but I am not sure how much work is going to be involved in adding this feature. Is this a feature you would be interested in sponsoring the development for?


Mike Doughty

May 24, 2013 at 10:43 pm

Hi Seth,

The event I’m doing is a one off event at the moment, so I’m not sure about the sponsorship of the development. It would obviously be a really useful feature for all InfusionSoft users I’d imagine.

Thanks, Mike


Seth Shoultes

  • Support Staff

May 25, 2013 at 1:01 am

No problem. This actually turned out to be easier than I thought it was going to be. I just added a hook/function that stores the “Referral Partner Code” (term for the Infusionsoft affiliate id) as a cookie for later use in the system. Then if a referral comes to your site, using a URL like mywebsite.com/event-registration/?ref=johndoe, the affiliate id is captured upon registering for an event (screenshot: http://www.screencast.com/t/n4f2yUIU1kY).

The support post ‘InfusionSoft Integration, Payment Option & Affiliates’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso