Page 7 of 11 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 108
  1. #61
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by bonheddwr View Post
    PS, I don't know if this could be the issue, but we use worldpay and paypal for payments.
    The URL people arrive at after paying for an order using Worldpay is similar to this. Even though it is our website that appears, the URL is actually secure.worldpay.com . Could this be an issue as to why the orders aren't being recorded?
    I'll probably follow this (and your previous post) up with more detail sometime tomorrow (it is after 3am here), but meanwhile I will say that this is a possibility... but only because I know nothing about the worldpay module or how it interacts with the "normal" zencart checkout process.

    The ec module & Paypal work fine together, but I'm thinking that if it is only some of the transactions not being recorded could it be that those are the ones being paid for via worldpay?

    If that is the case it would imply that the worldpay module is bypassing the code that contains the checkout_success notifier that trigger the ec module to send the data to google... or perhaps it is bypassing a pre checkout notifier that the module uses to obtain the data to be sent.

    ... or perhaps not.

    It would/could be really helpful if you could confirm (or refute) this possibility though... IOW, I'm asking is it the PP transactions being recorded and the worldpay ones not? or is it more random than that?

    Cheers
    Rod

  2. #62
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Google Ecommerce Tracking

    Note: on success, a payment module should redirect to the checkout_success page. This is true even for hacky integrations like the 3rd-party worldpay contribution.
    It's not uncommon for some offsite payment gateways to come back to the store with "their" URL showing in the browser, until the module moves from checkout_process (invisibly) to checkout_success. In other words, it could be the Worldpay module that's not doing all it needs to do in order to be compatible with how other plugins expect things to work post-checkout.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #63
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by bonheddwr View Post
    my Google Analytics layout looks slightly different to yours,
    Does it look more like my screenshot now that you have the "Enabled Enhanced Ecommerce Reporting" set to 'On'?


    Anyway, I think we could be on the right track with the assumption that it could be the worldpay module. I've just downloaded this module and after a quick look at the files I noted that it has its own 'checkout_success' php file, but rather than using the default/standard zencart notifier (NOTIFY_HEADER_START_CHECKOUT_SUCCESS) it has its own one defined,

    $zco_notifier->notify('NOTIFY_HEADER_START_WP_CHECKOUT_SUCCESS');

    This means that the ec module is never going to be notified about a successful checkout, therefore, no analytics sales data will be recorded.

    Although there are several methods that can be used to rectify the problem I think the 'safest' one one would be to load the file
    /includes/classes/observers/class.ec_analytics.php into a text editor.

    Find the line that reads

    'NOTIFY_HEADER_START_CHECKOUT_SUCCESS',

    Then add a line just below it that reads
    'NOTIFY_HEADER_START_WP_CHECKOUT_SUCCESS',

    Then scroll down and find the line that reads
    case 'NOTIFY_HEADER_START_CHECKOUT_SUCCESS' ;

    Then add another line just below this that reads
    case 'NOTIFY_HEADER_START_WP_CHECKOUT_SUCCESS' ;


    Now, having said that, the *easiest* solution would probably be to
    load the file /includes/modules/wp_checkout_success.php into a text editor then *either* change the line that reads
    $zco_notifier->notify('NOTIFY_HEADER_START_WP_CHECKOUT_SUCCESS');
    to
    $zco_notifier->notify('NOTIFY_HEADER_START_CHECKOUT_SUCCESS');

    OR, simply add this change as a new line/notifier, so the code reads

    $zco_notifier->notify('NOTIFY_HEADER_START_WP_CHECKOUT_SUCCESS');
    $zco_notifier->notify('NOTIFY_HEADER_START_CHECKOUT_SUCCESS');

    Either of these options *may* have unexpected side effects though. I've not delved deep enough into the code to may a valid judgement call here.

    Cheers
    Rod

  4. #64
    Join Date
    Jun 2007
    Location
    Cymru
    Posts
    124
    Plugin Contributions
    0

    Default Re: Google Ecommerce Tracking

    Thank you very much for your help. I've tried the option below. I was going to try your 1st option, but I couldn't find the following line in the file
    Code:
    case 'NOTIFY_HEADER_START_CHECKOUT_SUCCESS' ;
    . There was a similar line, but not exactly the same.

    Quote Originally Posted by RodG View Post
    OR, simply add this change as a new line/notifier, so the code reads

    $zco_notifier->notify('NOTIFY_HEADER_START_WP_CHECKOUT_SUCCESS');
    $zco_notifier->notify('NOTIFY_HEADER_START_CHECKOUT_SUCCESS');
    Unfortunately it doesn't seem that ours is a worldpay only issue. Please see the following image. In the last 6 days only two orders have been recorded in analytics. Both are Paypal ones, but as you will see there are other paypal ones that have not been recorded.

    Name:  image.jpg
