Resources/Get more here/Third-Party Integration & LiveBall Tracking

Integration: Aweber

David Kavalsky
posted this on July 05, 2011 09:08

Do you have form data that you would like sent directly to Aweber? No problem! LiveBall makes this a simple process by making a few adjustments to Javascript code.

Before You Get Started

The developers here at ion have created a simple Javascript that will be placed in the head of the LiveBall pages that you wish to integrate with Aweber.  Pull up the script editor at the top of the LiveBall page you wish to integrate with Aweber by clicking the orange “script” button at the top of the page.  Copy and paste the following script into the “custom script” text box in the <head> script section of the script editor:

<script type="text/javascript">

function SaveAndSubmit()

{

liveballData("firstname",document.liveballform.firstname.value);

liveballData("lastname",document.liveballform.lastname.value);

liveballData("emailaddress",document.liveballform.emailaddress.value);

document.liveballform.action = “http://yourAweberURLHere.com";

document.liveballform.submit();

}

</script>

Let’s Get Started

Now that you have the script in place, just make a few adjustments to some basic placeholders in the Javascript:

  1. The first three lines of this example code are for data fields which you have created in the data collection section of your LiveBall console.  If they are not relevant to your form (or if you have renamed these data fields in data collection), replace these placeholders with the relevant LiveBall data field names.
    1. *Note: You can add more data fields by simply replicating these three example lines of code with the data field names you wish to send to Aweber
  2. Replace the “http://yourAweberURLHere.com” placeholder with the URL where you want respondent data sent

 

Now that you have altered the Javascript to match your requirements, insert the below code into the “onsubmit” text field located in the <form> submit section of the script editor to trigger an export of your respondent data to Aweber:

SaveAndSubmit();return false;

Once you click save, your LiveBall landing page will be able to send respondent data to your Aweber account.

If you have any further questions about Aweber integration, contact your ion account manager for support.