Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Code for Bing Advertising in Magento?  Bing Advertising in success.phtml page similar to Google Adwords tracking code. 
 
zepher_007
Jr. Member
 
Total Posts:  24
Joined:  2011-12-01
 

Was able to find a thread for how to integrate google adwords into magento and I had to prep the code to place it into my sucess.phtml page.  I guess since it’s not a standard HTML page I have to fix any affiliate or advertising code to make it work in magento.  I’m trying to get my Bing Advertising code to work and wonder how to best package it.

<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.atdmt.com/mstag/site/d6cc2ba7-c5fa-47a0-969e-466606afaf70/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1”,domainId:"1xxxxx3”,type:"1”,taxcost:"”,shippingcost:"”,nonadvertisingcost:"”,revenue:"”,actionid:"91171"})</script> <noscript> <iframe src="//flex.atdmt.com/mstag/tag/d6cc2ba7-c5fa-47a0-969e-466606afaf70/analytics.html?dedup=1&domainId;=1833943&type;=1&taxcost;=&shippingcost;=&nonadvertisingcost;=&revenue;=&actionid;=91171" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript>

Any Idea how to make it work for a php .phtml page?

Google Adword code ended up looking like this:

<?php
//-------------------------------------------
// START ADWORDS CONVERSION VALUE TRACKING CODE
//-------------------------------------------
$order_details = Mage::getModel('sales/order')->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId());
$adwords_saleamt = $order_details->subtotal;
?>

<!-- Google Code for Purchase/Sale Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1xxxxxxxx5;
var google_conversion_language = “en”;
var google_conversion_format = “1”;
var google_conversion_color = “ffffff”;
var google_conversion_label = “QurmCKm_0QMQ_4Cy5AM”;
var google_conversion_value = “<?php echo $adwords_saleamt; ?>”;
//-->
</script>
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height="1" width="1" border="0" src="http://www.googleadservices.com/pagead/conversion/1xxxxxxxx5/?value=0&label=QurmCKm_0QMQ_4Cy5AM&guid=ON&script=0"/>
</noscript>

<?php
//-------------------------------------------
// END ADWORDS CONVERSION VALUE TRACKING CODE
//-------------------------------------------
?>

Original Copied code from google =

<!-- Google Code for Store Sale Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1xxxxxxxx5;
var google_conversion_language = “en”;
var google_conversion_format = “3”;
var google_conversion_color = “ffffff”;
var google_conversion_label = “QurmCKm_0QMQ_4Cy5AM”;
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="” src="http://www.googleadservices.com/pagead/conversion/1xxxxxxxx5/?value=0&label=QurmCKm_0QMQ_4Cy5AM&guid=ON&script=0"/>
</div>
</noscript>

 
Magento Community Magento Community
Magento Community
Magento Community
 
zepher_007
Jr. Member
 
Total Posts:  24
Joined:  2011-12-01
 

bump.... Anybody get bing advertising to work in magento.  How do I prepare the java code from affiliates like bing for magento.  Any tricks or hints is appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top