fransjaeger Posted January 7, 2016 Share Posted January 7, 2016 Hi i spent some days trying to get GA tracking working on 1.6.0.9 after much debugging i found out that the reason i didnt have any transactions was that i made a small mistake in a override i override OrderConfirmationController::initContent()i use to public function initContent(){parent::initContent(); $this->context->smarty->assign(array('is_guest' => $this->context->customer->is_guest,'HOOK_ORDER_CONFIRMATION' => $this->displayOrderConfirmation(),'HOOK_PAYMENT_RETURN' => $this->displayPaymentReturn()));....} and now I changed to public function initContent(){FrontController::initContent(); $this->context->smarty->assign(array('is_guest' => $this->context->customer->is_guest,'HOOK_ORDER_CONFIRMATION' => $this->displayOrderConfirmation(),'HOOK_PAYMENT_RETURN' => $this->displayPaymentReturn()));....} $this->displayOrderConfirmation() should only be triggered once and ganalytics module was triggered twice. the second time sending back no value. hence nothing happened. Conclusion - be carefull when overriding to do it correctly https://github.com/PrestaShop/ganalytics/issues/88 I also experienced som problems with this module when I turned on minify and compress and move JS to bottom. but i managed to fix them as well. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now