Create a Conversion Rule

You can create a conversion rule easily and edit the rule to change the rule name and post-view conversions with a two-day conversion window.

Follow these steps:

  1. To begin, you need first need to create a Campaign.

conversion rules select campaign

  1. Now from the Yahoo Native Tools tab, click the Conversion rules menu item.

conversion rules in tools tab

  1. In the Conversion rules dialog that pops up, click New rule.

conversion rule new rule

  1. In the Create new conversion rule dialog, enter the Name of your conversion rule.

conversion rule dialog

  1. Choose the Type of rule conversion you wish, either a Page URL (for example, http://yourstore.com/checkout or an Web event (for example, customer played a video).

  2. Enter an amount for your conversion in the Conversion value field. This field lets you specify how much the conversion event is worth to you in general. The value will only be used if you are not tracking the dynamic conversion value. Amounts are in USD.

  3. Select a Conversion category for your conversion from the dropdown menu that appears. This can be a Purchase, Sign up, Lead, Add to cart, or Others.

conversion-rule-category

  1. If you chose Page URL as your rule type, enter Equals to, Begins with, Regular expression or Contains and enter the page URL in the next field

conversion rule page url

  1. Click Create conversion rule.

In the list of Conversion rules, you’ll see the Rule name, Rule ID, Conversion category and the Tag code.

  1. If you click the radio button Type as Web event in the Create new conversion rule dialog, you can define the type of web event you want.

conversion-rules-event-def

  1. In the Conversion rules dialog, you can add New rules and track the rules you’ve created.

native ad stream placement

Important

If you need to change the category, default conversion value or adjust the destination URL, you’ll need to delete the existing rule and create a new rule. Native & Search won’t let you change or modify the existing rule that you’ve set up. Changing the existing rule may alter conversion reporting and have an impact on optimizing your conversions.

Learn More

For a deeper dive on how to capture events that you may want to track, refer to Installing Tags in the Native & Search API. The document provides you with a JavaScript code template on capturing an event to track. You can define the parameters of the event types and create a custom event script to capture events.

For example:

<script type="application/javascript">
window.dotq = window.dotq || [];
window.dotq.push(
{
  'projectId': '10001234567890',
  'properties': {
    'pixelId': '654321',
    'qstrings': {
      'et': 'custom',
      'ec': 'event category',
      'ea': 'event action',
      'el': 'event label',
      'ev': 'event value',
      'gv': 'conversion value'
    }
} } ); </script>

The following example shows how you might use the custom event script to capture the event of a user adding a $249 electronics item to a shopping cart:

<script type="application/javascript">
window.dotq = window.dotq || [];
window.dotq.push(
{
  'projectId': '10001234567890',
  'properties': {
    'pixelId': '654321',
    'qstrings': {
      'et': 'custom',
      'ec': 'shopping',
      'ea': 'add to cart',
      'el': 'add to cart',
      'ev': 'electronics',
      'gv': '249.00'
    }
} } ); </script>