Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bing Ads and UET Tracking


NuDreamer

Recommended Posts

Hello Everyone,

 

I am trying to implement Bing UET Tracking on my osCommerce site. It works very similar to google adwords and analytics in that I can track revenue. My problem is, I am not sure what I need to insert into the Bing UET code so that it takes the order total and passes it on to Bing, The code I am using is below:

<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"TAG_ID"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");</script>
<script> var uetq = uetq || [];  uetq.push({ 'gv': ORDER_TOTAL });</script>
<noscript><img src="//bat.bing.com/action/0?ti=TAG_ID&Ver=2&gv=ORDER_TOTAL" height="0" width="0" style="display:none; visibility:hidden;" /></noscript>

I need to replace the text ORDER_TOTAL with the query that pulls the actual order total data. Can anyone help me with this?

 

MUCH Appreciated!

William

Link to comment
Share on other sites

  • 10 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...