Share via E-Mail
Share on Google Buzz
Share on Twitter
Share on Facebook
E-junkie Blog
E-junkie FaceBook Page
E-junkie @ Twitter

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

Google Analytics for Buy Now Button



Walkman101
member
Posts: 4


I use the buy now button for a single product purchase.
I use the Custom Thankyou/Proudct download page.
I have the analytics in the receipt page.

Here is where I am stuck:

Q: What are the variables to pass as

"order-id", // required
"affiliate or store name",
"total",
"tax",
"shipping",
"city",
"state",
"country"

in the pageTracker._addTrans part of the code.


*************************
Currently I use
"[%txn_id%]", // Order ID
"", // Affiliation
"[%mc_gross%]", // Total
"[%tax%]", // Tax
"[%shipping%]", // Shipping
"[%city%]", // City
"[%state%]", // State
"[%country_full%]" // Country

Only the "[%txn_id%]", // Order ID works.

The rest do not.

*******************
I have success with the AddItem pieces with this code)
pageTracker._addItem(
"[%txn_id%]", // Order ID
"[%item_number%]", // SKU
"[%item_name%]", // Product Name
" ", // Category
"[%sale_price%]", // Price
"[%quantity%]" // Quantity
);


#
POSTED ON: February 25, 2010 @ 21:51 GMT -7
MODIFIED ON: February 25, 2010 @ 21:59 GMT -7




E-JunkieMonster
E-Junkie Crew
Posts: 431


Is the Thank You page that you are using a redirected Thank You page on your own server, a common Thank You page on E-junkie or a product-specific Thank You page?

The variables you are trying to use would work on a common Thank You page on E-junkie with the exception of [%mc_gross%] but if you are redirecting your buyers to a page on your site or a product-specific page only the [%txn_id%] tag would work.

Please see the lists of applicable variables on the following two pages:
http://www.e-junkie.com/ej/help.custom.thankyou-page.htm
http://www.e-junkie.com/ej/help.redirection.htm


#
POSTED ON: February 26, 2010 @ 10:39 GMT -7




Walkman101
member
Posts: 4


I am using product-specific Thank You page that E-junkie creates for the product.

I put the analytics code ga.js in my site, and then again as laid out in the google analytics on-line help.

I see where variables convert properly, all execpt for

The following the pageTracker._addTrans part of the code.


*************************
Currently I use
"[%txn_id%]", // Order ID // works
"", // Affiliation // works.
"[%mc_gross%]", // Total
"[%tax%]", // Tax
"[%shipping%]", // Shipping
"[%city%]", // City
"[%state%]", // State
"[%country_full%]" // Country



If I understand you correctly, because I used a Product specific E-Junkie page with the Buy Now, only the transaction ID works, not the rest.

Did I get that right?


#
POSTED ON: February 26, 2010 @ 11:20 GMT -7




E-JunkieMonster
E-Junkie Crew
Posts: 431


Yes, but you should still be able to get the other variables you want to use from the Common Thank You page template, which would apply to all your orders. Was there another specific need to use a product specific Thank You page in your case?


#
POSTED ON: February 26, 2010 @ 14:03 GMT -7




Walkman101
member
Posts: 4


At the moment I sell

two distinctly different products,
thus two different website domains,
thus two different analytic codes.
thus two different buy now buttons

I am unaware of being able to combine the same analytic codes on two different websites, but if that is possible, I'm open to improving my tracking. . .


#
POSTED ON: February 27, 2010 @ 17:23 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3486


In that case, you would want to put your GA tracking code in the Message (HTML) field of each product's settings (rather than in the Common Thank-you Page HTML field). That way, the different sets of GA code will only be added to the thank-you page when their respective products are purchased.


#
POSTED ON: February 28, 2010 @ 19:14 GMT -7


You must be logged in to make a post. Please click here to login.

30 Day Money Back Guarantee
PayPal Certified Integration
Google Checkout Certified Integration
Slam the Online Scam