It would be nice to have some kind of debug-mode,
where one could see a log of the requests generated and the responses from google.

Maybe a checkbox to turn on/off logging, similar to the "show form-id's" feature.

This would help to see if things are set up correctly.
Normal tracking can be seen working in google Analytics very easily via the realtime tracking.
But it takes days sometimes until ecommerce tracking is visible. That's where such a log would help.
Also to debug details like correct currency setup would be a lot easyer.

Or, maybe there's already an easy way to do the debugging that i want to do?
Some issues mention debugging, but it's nowhere described in detail.

Comments

gedur’s picture

Good idea! I've added a commit to dev branch writting in watchdog the request and the response information. It's a little tricky as we need to store array data values.

  • GeduR committed b7817c7 on 7.x-1.x
    Issue #2453797 by GeduR: Add debug mode
    
gedur’s picture

Version: 7.x-1.1-beta1 » 8.x-1.x-dev
Status: Active » Patch (to be ported)
eduardo morales alberti’s picture

StatusFileSize
new2.66 KB

Patch added ported to drupal 8 version.

eduardo morales alberti’s picture

Status: Patch (to be ported) » Needs review

Status: Needs review » Needs work

The last submitted patch, 4: ga_push-add_debug_mode-2453797-4-8.x.patch, failed testing. View results

eduardo morales alberti’s picture

Status: Needs work » Needs review
StatusFileSize
new1.7 KB
new2.94 KB

Added headers to response debug and added use response interface.

gedur’s picture

Status: Needs review » Fixed

Thanks

eduardo morales alberti’s picture

Status: Needs review » Fixed

Patch commited, issue fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.