FYI PHP Fiddle is a very helpful tool for testing changes.. http://phpfiddle.org/
FYI PHP Fiddle is a very helpful tool for testing changes.. http://phpfiddle.org/
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
I have setup the checkout labelling funnel steps as follows:
1) Start Login
2) Login Success
3) Checkout Begin (FEC/COWOA)
4) Start Payment
5) Checkout Confirmation
We are using FEC. We are also using the feature of FEC that skips the confirmation page. So the customers enter payment, shipping, etc. in the one page checkout, click Confirm Order, and then are sent to the Checkout Success page. There is no order confirmation page. Do I need to make any adjustments to the steps above?
Thank you!
Danielle
No. Those steps are just fine. However, I will suggest that you are actually doing this a little backwards.
The reason being is that depending on the store setup (FEC, Standard checkout, PayPal/PayPal Express checkout, etc, etc) the *actual* steps being sent to Google analytics may/will vary from store to store.
So, since the *exact* steps are unknown, the *best* option (at least in my opinion) is to leave the Google settings at their defaults (step 1, step 2, step 3, etc) and let it accumulate the data from whatever is being sent to it from your particular store.
After a period of time (eg: A few hundred sales), the Analytics will show you enough data to clearly identify (for example) Step#1 equated to the 'Start Login' trigger, and that step#2 equates to the login success trigger, and that step#3 hasn't recorded any data (indicating that the confirmation page doesn't exist), and so forth.
Now, having said that, the module 'out of the box' is 'aware' of the different behaviour between a standard zencart checkout and the FEC checkout, so the Google servers will never 'see' the steps that are being skipped.
Anyway, the point I'm trying to make is that the data being sent to the GA servers needs to be determined first, and the 'Labels' that you give these events come afterwards - They are 'cosmetic' only. IOW, in a few months time you may get tired of seeing the the report heading of "Checkout Confirmation", in which case you can just go back to the steps editor and change Step#5 to read 'Order Confirmed'.
The graphed data won't change - Only the text itself.
If you wish to log more (or less) steps this will need some code editing of the module itself - BUT, this is also something that needs to be considered *early* in the game - If you start adding/removing steps after data has been accumulated things can be a real mess, existing data will be mapped to the 'new' step numbers so what was once correctly reported as step1 (login success) could now appear as being 'login start' if 'login start' was a new step#2 entry, making the original step#2 the new step#3 - etc...
There is no way to delete (or resync) existing/old data - other than deleting the account and restarting it afresh.
Cheers
RodG
We are experiencing an issue where two different tax amounts are getting logged. It seems to be adding WA state sales tax of 9.8 % to the “Product Revenue” based on the product price rather than Product Price + Shipping * sales tax….Which is Incorrect for us.
GA Sales Performance transaction report shows:
Revenue: $1,134.51 - Correct
Tax: $ 101.26 - Correct
Shipping: $ 35.26 - Correct
However, when you drilldown to the product it shows:
“Product Revenue: $1,095.80” - WRONG
The ACTUAL product revenue/price is $ 998.00
a) 998*9.8% = 97.804 + 998.00 = $ 1,095.80 – This is product revenue/price * sales tax and added together
b) 998 + 35.26 * 9.8% =101.26 +1033.26 = $ 1,134.51 – This is product revenue/price + shipping * sales tax and then added together
I didn’t see anyone in this thread having this issue, can you point me in the right direction if you are aware of this issue. OR point me to the correct line in class.ec_analytics.php to change how this is calculating tax and adding it to product revenue. Hopefully I explained this well enough.
Thank you in advance
NEVERMIND... I found where the tax was being added to the product price and removed it. Works correctly for us now.
Well, I thought changes we applied fixed the transaction dropping however, it randomly failed to log another transaction after applying the fixes in this thread.
Last edited by rockwater; 6 Jun 2016 at 10:25 PM.
So is this an issue with this module?? If so care to share your solution?
Well you are going to need to provide more detail than this if you are trying to get community support/help. (see the details I provided when I too had an issue with dropped transactions so you can see what kinds of data you should provide)
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
This is what I changed to make the module calc the tax correctly for us. Remember in my previous posting I stated that in WA state tax is charged on shipping. This module was sending tax calculated on the product price and then adding it the product price, AND sending the tax value calculated from the cart which in our case is Product + Shipping X tax. So the solution is to remove the tax calc inside the module.
Line 102: . " 'price': '".number_format((float)($item['price'] + ($item['price'] * $item['tax_class_id'] / 100 )) ,6,'.','')."',"
Change to : . " 'price': '".number_format((float)($item['price']) ,6,'.','')."',"
Line 240: . " 'price': '".number_format($items_in_cart->fields['final_price'] + ($items_in_cart->fields['final_price'] * $items_in_cart->fields['products_tax'] / 100 ),6,'.','')."',"
Change to: . " 'price': '".number_format($items_in_cart->fields['final_price'],6,'.','')."',"
Hi
Just curious, installed this mod yesterday. In the analytics.google.com report under under "All Web site data"/Channels/default channel grouping/Referrals there are a couple of sessions today for paypal.com.
Nobody bought anything via paypal (or failed to purchase) so why/how would paypal be referring potential customers to my site?
Bookmarks