VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: toad78 on October 08, 2013, 22:39:27 PM

Title: AdWords Tracking in Virtuemart 2
Post by: toad78 on October 08, 2013, 22:39:27 PM
There still doesn't seem to be a firm answer to this topic (http://forum.virtuemart.net/index.php?topic=106993.msg383446#msg383446) as I am still trying to figure out how to do the same thing. What I need done is for the Conversion code to activate AFTER a purchase has been made. Meaning, after the user has already paid for their product in the payment gateway (PayPal Legacy in this case) and then come back to the Order Done page where the Conversion code would be located.

Trying a series of methods has leaded to a bunch of errors.

Does anyone have any solid leads on how this can be implemented? 
   
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = XXXXXX;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "XXXXXX";
var google_conversion_value = 0;
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/XXXXXX/?value=0&amp;label=XXXXXX&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

On top of that, I would like to add my own 'Thank You' message rather than the bland message posted.

Any ideas?
Title: Re: AdWords Tracking in Virtuemart 2
Post by: ssc3 on October 09, 2013, 16:03:42 PM
The latest version of the PayPal Express Checkout Plugin 1.0.20,

has an option for editing the HTML code of the header and footer of the final receipt page including adding Javascript.

Also if you set the option

"Do buyers review and confirm their purchases on PayPal or on your website?" to PayPal

The checkout process can be made similar to standard.

http://forum.virtuemart.net/index.php?topic=104184.0
Title: Re: AdWords Tracking in Virtuemart 2
Post by: toad78 on October 09, 2013, 16:08:28 PM
I cannot use your plugin because the customer does not have a Pro account. Just the Basic.

Is there no way to modify the default PayPal plugin?
Title: Re: AdWords Tracking in Virtuemart 2
Post by: ssc3 on October 09, 2013, 16:32:20 PM
This is the PayPal Express Checkout Plugin.

All basic PayPal accounts will work with it.

All you require are the API details from your customers account

and that will connect the plugin to PayPal.
Title: Re: AdWords Tracking in Virtuemart 2
Post by: toad78 on October 09, 2013, 22:24:23 PM
I have not been able to successfully test this plugin as for some reason the Sandbox acct. isn't working. But I'm hoping that your plugin will assist in what we're trying to accomplish.

Thank you.
Title: Re: AdWords Tracking in Virtuemart 2
Post by: Maxim Pishnyak on October 11, 2013, 18:22:52 PM
Did you check related to your question threads on forum? Keep looking on them after you will find them. Forum members could provide their web sites for solving this task by forum stuff.