| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Bing conversion code | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Bing conversion code
I am having trouble with the Bing conversion code not working as it should.
This is the code that I have been given by the company that deals with advertising for us. I have removed our account code. This is what is in the template file. <!-- Bing Code for Purchase Conversion Page --> <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/ce168b15-1b45-479d-8757-18fcec513121/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"xxxxx",type:"1",revenue:"{$or der.order.total}",actionid:"131715"})</script> <noscript> <iframe src="//flex.atdmt.com/mstag/tag/ce168b15-1b45-479d-8757-18fcec513121/analytics.html?dedup=1&domainId=xxxxx&type=1&reven ue={$order.order.total}&actionid=131715" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript> When I look at the source code on the thank you page, this is what is in there. <!-- Bing Code for Purchase Conversion Page --> <script type="text/javascript"> if (!window.mstag) mstag = ,time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.atdmt.com/mstag/site/ce168b15-1b45-479d-8757-18fcec513121/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", ",actionid:"131715"})</script> <noscript> <iframe src="//flex.atdmt.com/mstag/tag/ce168b15-1b45-479d-8757-18fcec513121/analytics.html?dedup=1&domainId=xxxx&type=1&revenu e=38.49&actionid=131715" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript> As you can see, there are differences, and the tracking code is not working. Maybe something is changing the code as it is output to the page? Any ideas? Thanks, Steve
__________________
Version 4.1.8 & 4.1.9 ezcheckout4.1.x cdseolinks2 product_metatags41x shipping_per_product41x http://www.earthsmagic.com |
|||||||
#2
|
|||||||
|
|||||||
Re: Bing conversion code
Hi,
Did you get it right ? the Bing Ad tracking code ? I am having hard time to figure out the code. Let me know. thanks.
__________________
Various X-cart Versions...!! Latest is X-cart 4.7.5 |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Bing conversion code
You should place your code between {literal} and {/literal} tags - it should help to solve the problem.
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Bing conversion code
This is happening because the Smarty templater interprets { and } symbols as its opening and closing tags.
So you should replace these symbols with {ldelim} and {rdelim} statements where it is necessary, or do like seyfin said, place the entire piece of code between {literal} and {/literal} tags.
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#5
|
|||||||
|
|||||||
Re: Bing conversion code
I can see my conversions, but I'm not getting the revenue variable. This is what I have on my 4.4.5 xcart:
Code:
Has anyone gotten Bing Revenue/UET code to work properly?
__________________
4.4.5 - with Customized Smart Template |
|||||||
|
|||
X-Cart forums © 2001-2020
|