We have a site where sometimes when an order is made, it isn't pushed to google analytics (we're using the google api and the store id etc is correct as some orders get pushed)

The only thing I notice is that the orders that aren't pushed to analytics also have no order email sent but I have absolutely no idea what would cause this.

I've looked at:

payment method

store view used

time of day (maybe cron?)


customer group,

customer sign up date

guest or customer (can't be the issue as we don't allow guest checkout).

The issue happens on a variation of all of these parameters - there isn't anything connecting the orders that aren't pushed into analytics, apart from the fact the order emails aren't sent and I can't understand why they wouldn't be sent, I've put in test orders and used non existent emails, emails that are spelt wrong (that couldn't exist) etc etc and for ME the order email is ALWAYS sent.

Is there any reason some order emails won't send and would this affect analytics?

  • What are the payment gateways that you're using? Are you redirected offsite? – Paul Aug 1 '17 at 9:22
  • paypal and pro forma are the two payment methods, I'm not sure if the issue happens on paypal but I ruled out payment method as it sometimes happens on pro forma and sometimes not so it can't be caused by pro forma? I can't find any orders where the issue has occured via paypal but that doesn't mean it doesn't happen via paypal. – seanyt123 Aug 1 '17 at 9:24
  • It could be two things. If the customer is taken offsite to complete the payment method, they may not be coming back to the success page. Alternatively the customer may have JavaScript tracking turned off which can block analytics. You could try something like hotjar.com to track the sessions and see what they're doing. – Paul Aug 1 '17 at 9:28
  • but would javascript tracking being turned off block the email as well? I was under the impression the email was queued as part of the php that ran when an order was submitted – seanyt123 Aug 1 '17 at 9:30
  • also you can't get anywhere with javascript disabled, the site gives you an error telling you off for trying to use an e-commerce site without javascript on – seanyt123 Aug 1 '17 at 9:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.