Ecommerce data - Google Analytics

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
3 months 4 days ago #306630

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.2

Hi,

I can't get the e-commerce data working anymore. It has been working in the past, but for quite a while there's no more data transfered to google analytics.

As far as I can see all the parameters and setting are ok, see attached screenshots. The event snippet code is set on after_end.php and end.php.
The basic google analytics plugin is installed. The hikashop analytics plugin is activated and conifigured and still there's no data inserted in analytics.
The targets set in analytics are working fine and do show the orders (as the after_end page is defined as target).

Can't figure out what is wrong? Please advise, thanks.

Michel.

Attachments:

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

  • Posts: 66586
  • Thank you received: 9792
  • MODERATOR
3 months 3 days ago #306689

Hi,

The snippet of code in your screenshot is not correct. $this->order->product_id and $this->order->product_name do not exist and never did. And even for the other variables, the code is not correct. Instead of $this->order->order_full_price it should actually be <?php echo $this->order->order_full_price; ?>
So I don't think that this snippet of code is doing anything.
What you could do is activate the "Always use direct call (UA)" setting in the GA plugin. This can help in sending the sales data to GA as it then uses cURL to send it (make sure that cURL is activated on your hosting).
Also, we've made some improvements to the GA plugin in the 4.1.0 so updating could also help.

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
2 months 3 weeks ago #306900

Hi Nicolas,

I changed the code, activated the UA setting in the GA plugin and updated to 4.1. Waited for 2 days, but still no data is received in analytics.

If I use the tag assistant no errors are found it does fetch the google codes and productprice on the after_end/end page, but not the order_id. See screenshot.
Also in Firebug the conversioncode gives a 200 status. Can't figure out what's going wrong...

Attachments:
Last edit: 2 months 6 days ago by michelpouli. Reason: added screenshot

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
1 month 3 weeks ago #308075

Hello Nicolas,

Do you think you can help me out here? The e-commerce data's still not showing up in Google Analytics. As far as I can see all the plugins are configured like they should.

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
1 month 2 weeks ago #308256

Hello Nicolas,

I really need this e-commerce information now, so we can adjust our adwords campaigns. I did evertything you suggested, but analytics is still not receiving the orderdata. Maybe you can take a look in the backend?

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
1 month 1 week ago #308479

Hello?

We really need help with this e-commerce issue. There's no data received from Hikashop at all in Google analytics.

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

  • Posts: 23610
  • Thank you received: 3666
  • MODERATOR
1 month 1 week ago #308623

Hello,

With your screenshot we can see that you're not using "Direct call".
Since your order might not be in an order status triggering the Google Analytics JS ; we can't know if it would work.

I would recommend you to use the "Direct Call" so you will be sure that Google Analytics will be notified when the order is confirmed.
Afterwards, you should check your HikaShop order statuses, your test orders and also your payment method.
Please note that if you are confirming the order manually in the backend, the fact that you're not using "Direct Call" will reduce the chance to generate the GA event.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
1 month 5 days ago #308698

Hi Jerome,

Thanks for your reply. The direct call is actually activated, so this is not the answer to the problem (see screenshot).

Attachments:

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

  • Posts: 23610
  • Thank you received: 3666
  • MODERATOR
1 month 5 days ago #308703

Hello,

So, please provide details regarding the other part of my message :

Afterwards, you should check your HikaShop order statuses, your test orders and also your payment method.
Please note that if you are confirming the order manually in the backend, the fact that you're not using "Direct Call" will reduce the chance to generate the GA event.


Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
1 month 4 days ago #308744

Hi Jerome,

I'm not sure what you mean by that.

There is not a single order registered in analytics e-commerce. Not after any online payment method or confirming the order in the backend.
As I told in my previous answer the Direct Call method is already activated? Wich order statusses do trigger Google Analytics JS? I tought these are Paid and Shipped? That are the statusses orders have after a customer has paid or when the order has been send to the customer.

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

  • Posts: 23610
  • Thank you received: 3666
  • MODERATOR
1 month 2 days ago #308931

Hello,

Can you please provide your details regarding your HikaShop order statuses settings ?

When using the "single submission", the order will be sent to Analytics when the order invoice id will be created.
When not using the "single submission", the order will be sent to Analytics each time the order status is changed to "confirmed".

That is why we need details regarding your order statuses and the test orders you made.

Please note that the "debug mode" setting in the plugin will also activate some debug trace in your HikaShop payment log.


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
1 month 1 day ago #308948

Hi,

Sure here's the screenshot of the statuses.

Attachments:

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

  • Posts: 23610
  • Thank you received: 3666
  • MODERATOR
4 weeks 1 day ago #308973

That is why we need details regarding your order statuses and the test orders you made.


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
4 weeks 1 day ago #309013

Hi jerome,

Why do I need testorders? This is a live website, with actual orders that people pay for. So all the possible statuses are available in the backend orderpages. I'm not sure wich information you need? Here's a screensot of some orders with different statuses.

Attachments:

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

  • Posts: 2199
  • Thank you received: 293
  • MODERATOR
4 weeks 15 hours ago #309047

Hello,

From your screenshot and what Jerome told you, if in your Google Analytics option you had choose to not use the "single submission", it's normal that Google didn't receive anything, let's check together :

See your screenshot with my color borders :



If I look on your test order statuses screenshot, there no command with the "confirmed" statuses in your case, from this 2 solutions :
- You use the "Single submission"
OR
- You change your statuses configuration

If nothing solve the issue, second solution step :
- In your plugin Active your "Debug mode" option
- Let some order be passed or make some new test order
- Send us the "payment" log file to us via the contact us form

Note : Don't forget to add in your message an Url link to this topic.

Awaiting news from you
Regards

Last edit: 4 weeks 16 hours ago by Philip.

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

  • Posts: 293
  • Thank you received: 6
  • Hikashop Business
3 weeks 4 days ago #309177

Hi Philip,

Thank you for this explanation. I overlooked the column "confirmed", never changed that setting in years :). I have set this and will try some testorders to see if this is the solution.

The following user(s) said Thank You: Philip

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

Time to create page: 0.078 seconds
Powered by Kunena Forum