Bing Revenue Not Working

General ShopSite user discussion

Bing Revenue Not Working

Postby jpshopsite » Wed Oct 19, 2016 7:12 am

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
jpshopsite
 
Posts: 2
Joined: Tue Oct 18, 2016 12:44 pm

Re: Bing Revenue Not Working

Postby ShopSite David » Thu Oct 20, 2016 12:11 pm

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
ShopSite David
Site Admin
 
Posts: 316
Joined: Fri Aug 04, 2006 1:30 pm
Location: Utah

Re: Bing Revenue Not Working

Postby jpshopsite » Mon Oct 31, 2016 12:57 pm

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!
jpshopsite
 
Posts: 2
Joined: Tue Oct 18, 2016 12:44 pm

Re: Bing Revenue Not Working

Postby ShopSite David » Tue Nov 01, 2016 1:37 pm

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
ShopSite David
Site Admin
 
Posts: 316
Joined: Fri Aug 04, 2006 1:30 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 64 guests