We suggest the following steps:
Getting Started - Add the script to your pagesThe first step is to get your client Id for the script. Your Project Manager will provide you with this Id. Then, on each page you want to track, add this script in body section of the page, before the closing </body> tag.
Your lead forms should also be set up to inspect the session for an overriding Lead Source, Lead Campaign, or Event. In the case that the source, campaign, or event parameters have a value, these values should be used instead of the form's default values for the LeadSourceName, LeadCampaignName and EventName when posting to the Aimbase Lead API.
Here is an example of retrieving the source, campaign, and event parameters from the session:
Aimbase.Analytics.AddListener( element, //a DOM element on the page name, //a human readable name to identify the DOM element action, //the DOM event that should be listened for parameters); //(optional) a string or object that contains any additional information to pass to Aimbase when this event is recorded.
Aimbase.Analytics.RemoveListener( element, //a DOM element on the page action); //the DOM event that is being listened for