Support

Home Forums Event Espresso Premium Pass incomplete payment registrants to Customer.io

Pass incomplete payment registrants to Customer.io

Posted: February 6, 2013 at 7:46 am

Viewing 4 reply threads


Douglas Nelson

February 6, 2013 at 7:46 am

I need to pass incomplete and pending registrants to Customer.io and need to know the field that I need to pass them so that I can set up a trigger email send for individuals that do not complete payment. Here is the code they have provided me and now I just need to know what are the fields that I can pass them, ideally I would like to pass them first, last name, email and maybe time of registration?

Please feel free to advise on any of the changes I need to make to this code below:

var _cio = _cio || [];
(function() {
var a,b,c;a=function(f){return function(){_cio.push([f].
concat(Array.prototype.slice.call(arguments,0)))}};b=[“identify”,
“track”];for(c=0;c<b.length;c++){_cio[b[c]]=a(b[c])};
var t = document.createElement('script'),
s = document.getElementsByTagName('script')[0];
t.async = true;
t.id = 'cio-tracker';
// MAKE SURE YOU UPDATE TO YOUR SITE ID
t.setAttribute('data-site-id', '70cf59ce2a103801e8b9');
t.src = 'https://assets.customer.io/assets/track.js&#039;;
s.parentNode.insertBefore(t, s);
})();

// ADD ANY INFO FROM WORDPRESS YOU'D LIKE TO PASS TO CUSTOMERIO

_cio.identify({
  // Required attributes
  id: 'ID ?&gt;',
  email: 'user_email ?&gt;',
  created_at: user_registered) ?&gt;,
  first_name: 'user_firstname ?&gt;'
});


Douglas Nelson

February 6, 2013 at 12:55 pm

Really could use your help on this I basically need to pass all the information from the registration and payment process to Customer.io through the use of the above code. The information I really need to pass is first name, last name, email and then their payment status associated with that user so either incomplete, pending or complete.

Please help as soon as possible!


Dean

February 7, 2013 at 12:07 am

Hi Douglas,

Well it depends on how and where you are trying to get the data from. Before submission you should be able to use jQuery/Javascript to pull the data from the form fields, simply by calling the form field id/class.

If it is after submission, then you will need to look at using PHP and pull the data from the database as it will be stored there.

Also the docs talk about the user being logged in, if that is the case you can get partial info from WordPress as well (name/email)

To be honest it sounds like you may need a developer to assist you with integration.


Douglas Nelson

February 7, 2013 at 5:00 am

VERY URGENT NOW

I am currently working with a developer on this but he needs to know the form field id/class. Also what would be the required PHP to pull the data from the database my developer could not find this in your documentation anywhere or what to reference. If you could please provide me with the id/class for he fields, first name, last name, email and payment status that may help us out quite a bit!

The above code reference was just an example of what information you can pass to customer.io, you can pass any type of information to them but I need to know what the id/class or where to reference this in the database. Could you please provide me with this information or at least where to look for the above referenced info i need to pull from the data base or the form field.

Thanks,
Doug


Dean

February 7, 2013 at 5:35 am

Hi Douglas,

The form and input ID’s and Classes can normally be found from the source code, or by right clicking and using the developer tool in your browser and will vary from installation to installation so it requires you to double check this.

The ID’s for the Personal Information question input fields:

  • first name input #fname-2-0-1
  • last name input #lname-2-0-1
  • email input #email-2-0-1

From my brief tests it is normally the 2 that changes.

Payment Status, to my knowledge, does not have an ID as it is not a field, but rather a calculation by the php and added to the database.

The *_events_attendee table contains that information (where * is your database prefix)

To pull info from the database requires a standard SQL query. If you use a plugin like Adminer or the PHPMyAdmin in your hosting it will pull up the database tables so they can be examined in order to build a query.

Hope that helps.

Viewing 4 reply threads

The support post ‘Pass incomplete payment registrants to Customer.io’ 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