Comments (15)
?????
----- Original Message -----
From: joeszeto
To: PrestaShop/ganalytics
Sent: Thursday, November 03, 2016 4:23 AM
Subject: [PrestaShop/ganalytics] About the bug in google analytics version 2.3.4: (#104)
Please follow it for the future version too
About the bug in google analytics version 2.3.4:
Problem 1 (fixed):
Payment error wrongly send to the google analytics as a successful case.
Modules:
modules/ganalytics/ganalytics.php
Situation:
Payment error should not send to the google analytics, since it has a checking code when buyers click the “pay” in payment side. After the checking, the data which insert to the database table “ps_ganalytics” will send to google analytics. And the first time checking, payment error can be correctly rejected to insert to the database table “ps_ganalytics”
Problem:
In some special case, payment error also insert to the database table “ps_ganalytics”. It leads google analytics show the wrong information.
For example, I have a payment error record in 10:00am and this record is correctly showed in the admin url > orders > orders. This record does not insert to the database table “ps_ganalytics”, everything is still fine.
However, once our employees who view the record in the admin url > orders > orders, and click the “View” for more details in this payment error at 5:00pm.
The module of ganalytics will be double checked the record to send to google analytics or not, if not, module will send again.
Line716:
if ($this->context->controller->controller_name == 'AdminOrders')
{
if (Tools::getValue('id_order'))
{
$order = new Order((int)Tools::getValue('id_order'));
if (Validate::isLoadedObject($order) && strtotime('+1 day', strtotime($order->date_add)) > time()) {
$ga_order_sent = Db::getInstance()->getValue('SELECT id_order FROM '.DB_PREFIX.'ganalytics WHERE id_order = '.(int)Tools::getValue('id_order'));
As you see, the red font is line716.
Here will not check the record which is payment error or not.
Then this error record will insert to the database table “ps_ganalytics” and the time is 5:00pm.
Finally, it means that if our employees check the reason of payment in admin url, this record will also be sent to google analytics as a successful case.
Solution:
Edit the line 716 to check payment error:
if (Validate::isLoadedObject($order) && strtotime('+1 day', strtotime($order->date_add)) > time() && $order->getCurrentState() != (int)Configuration::get('PS_OS_ERROR')) {
Problem 2 (not fixed):
Some of payment record missing by double orders references.
Situation:
Since some product are special cases, they are limited in some regions.
For the shipping of these products, they have specialized shipping method.
However, some buyers may buy more than one products which include special products and normal products. It will become a two shipping for this payment.
For this case, prestashop will combine two shipping cost as one order.
For the admin url > orders > orders, this payment record will become two different orders but same order reference.
For the modules of ganalytics.php, it will only insert one order reference record and ignore another one to the database table “ps_ganalytics”.
In the end, google analytics will miss some payment record.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from ganalytics.
The bug found in ganalytics.
I need you to update it for future version....or this bug will appear again.
from ganalytics.
I would like to explain to me how to do it since I'm not an expert. Thank you
----- Original Message -----
From: joeszeto
To: PrestaShop/ganalytics
Cc: sweetyandlatina ; Comment
Sent: Thursday, November 03, 2016 8:38 AM
Subject: Re: [PrestaShop/ganalytics] About the bug in google analytics version 2.3.4: (#104)
The bug found in ganalytics.
I need you to update it for future version....or this bug will appear again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from ganalytics.
Modules:
modules/ganalytics/ganalytics.php
Edit the line 716 to check payment error:
if (Validate::isLoadedObject($order) && strtotime('+1 day', strtotime($order->date_add)) > time() && $order->getCurrentState() != (int)Configuration::get('PS_OS_ERROR')) {
from ganalytics.
I mean, I am not developed or programmer, so I is not easy to fix this. To accomplish this, I have to use the filezilla and look for a folder in specific? or where I come in to make the change, if it came to cheer. Thank you
----- Original Message -----
From: joeszeto
To: PrestaShop/ganalytics
Cc: sweetyandlatina ; Comment
Sent: Thursday, November 03, 2016 10:13 AM
Subject: Re: [PrestaShop/ganalytics] About the bug in google analytics version 2.3.4: (#104)
Modules:
modules/ganalytics/ganalytics.php
Edit the line 716 to check payment error:
if (Validate::isLoadedObject($order) && strtotime('+1 day', strtotime($order->date_add)) > time() && $order->getCurrentState() != (int)Configuration::get('PS_OS_ERROR')) {
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from ganalytics.
I reported this bug to the developer of ganalytics from prestashop addon.
and He told me to send this problem here.
And now, who is the developer of ganalytics???
from ganalytics.
I have no idea of this. Not what I have to do, only I have a prestashop store that charge alone, I register in google tools and in some cases complete settings because not as done.
If you want to know something, clearer or question an easy way for you to understand you because they are not bug or anything that you write me.
----- Original Message -----
From: joeszeto
To: PrestaShop/ganalytics
Cc: sweetyandlatina ; Comment
Sent: Thursday, November 03, 2016 11:48 AM
Subject: Re: [PrestaShop/ganalytics] About the bug in google analytics version 2.3.4: (#104)
I reported this bug to the developer of ganalytics from prestashop addon.
and He told me to send this problem here.
And now, who is the developer of ganalytics???
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from ganalytics.
First of all, payment error send to the google analytics as successful case, this is not a bug?
Then, all I want that if this Ganalytics module update the version, i dont need to fix this problem again.
from ganalytics.
I think already, I went to gAnalytics module and update, if that, and this
----- Original Message -----
From: joeszeto
To: PrestaShop/ganalytics
Cc: sweetyandlatina ; Comment
Sent: Thursday, November 03, 2016 12:55 PM
Subject: Re: [PrestaShop/ganalytics] About the bug in google analytics version 2.3.4: (#104)
First of all, payment error send to the google analytics as successful case, this is not a bug?
Then, all I want that if this Ganalytics module update the version, i dont need to fix this problem again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from ganalytics.
#sweetyandlatina
Are you the developer of gAnalytics module?
from ganalytics.
What do you mean a developer. I told you in a previous post, I have only one store and set following the steps indicated google. Not if I did well or if it works properly.
----- Original Message -----
From: joeszeto
To: PrestaShop/ganalytics
Cc: sweetyandlatina ; Comment
Sent: Friday, November 04, 2016 4:12 AM
Subject: Re: [PrestaShop/ganalytics] About the bug in google analytics version 2.3.4: (#104)
#sweetyandlatina
Are you the developer of gAnalytics module?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from ganalytics.
Well, All my problem is, I found a bug, and I fixed it.
But if this module update, will this bug appear again?
or do you have any solution?
from ganalytics.
Thanks for solving, the truth is that I have no solution because I do not understand what to do, I am not an expert and as I told you in my last mail, I only have one store to sell my products that, maybe, does not work full since I do not know If I have missed doing something. Yesterday I updated the new version, I hope I have not done something that has complicated your arrangement.
----- Original Message -----
From: joeszeto
To: PrestaShop/ganalytics
Cc: sweetyandlatina ; Comment
Sent: Friday, November 11, 2016 4:11 AM
Subject: Re: [PrestaShop/ganalytics] About the bug in google analytics version 2.3.4: (#104)
Well, All my problem is, I found a bug, and I fixed it.
But if this module update, will this bug appear again?
or do you have any solution?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from ganalytics.
does this problem still exists?
from ganalytics.
from ganalytics.
Related Issues (20)
- Czech characters at products in GA reports with strange strings
- Dynamic ads feed + remarketing
- Capture successful order HOT 2
- Price format and json encoded texts? HOT 1
- error 500 when in product name there is | (pipe)
- ERROR 500 adding to cart HOT 1
- Error 500 at ajax cart update HOT 4
- 1.7.5 HOT 1
- No Data (at all) HOT 1
- PHP Error id_product and Name and Category
- SQL error when adding to card
- Uncaught ReferenceError: jQuery is not defined at ordine:2354
- Error on large category pages with over 100 products "No HTTP Response" HOT 2
- Enhanced ecommerce steps no longer working HOT 3
- Old orders are sent to Google Analytics if module is not installed from start HOT 4
- anonymizeIp Feature HOT 1
- Hard to read products name with jsonEncode HOT 5
- had to reinstall to fix issues + questions
- no http response HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ganalytics.