Views: 463
Size:  33.2 KB

  5. #65
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by bonheddwr View Post
    Thank you very much for your help. I've tried the option below. I was going to try your 1st option, but I couldn't find the following line in the file
    Code:
    case 'NOTIFY_HEADER_START_CHECKOUT_SUCCESS' ;
    . There was a similar line, but not exactly the same.
    There would only be one line of code like this (with a 'case' and a ' NOTIFY_HEADER_START_CHECKOUT_SUCCESS' - so that would've been (is) the right place to add the new line

    Quote Originally Posted by bonheddwr View Post
    Unfortunately it doesn't seem that ours is a worldpay only issue. Please see the following image. In the last 6 days only two orders have been recorded in analytics. Both are Paypal ones, but as you will see there are other paypal ones that have not been recorded.
    You are correct, in that it no longer seems to be a WorldPay only issue - But, thanks to your screenshot, I'm now thinking that you actually have two different issues.

    If this were a systemic problem, the fact than 2 of the 6 PayPal transactions were recorded, would suggest that there *should* also have been ~4 of the 12 worldpay transactions recorded - You have *none*. So, I think I/we are still on the right path with these, and you should continue with this approach until you can at least get *some* of the Worldpay ones to show (even if it is just one).

    The next step would then be to try to figure out why only *some* transactions are being recorded (regardless of payment method).

    The fact that there are more transactions that fail to be recorded than those that succeed could be a clue in itself - Now, I could be *way* off the mark here - but I couldn't help but notice *most* of your product names *appear* to be like
    "name dash number"

    *Perhaps* the 'dash' is a minus symbol and *something* (the ec module or the Google analytics server) is seeing this as being a mathematical formula rather than as a text string?
    Another *perhaps* is that the 'dash' isn't always what it appears - and is possibly some weird UTF8 character that needs to be 'escaped'.

    The point/thing here is that if we only look at the PayPal transactions - Two of the six worked - What is it about these two that is *different* from the others - Could it be that these two just happen to be products with the 'dash number' in their names?

    Can you see anything else that would differentiate the 2 successful recordings from the 4 failed ones?

    Anyway, I still think the 1st step is to get the worldpay transactions to be recorded, because it look like this is how most of your customers are paying, and when this is working we will then have a much bigger data pool in which we can try to find the 'some do, dome don't) differences.

    Basically, I feel that you currently have two unrelated problems.

    Cheers
    Rod

  6. #66
    Join Date
    Jun 2007
    Location
    Cymru
    Posts
    124
    Plugin Contributions
    0

    Default Re: Google Ecommerce Tracking

    Thanks for all of your help above Rod. You were correct, we had two unrelated issue.

    1, For some reason your easy to install plugin didn't work for us. It may be because oure site has been modified quite a bit. Some Paypal transactions were showing in Google Analytics, but not all, and I couldn't fugure out why! I have now installed a different plugin (Easy Google Analytics). It was harder to install than yours, but it seems to be working and recording all paypal transactions.

    2, Worldpay!! I've done quite a bit of research, and from what I have found out Worldpay isn't compatible with Google analytics, no matter what plugin is used, or how you install the google analytics code on your site. This makes no sense whatsoever to me, but it seems that currently it's impossible to track trasnactions via Google Analytics if using Worldpay. :/ More info here - https://adigital.agency/blog/google-...ayment-gateway

    Thanks again Rod for your help.
    Last edited by bonheddwr; 15 Aug 2017 at 03:49 PM.

  7. #67
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    1. You claim that the ec_commerce module didn't work, yet you showed screenshots to show that it did, at least some of the time, so that would negate your theory about site modification would be the cause.

    2. The blogpost about worldpay is utter BS. Well, it may be true for some systems/modules, but it certainly isn't going to be true for zencart and the ec_commerce module. The ec_commerce module stores the needed data into a session variable before the payment module(s) come into play, and as long as the checkout success notifier is triggered after payment has been made the prestored session data will be sent to google analytics. There is no way that worldpay can prevent this ... you just need to add the $zco notifier into the code that is loaded when worldpay returns back to zencart.

    IOW, you do still have two separate problems... one which you have mitigated with a different analytics module (I would have preferred you worked with me on this in order to help others that may have the same issue). The other issue (wordpay) you have chosen to just ignore because some blogpost that has nothing to do with zencart tells you that it doesnt work. I find that a little sad considering that your screenshot shows that most of your sales are paid for with worldpay.

    Oh well..

  8. #68
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    Worldpay ec tracking Can be done... one solution is mentioned here ....https://stackoverflow.com/questions/...-with-worldpay ..... but you dont need the "thank you" page because the zencart notifier (when added/triggered) will call the ec_commerce script to complete the tracking/logging.

  9. #69
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    ps. I think you must have found the only page/blog on the internet that claims worldpay cant be tracked with google analytics. I easily found that this has been "solved" by numerous ecommerce systems. :)

  10. #70

    Default Re: Google Ecommerce Tracking with Adwords-Google Tag Manager

    I've been using easy analytics and adwords in zencart 1.5.4. Lots of warnings with this module about running additional analytics code and I understand why about messing up data (been there done that trying to get done with easy analytics - no success).

    Looking to use adwords and tag manager and get setup right.
    Anyone successfully implemented this? working on this? or should I not attempt this with this module due to its design?

    (I am fully aware it will greatly mess up your data if not done correctly)

    Thanks for any help in setting this up.

 

 
Page 7 of 11 FirstFirst ... 56789 ... LastLast

Similar Threads

  1. Replies: 6
    Last Post: 3 Oct 2013, 10:36 PM
  2. Ecommerce Tracking code for Google Analytics
    By Endre in forum General Questions
    Replies: 7
    Last Post: 14 Nov 2012, 03:20 PM
  3. MailChimp Ecommerce MC360 tracking?
    By irishshopper in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Oct 2010, 11:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR