Conversion Tracking JavaScript in VM Order Confirmation Page

GK User
Thu Sep 19, 2013 8:15 pm
Dear Gavick. Can someone else please help with properly inserting a conversion tracking JavaScript code into order confirmation page (order_done.php)? I am sure many people have done it since many of us use a VM E-
Commerce platform and we do advertise with AdWords or Facebook or some other companies.

I need to insert the code manually, not using 3d party extensions. Have some experienced doing it?

My code looks like this, but it's not tracking anything.

Code: Select all
<?php

defined('_JEXEC') or die('');

echo "<h3>".JText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU')."</h3>";

echo '<script type="javascript">
   var a =  "123";
   var b =  "456";
   var c =  "789";
</script>
<script language="javascript" src="https://www.3dPartyTracking.com/xxxxxxxxxtracker.js">';

echo $this->html;


Please assist.

Thank you very much in advance.
User avatar
Gold Boarder

GK User
Thu Sep 19, 2013 9:00 pm
Perhaps You should ask on VM forum, they are specializing in VM.
User avatar
Moderator

GK User
Thu Sep 19, 2013 9:06 pm
Cyberek wrote:Perhaps You should ask on VM forum, they are specializing in VM.

Hi Cyberek. There is no doubt that they are specializing in it. However, you design template, so I thought you could answer the questions as well. I am sure it's not hard for you. At the same time, I was thinking that some other users possibly had the same issue.

So any help will be greatly appreciated.

Thanks.
User avatar
Gold Boarder

GK User
Sat Sep 21, 2013 9:59 am
You have already implemented this piece of code - can You see it in confirmation page source (when You place the order)?
User avatar
Moderator

GK User
Sat Sep 21, 2013 10:01 am
PS - we mostly support problems related to our templates not additional elements we use (which have their own support). Ill try my best, but I cant spend to much time on this kind of things.

Could You also give me your site url, and short information - is there anything unusual I need to do to place the order?
User avatar
Moderator

GK User
Tue Sep 24, 2013 11:18 pm
Cyberek wrote:PS - we mostly support problems related to our templates not additional elements we use (which have their own support). Ill try my best, but I cant spend to much time on this kind of things.

Could You also give me your site url, and short information - is there anything unusual I need to do to place the order?

Hi Cyberek,

I really appreciate you trying to help. You should have no problem using the site. I will send you username/pass and you would need to sign in. Just buy the product.
The problem is that the script is loading, but it's not tracking the conversion. The problem might be that it's not loading product info in the confirmation page.

I will PM you URL, user and pass.

Thank you so much.
User avatar
Gold Boarder

GK User
Wed Sep 25, 2013 6:39 am
Do You have any short documentation for using this code?
User avatar
Moderator


cron