How do I modify the order snippet to work in ColdFusion?

From Market Ruler Help
Jump to: navigation, search

Make sure the variable is surrounded by a <cfoutput> tag:

<cfoutput>
	<script type="text/javascript">
	(function(){var d=document,u=((d.location.protocol=='https:')?'s':'')+'://www.conversionruler.com/bin/js.php?siteid=XXXX';
	d.write(unescape('%3Cscript src=%22http'+u+'%22 type=%22text/javascript%22%3E%3C/script%3E'));})();
	</script><script type="text/javascript">
	var cramount0 = '#ORDER_AMOUNT#',
		crtext0 = '#ORDER_NUMBER#';
	__CR.track('3');
	</script><noscript><div style="position: absolute; left: 0"><img
	src="https://www.conversionruler.com/bin/tracker.php?siteid=XXXX&nojs=1&actn=3&cramount0=#ORDER_AMOUNT#&crtext0=#ORDER_NUMBER#" alt="" width="1" height="1"
	/></div></noscript>
 </cfoutput>

The ORDER_AMOUNT and ORDER_NUMBER variables should be your variables for order amount and order number, respectively. If you have any further questions, contact us.