Paypal payment and Google adwords conversion.

  • Posts: 344
  • Thank you received: 3
8 years 2 months ago #250299

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2

I have one case with Paypal payment and Google adwords conversion.

I have a google adwords conversion code which looks something like this:

<!-- Google Code -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxxxxxx;
var google_conversion_language = "xx";
var google_conversion_format = "x";
var google_conversion_label = "xxxxxxxxxxxx";
var google_conversion_value = <?php echo $this->element->prices[0]->price_value; ?>;
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/1008879972/?value=<?php echo $this->element->prices[0]->price_value; ?>&amp;label=dmuACJSH3R4Q5JKJ4QM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

I am using two type of payment.
Hikashop Stripe Payment Plugin
HikaShop Paypal payment plugin

I have placed the above google conversion code in a "thank you page" which is the Return url for both payment form.

But there is one problem with cutsomers using Paypal payment. Not all paying customers choose to return to my "thank you page" after making their payment.

And therefore I loose Google adwords conversions on these sales.

This is no problem with those who choose to pay with stripe, because they stay on my site and are automatically directed to the thank you page after payment.

Do you have any advice on this matter ?

If I enable the Hikashop Google Analytics Plugin, will this help me to solve this problem ?

Last edit: 8 years 2 months ago by river.

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #250310

Hi,

In the settings of your PayPal merchant account, there should be an option you can activate to automatically redirect customers to your website after the payment. So customers won't have to click on the return link to see your thank you page.

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
8 years 2 months ago #250444

Tnx for reply.

Yes I have enabled this function in my paypal merchant account. So all paypal paying customers are redirect to this page after payment.

But the case here is that those who pay with paypal (so called Paypal guest) without having an an paypal acount get a choice to either to retun to my store (get redirected to my thank you page with the google conversion code) or stay on the paypal page.

And those who choose to stay on the paypal I risc loosing an conversion (if they come from one of my Google ads)

Hope this makes sense.

Any advice on how to solve this ?

I know that Paypal sends and IPN message(or whatever its called) back to hikashop in order to change the order status to confirmed. Is there any way we can include the Google conversion code in this process ?

Tnx

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #250446

Yes I have enabled this function in my paypal merchant account.

Are you sure that we're talking about the same setting ?
I'm talking about the setting which forces the redirect of the customer to your website automatically after the payment. So there is no choice given to the customer in that case. And thus, this should not happen in that case:

But the case here is that those who pay with paypal (so called Paypal guest) without having an an paypal acount get a choice to either to retun to my store (get redirected to my thank you page with the google conversion code) or stay on the paypal page.

I would recommend to check on that with the support of PayPal.

The payment notification cannot be used to add the google conversion code. The payment notification is a server to server process. There is no javascript code that can be added there and even if you would, the javascript would be for the PayPal server, not for the customer itself so it wouldn't work like you want anyway.
That's why it has to be done on the thank you page.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum