Skip to content

Transaction Data is only sent on bank transfer - No data sent on PayPal, etc #21

@fourgood

Description

@fourgood

Hey i am using Magento 1.7.1 and OneStepCheckout (http://www.cogzidel.com/one-step-checkout/)
First after i installed your TagManager Addon i was getting an error at checkout:

a:5:{i:0;s:54:"Die angeforderte Zahlungsmethode ist nicht verfügbar.";i:1;s:4495:"#0 /var/www/vhosts/web187.server18.campusspeicher.de/httpdocs/mage/app/code/core/Mage/Payment/Model/Info.php(88): Mage::throwException('Die angefordert...')

#1 /var/www/vhosts/web187.server18.campusspeicher.de/httpdocs/mage/app/code/community/CVM/GoogleTagManager/Block/Gtm.php(81): Mage_Payment_Model_Info->getMethodInstance()

#2 /var/www/vhosts/web187.server18.campusspeicher.de/httpdocs/mage/app/code/community/CVM/GoogleTagManager/Block/Gtm.php(44): CVM_GoogleTagManager_Block_Gtm->_getTransactionData()

#3 /var/www/vhosts/web187.server18.campusspeicher.de/httpdocs/mage/app/design/frontend/base/default/template/googletagmanager/gtm.phtml(15): CVM_GoogleTagManager_Block_Gtm->_getDataLayer()

Then i commented out line #76 in Info.php
//if (($sessionCustomer->isLoggedIn()) || (!$sessionCustomer->isLoggedIn() && Mage::app()->getRequest()->getActionName() != "success")) {

After this it worked like a charm when using bank transfer.

After a while i realized that, if the customer uses PayPal or CreditCard, NO data is being sent to my Analytics at all.

Do you have any hint why this is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions