How To

Adding Tracking Pixels to Yahoo Stores

If you are using a Yahoo! Store and need to add tracking pixels for Comparison Shopping or Paid Search please use the follow reference to set them up.

Prerequisites


 

 

Yahoo! Stores Pixel Integration


Variables are provided via JavaScript code in the Yahoo! Stores Checkout Manager. The code allows access to the following variables:

  • subtotal
  • total
  • order number
  • number of items
  • items
  • quantity
  • price

Here is the order confirmation JavaScript code that is available for the Yahoo! Store:

Use the JavaScript variables combined with the code below to set up pixel tracking in Yahoo! Stores. The Profile ID in the JavaScript below ("YYY") should be replaced with your Profile IDs for each account or store you have established. 

To find the Profile ID for your account:

  1. From My Account > Account Settings > Tracking Pixel.
  2. Under the  code for order tracking, there is an SMCID variable. The value of this variable is your Profile ID.

Code to Insert into Tracking Pixel


 

<script type="text/javascript"> {
    // Documentation at:
    // http://help.yahoo.com/help/us/sbc/store/manage/checkout/checkout-65.html

    var i = 0;
    var saItemList = '';
    for (i = 0; i < numOfItems; i++) {
        if (i > 0) {
            // Multiple products separated by a comma
            saItemList += ',';
        }
        saItemList += codes[i];
	}

	document.write('<IMG SRC="https://tracking.searchmarketing.com/thankyou.asp?SMCID=YYY&oVal=' + orderSubTotal +
                  '&OrderID=' + orderNum + '&ProductID=' + saItemList + '" WIDTH=1 HEIGHT=1 BORDER=0>');
}
</script>

 

To add this code to your Yahoo! Store do the following:
  1. Log into your Yahoo! store
  2. Select Order Settings > Checkout Manager > Page Configuration > Order Confirmation > HTML Head Section and add the pixel.

Reference


 

If you are using a Yahoo! Store and need to add tracking pixels for Comparison Shopping or Paid Search please use the follow reference to set them up.

Prerequisites


 

 

Yahoo! Stores Pixel Integration


Variables are provided via JavaScript code in the Yahoo! Stores Checkout Manager. The code allows access to the following variables:

  • subtotal
  • total
  • order number
  • number of items
  • items
  • quantity
  • price

Here is the order confirmation JavaScript code that is available for the Yahoo! Store:

Use the JavaScript variables combined with the code below to set up pixel tracking in Yahoo! Stores. The Profile ID in the JavaScript below ("YYY") should be replaced with your Profile IDs for each account or store you have established. 

To find the Profile ID for your account:

  1. From My Account > Account Settings > Tracking Pixel.
  2. Under the  code for order tracking, there is an SMCID variable. The value of this variable is your Profile ID.

Code to Insert into Tracking Pixel


 

<script type="text/javascript"> {
    // Documentation at:
    // http://help.yahoo.com/help/us/sbc/store/manage/checkout/checkout-65.html

    var i = 0;
    var saItemList = '';
    for (i = 0; i < numOfItems; i++) {
        if (i > 0) {
            // Multiple products separated by a comma
            saItemList += ',';
        }
        saItemList += codes[i];
	}

	document.write('<IMG SRC="https://tracking.searchmarketing.com/thankyou.asp?SMCID=YYY&oVal=' + orderSubTotal +
                  '&OrderID=' + orderNum + '&ProductID=' + saItemList + '" WIDTH=1 HEIGHT=1 BORDER=0>');
}
</script>

 

To add this code to your Yahoo! Store do the following:
  1. Log into your Yahoo! store
  2. Select Order Settings > Checkout Manager > Page Configuration > Order Confirmation > HTML Head Section and add the pixel.

Reference


 

0
Your rating: None
0
Your rating: None
Tags