Support

Home Forums Event Espresso Premium Integration with Infusionsoft Campaign

Integration with Infusionsoft Campaign

Posted: November 21, 2014 at 1:41 am

Viewing 1 reply thread


masteryasia

November 21, 2014 at 1:41 am

Hi,
I setup the integration with Infusionsoft,
and completed the setting for Infusionsoft :
infusionsoft_campaign_id
infusionsoft_tag_id

i do testing for both seperately, the campaign part is not working.
it didn’t add the customer to the campaign.
anything I miss or maybe you can guide me in creating event/campaign the correct way?

Event Espresso version 3.1.36.6.P
WordPress version WP 4.0.1
Event Espresso – Infusionsoft Integration by Event Espresso version 1.3.0.p


Sidney Harrell

November 24, 2014 at 12:19 pm

I apologize, the documentation you must have seen is out of date.
I actually had to go in and debug our interaction with the IS API in order to figure this out, but you will need to follow the first 3 steps here:
http://community.infusionsoft.com/showthread.php/17830-How-to-add-a-contact-to-a-campaign-via-API
Then in plugins/espresso-infusionsoft/index.php, you’ll need to find lines 150-156:


//Can't get this to work
	//Add contact to a campaign infusionsoft_campaign_id meta field
	/*if ($cust_id && isset($attendee_data['event_meta']['infusionsoft_campaign_id']) && !empty($attendee_data['event_meta']['infusionsoft_campaign_id']) ){
		$addToCampaign = $ee_infusionsoft->campAssign($cust_id, $attendee_data['event_meta']['infusionsoft_campaign_id']);
		echo '<h4>$VARIABLE : ' . $addToCampaign . '  <br />' . __FILE__ . '<br />line no: ' . __LINE__ . '</h4><br /><br /><br />';
		$clean_attendee_data['infusionsoft_campaign_id'] = $attendee_data['event_meta']['infusionsoft_campaign_id'];
	}*/

and change it to:

//Can't get this to work
	//Add contact to a campaign infusionsoft_campaign_id meta field
	if ($cust_id && isset($attendee_data['event_meta']['infusionsoft_call_name']) && !empty($attendee_data['event_meta']['infusionsoft_call_name']) ){
		$addToCampaign = $ee_infusionsoft->achieveGoal($ee_is_options['applicationName'], $attendee_data['event_meta']['infusionsoft_call_name'], $cust_id);
		write_log($addToCampaign);
		$clean_attendee_data['infusionsoft_campaign_id'] = $attendee_data['event_meta']['infusionsoft_campaign_id'];
	}

Finally, instead of the event meta infusionsoft_campaign_id, you’ll need to use infusionsoft_call_name and use the call name you set up in the IS campaign builder.

Viewing 1 reply thread

The support post ‘Integration with Infusionsoft Campaign’ 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