Announcement

Collapse
No announcement yet.

Bing Ads UET Tracking is not tracking

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bing Ads UET Tracking is not tracking

    The old Bing Ads tracking has worked well for years but I cannot get the new UET tracking to work for several months now. BingAds does not show any conversions or revenues now, making it practically useless. Miva Support could not help me and I know nothing about JavaScript. Can you help?


    I have started yesterday again from scratch on BingAds site and spent most of the day on it. I have inserted the fresh Bing Ads UET Tracking tag into the Global Footer. But after processing a test order through a Bing Sponsored link, the Web Inspector in Safari showed one Error … ReferenceError: Can't find variable: Revenue.


    I changed the variable “Revenue” to revenue, Purchase, total, and processed Test orders, but always the same Error for the new variable. Meanwhile, Bing Ads is not showing any conversions today.


    What should I do? Thanks for your help!
    ---------
    Joe


    <!-- BEGIN: Bing Ads UET Tracking tag. -->
    <script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:”xxxx”};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(){v ar s=this.readyState;s&&s!=="loaded"&&s!=="complete"| |(f(),n.onload=n.onreadystatechange=null)},i=d.get ElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document, "script","//bat.bing.com/bat.js","uetq");</script>
    <noscript><img src="//bat.bing.com/action/0?ti=xxxx&Ver=2" height="0" width="0" style="display:none; visibility: hidden;" /></noscript>
    <script>
    window.uetq = window.uetq || [];
    window.uetq.push({ 'gv': Revenue}); // Pass the computed revenue
    </script>
    <!-- END: Bing Ads UET Tracking tag -->


    #2
    Re: Bing Ads UET Tracking is not tracking

    Where is the variable Revenue set? Missing a piece of script?
    Andreas Toman
    PCINET, LLC

    Miva Merchant Design, Development, Integration & Support
    We built over 200 Miva Merchant stores!
    Miva shopping cart design & integration service and see our Portfolio!


    e-mail: [email protected]
    web: www.pcinet.com
    LinkedIn: Andreas Toman
    phone: (786) 250-2056 (Miami, FL)

    Comment


      #3
      Re: Bing Ads UET Tracking is not tracking

      "Revenue" needs to be replaced with the actual conversion value for the Miva order.

      Comment


        #4
        Re: Bing Ads UET Tracking is not tracking

        Originally posted by PCINET - Andreas View Post
        Where is the variable Revenue set? Missing a piece of script?
        No idea - not provided with the BingAds code.

        I believe this and other variables are created by Miva for the Invoice page.

        Thank you,

        Joe

        Comment


          #5
          Re: Bing Ads UET Tracking is not tracking

          Dan,

          Thank you. But it cannot find the variable for the conversion value on the INVC page. Maybe it has a different name.

          I am sure there are other Miva users that also use Bing Ads. I figure that there is a simple solution.

          Joe

          Comment


            #6
            Re: Bing Ads UET Tracking is not tracking

            Thank you Andreas and Dan!


            I think the variable “Revenue” is supposed to be created by the Miva INVC page. (I have used the entire script provided by Bing Ads.)


            I imagine that the INVC page generates the total conversion value which it shows as the total order on that page. But it is probably called something else than “Revenue.”


            There must be many Miva users that also use Bing Ads. The solution may be simple but it is beyond me.


            Thanks in advance for your kind help!


            Joe

            Comment


              #7
              Re: Bing Ads UET Tracking is not tracking

              I am sorry but apparently the moderator is not posting my Replies. (Perhaps, because I am new to this Forum.)

              Comment


                #8
                Re: Bing Ads UET Tracking is not tracking

                Hey Joe,

                I think you need to replace:
                Code:
                window.uetq.push({ 'gv': Revenue}); // Pass the computed revenue
                
                With:
                Code:
                window.uetq.push({ 'gv': &mvt:order:total;}); // Pass the computed revenue
                
                &mvt:order:total; is the variable you need for your Revenue.

                Hope this helps, and that I'm not totally steering you in the wrong direction...

                Ron
                Ron Frigon
                Jedi Webmaster Obi-Ron Kenobi

                Comment


                  #9
                  Re: Bing Ads UET Tracking is not tracking

                  Hello Ron the Web Dude,

                  You are right. Replacing the variable "Revenue" with "&mvt:order:total;" did the trick - no more Errors.

                  Next, I just have to figure out if Bing Ads is actually tracking conversions.

                  Thank you for your help.

                  -----------
                  Joe

                  Comment

                  Working...
                  X