خرید بک لینک

I don't know if anyone can help me here or not, but i'm trying to place a tracking script onto the order confirmation/success page via the Magento Ecommerce Platform. I've searched the net everywhere but i can't seem to find anything to help me on how to do it or where to place it. This is my first time using Magento so its very new to me.

Basically i want the script to tell me how many orders have been placed via Google AdWords and to also dynamically bring in the VALUE, ORDER NUMBER, and CURRENCY.

the script is (it works very similar to the Google AdWords Conversion Tracking Code):

    <script type=text/javascript>
       var hostProtocol = (("https:" == document.location.protocol) ? "https" : "http");
       document.write('<scr'+'ipt src="', hostProtocol+
       '://xxxx.xg4ken.com/media/getpx.php?cid=xxxxxxxxxxxxxxxxxxxxxxxxxxx','" type="text/JavaScript"></scr'+'ipt>');
    </script>
    <script type=text/javascript>
       var params = new Array();
       params[0]='id=xxxxxxxxxxxxxxxxxxxxxxxxxxx';
       params[1]='type=Purchase';
       params[2]='val=<?php echo $total?>';
       params[3]='orderId=<?php echo $order?>';
       params[4]='promoCode=';
       params[5]='valueCurrency=GBP';
       params[6]='GCID='; //For Live Tracking only
       params[7]='kw='; //For Live Tracking only
       params[8]='product='; //For Live Tracking only
       k_trackevent(params,'xxxx');
    </script>

    <noscript>
       <img src="https://xxxx.xg4ken.com/media/redir.php?track=1&token=xxxxxxxxxxxxxxxxxxxxxxxxxxx&type=Purchase&val=<?php echo $total?>&orderId=<?php echo $order?>&promoCode=&valueCurrency=GBP&GCID=&kw=&product=" width="1" height="1"/>
    </noscript>

Looking at the script

<?php echo $total?> 

this is what i believe to be magento's dynamic order value parameter, which can be inserted into tracking scripts like the above and also the Google AdWords tracking code. What i believe brings in the order ID is as follows:

<?php echo $order?>

I'm unsure what the dynamic value is to bring in the currency used in the purchase so i;ve used: GBP

I could be wrong with the above, but does anybody know what they are for certain? and am i missing something? i have looked at this thread http://magento.stackexchange.com/questions/34042/google-adwords-conversion-tracking and it gives an example on how to modify the adwords code by including a PHP section at the top. does anyone think i need to do it here as well?

Thanks in advance

- - , .

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 29 بهمن 1394 ساعت: 15:22

صفحه بندی