Difference between revisions of "Named Actions"
From Market Ruler Help
(Created page with 'As of February 2013, you can use action names instead of numbers for your actions in ConversionRuler. The usage is almost identical in ConversionRuler, except that you must pass …') |
(No difference)
|
Revision as of 03:45, 15 February 2013
As of February 2013, you can use action names instead of numbers for your actions in ConversionRuler. The usage is almost identical in ConversionRuler, except that you must pass action codes in quotes when passed to ConversionRuler. It simply makes it easier to associate the actions with their meaning in the JavaScript code.
So, for example:
<script type="text/javascript"> cr_track('order', '$129.99', '#571298120'); </script>
Is far simpler to understand than:
<script type="text/javascript"> cr_track('3', '$129.99', '#571298120'); </script>
You must quote actions passed to cr_track (unless you are actually passing a variable - for advanced JavaScript marketers.), so,
<script type="text/javascript"> // ERROR DO NOT DO THIS cr_track(order, '$129.99', '#571298120'); </script>
will produce an error and will not track.
The named actions functionality was rolled out simultaneously with the Tracking Queue functionality for AJAX applications. So, an alternate way to use named actions is:
<script type="text/javascript"> _crq.push(['order', '$129.99', '#571298120']); </script>