Google Analytics Issue for Magento to PayPal - magento

So, having discovered that customers are not returning to our website after making their PayPal payments, our Google Analytics reports are wonky as the landing page (success.phtml) which generates the order completion history/goal is never achieved.
Is there a PayPal APi callback to Magento which can generate the correct Google Analytics data? Is there a way to generate GA code at the PayPal end?
Any pointers appreciated!
Thanks, Joe.

a better question for you is why are your customers not reaching the success.phtml?
Go to Website Payments under Profile on the PayPal website. Setup your return URL and enter the succes url there...
If your customers don't return because they close their browser before returning to the shop:
You could remove the script from success.phtml and add a serverside-call to GA using something like serversidegoogleanalytics but you'll have to implement this for all paymentmethods you are accepting... This serversidecall would be done in the success-action within the controller of the paypal module

Related

Magento marketplace with vendor payment

I'm using marketplace extension from magentoconnect in my store. This extension is really good and works exactly what i needed it to do but there is 1 particular requirement I need which it doesn't provide.
For vendors, I want payments of each product sale to go directly to vendor's account ( through their credit card etc which they need to add before their product becomes visible ) and commission amount ( some percentage which is set by marketplace through admin panel ) to go to site owner's account. I know there is paypal adaptive payment add-on available with this extension but I don't want to use paypal due to some reasons.
I have tried to create my own module which will gather vendor's payment method after their login and will verify it if their credentials are working or not. But i'm confused as to which approach should i use to get their order payment to go directly in vendor's account and commission in site owner's account right away.
Also, i want to use authorize.net to charge clients as stripe does not support a lot of countries.
Any help in right direction is very much appreciated. I need a solution as to how i can implement it. I can customize or create my own module if needed be for this particular case, but i need to know which is a better approach or what will be close to magento way of doing stuff.
Sorry for my bad english.
Thanks In Advance
Ab.M
Hi Regarding Paypal adaptive payment this thread will help https://www.paypal-community.com/t5/About-Payments/Adaptive-Payments-for-Magento-marketplace/td-p/968101
as authorize.net does not provide marketplace api like stripe or paypal provides so it wouldnt be possible in this way .
PS - we are not self promoting our plugin or product , as user asked the questions specifically about our product that why i have added extension link with images and screenshot

Google Ecommerce Tracking for Magento

I am having some difficulty in getting google's eCommerce tracking working consistently for Magento. I have set the UA code in the google api section of the admin and eCommerce tracking is switched on. When I go to the success page the code is there. Some orders are being sent but not all. I have installed google chromes analytics tester and the beacon is being sent. Take yesterdays orders for example, 1 from sagepay is in analytics however another sagepay order is not which rules out payment gateway. I have re-set the permissions on the success page and tidied up a couple of warnings in the console but nothing is working i'm pretty stumped.
I have also installed Jiraffe real-time analytics and am having the same problem with that tracking orders, it didn't track a single order yesterday but is tracking cart data fine.
Does anyone have any suggestions?
Thanks
First of all not every user who uses payment gateway is comming back to your success page as some of them are just leaving the transaction at thank you page on third party services - then you won't see such transaction in GA. Second of all not every user let you to track him (adblock is preventing its users to be tracked).As for now please just reply if you are sure that users got back to Magento's success page.To get a much better overview of yours customer behaviour I would recommend you to install this extension Fooman Google Analytics Plus and set up proper funnels (you'll find brief instruction at extensions page)
I would suggest that you check the formating of data passed to GA :
prices should be formated as "1200000.00" : no separator for thousands, dot as decimal separator, no currency
text values should be escaped properly quotes contained in them: 'That\s it'
The Fooman extension is a good start since the basic GA implementation in Magento is a shame of non sense, while not perfect.
Google tracking in Magento :
Open the Magento Admin area and navigate to System->Configuration->Sales->Google API.
Expand the Google Analytics section.
Pick the Yes option from the Enable drop-down menu. Enter the Google Analytics account number in the Account number field. Click on the Save Config button.
Thanks..!!

Payments in booking system

I am trying to figure out how I can use Paypal to process payments in a booking system I am building. I think Paypal has a very messy documentation, and I can't seem to get a good overview over what to do. Firstly, I'm from Norway, and it seems Paypal has some restrictions when it comes to what kind of solution I can choose. These two are the ones that seem in the right corner:
Website Payments Standard
Express Checkout
What I generally wants is to send the user to paypal. If the payment is confirmed, the user should be sent to a confirmation page. As I understand it, that won't be a problem. But how can my system know that the payment is okay? Is there any id being sent back and forth? The system needs to save some information about the payment in the database.
What solution should I choose?
And how can I associate the payment with the current booking?
Paypal sends response "Verified" for successful payments when you use ipn_url, using this response you can check if the payment is ok or not.
For more info pls check the link:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro
For Codeigniter you can use paypal library: this might be of help:
https://github.com/orderly/codeigniter-paypal-ipn

Magento Google checkout without leaving magento store

We want to use Google Checkout for our Magento store. Currently, when users clicks checkout button data is sent to Google site and the user can checkout there. We would like to make it do a silent post to Google site, that is we don't want our users to leave our site, it should look like all the processing is in our store.
This is possible in PayPal, but can it be done in Google Checkout too? Are there any examples of implementation?
If not, are there other online payment systems implemented in Magento besides the PayPal which can be used for checkout without leaving the store? I've heard something about AlertPay but I don't know much about it.
When the buyer clicks the Checkout button the shopping cart data is not necessarly sent directly to Google. It can be sent to a web service running on your site and further processed there. The service will use the Checkout API to post the cart to Google. Google will return a URL where your customer can complete the order, and you will redirect the customer to that URL. More info here:
http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API.html#server_to_server_technique
Regarding the final checkout step, the customer has to finish the order through Google - the customer's sensitive information such as login credentials, credit card info, is at Google and thus for security reasons he/she has to leave your website.
If you are selling digital content please have a look at Google In-App Payments. It offers a better in-app (in-site) experience:
http://code.google.com/apis/inapppayments/docs/index.html

Google Checkout - Force callback URL API post

I'm building a Magento cart and we set up Google Checkout and went live and unfortunately I was unaware of the 'API Callback URL' setting on the Google side and didn't have that filled in until now. So now we have a few orders that went through and I need to get them into my cart system so I'm wondering if there's a way to force post existing orders across to my system?
See this document for various ways to retrieve Googe Checkout notifications.
http://code.google.com/apis/checkout/developer/Google_Checkout_Beta_Polling_API.html
In your case try the Polling API or the Notification History API.

Resources