Analytics
2.2K members online now
2.2K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

How to implement the payment method tracking on the website?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello!

Here is the issue. We need to track the payment method which was operated by user during the transaction. The transaction funnel is:

Cart - Submission form (where the user may choose the payment method) - The page regards to the payment method (PayPal page, for instance) - Thank you page.

I think that the best solution here is custom variable. But where'd i implement the tracking code? Or may be you'll propose other solution for it?

Have a great day!

1 Expert replyverified_user

Re: How to implement the payment method tracking on the website?

Top Contributor
# 2
Top Contributor

Hi,

 

You can send the custom variable together with the ecommerce transaction data from your receipt page like:

 

ga('ecommerce:addTransaction', {
'id': '1234',
'revenue': '100',
'shipping': '10',
'payment-method': 'paypal'
});

Where "payment-method" is the custom variable you set up in GA.

Let me know if you have questions.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: How to implement the payment method tracking on the website?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi
Thanks for the response!
So i need to add this code to the "thank you" page. And what do i need to insert as value for 'payment-method' operator? I have a lot of payment methods so how can i make the only used one will be triggered?

Re: How to implement the payment method tracking on the website?

Top Contributor
# 4
Top Contributor
Hi,

My code snippet is just an example that shows how to modify the tracking code, it assumes that you have ecommerce tracking implemented.

https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#overview

You need server side coding in order to get the transaction values dynamically into the tracking code together with the payment method. Let me know if you have more questions.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

How to implement the payment method tracking on the website?

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hi  Arnold M,

 

How can I track payment methods my user/customer finished their ORDER

 

I need report like

how many users/customers completed their orders through netbanking? 

how many users/customers completed their orders through paypal?