Bing Revenue Not Working

General ShopSite user discussion
Post Reply
jpshopsite
Posts: 2
Joined: Tue Oct 18, 2016 12:44 pm

Bing Revenue Not Working

Post by jpshopsite »

Hi,
We are trying to log Bing revenue in our shopping cart.
We followed the tutorial here - http://www.shopsite.com/templates/cookbook/tracking-bing.html
used the code provided, replaced the ORDER_TOTAL with ss_ordertotal
but the variable is not getting resolved.

We do use custom templates on the website.

We also use Google Analytics e-commerce tracking, so I can see the variable being populated
for example - var ss_ordertotal = "5.98";

but in the Bing code, for whatever reason, it comes up not resolved:
<script> var uetq = uetq || []; uetq.push({ 'gv': ' + ss_ordertotal + ' });</script>
(I tried different version of this code, with or without ticks, no difference)

Any help is appreciated
ShopSite David
Site Admin
Posts: 318
Joined: Fri Aug 04, 2006 1:30 pm
Location: Utah
Contact:

Re: Bing Revenue Not Working

Post by ShopSite David »

The code should only be:
<script> var uetq = uetq || []; uetq.push({ 'gv': ss_ordertotal});</script>

Putting the quotes around it makes the string: " + ss_ordertotal + "
-David H.
ShopSite, Inc.
http://www.shopsite.com
jpshopsite
Posts: 2
Joined: Tue Oct 18, 2016 12:44 pm

Re: Bing Revenue Not Working

Post by jpshopsite »

David,
We tried that and the variable is still not resolving.
It's frustrating because the same variable does resolve for our Google Analytics.

Is it possible that it does not work because of the location of the script?

We currently have it in the custom include file - CS-Inc_Footer.sst - http://screencast.com/t/gqeBuTqTNe9
Any help would be appreciated. Thanks!
ShopSite David
Site Admin
Posts: 318
Joined: Fri Aug 04, 2006 1:30 pm
Location: Utah
Contact:

Re: Bing Revenue Not Working

Post by ShopSite David »

Perhaps the 'gv' should be 'ev'. Here's some info from the Bing docs:

--------------
When you set up a Custom event, there are four values you can use to further define a user’s interaction:
• Category (ec): Typically the name you provide for the object you want to track (e.g., "button").
• Action (ea): The type of user interaction paired with the category object (e.g., "click").
• Label (el): An optional string, useful to note additional details about your event goal (e.g., "Plays on the welcome video").
• Value (ev): This field may be used to track monetary value, or other numerical data associated with this goal (e.g., "5," representing $5).
NOTE: Commas are accepted in value fields, but decimals are not. In terms of monetary values, there is no currency association, just numerical values/representation.
-------------------

If changing 'gv' to 'ev' doesn't work go through the setup described on this page:
https://advertise.bingads.microsoft.com/en-us/resources/training/universal-event-tracking
-David H.
ShopSite, Inc.
http://www.shopsite.com
Post Reply