checkout not tracking pay per click campaign

  • Posts: 165
  • Thank you received: 3
8 years 7 months ago #249354

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2

I have the analytics plugin enabled in hikashop and ecommerce in google analytics. However, once i get to the payment processor part of the checkout and beyond this step it cannot track where the traffic came from. Before the payment processor on the site it knows whether or not the traffic organic or pay per click. After this point and the point that it goes to the return url thank you page for the order it always shows the traffic as organic.

How do I fix/track this?

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

  • Posts: 83672
  • Thank you received: 13545
  • MODERATOR
8 years 7 months ago #249355

Hi,

I'm not familiar with GA traffic source system, but as I understand it, it's thanks to the ga.js javascript file that google track the users on the pages of your website.
However, when a payment is made, the payment gateway notifies HikaShop through a direct HTTP call and at that point HikaShop changes the order status of the order to "confirmed" and trigger the plugins to let them know of the change.
That's when the GA plugin is called and when it then do a direct HTTP call to GA to notify it of the payment.
So when that happens, the GA plugin can't be tracked by the javascript file like on the rest of the website since the HTTP request has been initiated by the payment gateway, not the user.
So that explains why you might lost that link in the process.
However, that's only with Universal Analytics and the direct call system.
In the normal mode of the plugin, it works differently:
When the user comes back on the website after the payment, the GA plugin adds javascript onto the thank you page to let GA know about the payment through the user browser. In that case, GA should be able to do the link.
That second method is however prone to misses since users might not go back to the website after the payment.

So maybe turning off UA or the direct call settings of the GA plugin might help. But maybe it would require adding some parameters somewhere in GA, but I don't know.

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

  • Posts: 165
  • Thank you received: 3
8 years 7 months ago #249467

That's when the GA plugin is called and when it then do a direct HTTP call to GA to notify it of the payment.
So when that happens, the GA plugin can't be tracked by the javascript file like on the rest of the website since the HTTP request has been initiated by the payment gateway, not the user.


Thanks for the response Is this not something you can modify in your google analytics plugin so that it does work that way? From what you are saying it sounds like the hikashop plugin needs to be changed so it does communicate with the user and not the payment gateway?


I don't believe there is any code that would need to be added as far as analytics code because the rest of the site has no problem tracking whether or not you are using pay per click. I use universal analytics across the entire site so I cannot turn off universal analytics.

I will try turning off direct call and let you know what I find out.. It does sound like to me the hikashop google analytics plugin needs to be modified. That is something everyone would want to be able to track their pay per click versus there organic orders.

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

  • Posts: 83672
  • Thank you received: 13545
  • MODERATOR
8 years 7 months ago #249469

Hi,

The GA plugin handle both modes. It depends on how you configured it.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum