<div id="main-content" class="wiki-content group">
	<p>
		In all movements in a process, the data is sent to analytics.
		Information regarding the process are automatically sent and
		information from the form can be handled in the event <strong><em>beforeSendData</em>.</strong>
	</p>
	<p>
		The function to treat this process event has two&#160;parameters&#160;<span><span><span><em>customField
						and customFact</em></span></span></span>. The first parameter is an array of strings already
		instantiated, with 10 positions (0 to 9). The second parameter is an
		array of 10 positions, but the data must be double type and
		its&#160;content&#160;will be treated as a "fact".
	</p>
	<p>An example of implementation can be seen below:</p>
	<p>&#160;</p>
	<div class="code panel pdl" style="border-width: 1px;">
		<div class="codeHeader panelHeader pdl"
			style="border-bottom-width: 1px;">
			<b>beforeSendData</b>
		</div>
		<div class="codeContent panelContent pdl">
			<pre class="theme: DJango; brush: javascript; gutter: false"
				style="font-size: 12px;">function beforeSendData(customField, customFact) {
    customField[0] ="1";
    customField[1] =hAPI.getCardValue("campo_do_formulario");
    customFact[0]=10.53;
    customFact[1]=java.lang.Double.parseDouble(hAPI.getCardValue("campo_valor"));
 }</pre>
		</div>
	</div>
	<p>&#160;</p>
	<p>&#160;</p>
	<p>&#160;</p>
	<p>&#160;</p>
</div>