Welcome Guest, Not a member yet? Register   Sign In
PayPal & Google Analytics
#1

[eluser]Richard Testani[/eluser]
Has anyone setup a Paypal/Google Analytics e-commerce tracking using the PayPal_lib?

I put my google analytics code into the Paypal controller since the IPN makes a request to that page.
I assume thats where all the tracking should take place.

But when I review my analytics no e-commerce tracking is taking place, not even a hit on paypal/ipn in the page views.

What am I doing wrong?
Thanks
Rich

(Yes I have e-commerce tracking turned on in google analytics)
#2

[eluser]Clooner[/eluser]
You have to put additional javascript into your html.

http://tinyurl.com/28jfges

Code:
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
_gaq.push(['_addTrans',
   '1234',           // order ID - required
   'Womens Apparel', // affiliation or store name
   '28.28',          // total - required
   '1.29',           // tax
   '15.00',          // shipping
   'San Jose',       // city
   'California',     // state or province
   'USA'             // country
]);
_gaq.push(['_addItem',
   '1234',           // order ID - necessary to associate item with transaction
   'DD44',           // SKU/code - required
   'T-Shirt',        // product name
   'Olive Medium',   // category or variation
   '11.99',          // unit price - required
   '1'               // quantity - required
]);
_gaq.push(['_trackTrans']);
#3

[eluser]Richard Testani[/eluser]
Yes, that code is setup in Paypal/ipn
If I am putting it in the right place, maybe something else is wrong.
But I am getting SUCCESS responses so the page is working.

I'll keep testing.
#4

[eluser]nearo[/eluser]
Hi Richard, did you ever get this working properly?




Theme © iAndrew 2016 - Forum software by © MyBB