6 / 6
Feb 2010

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

);

  • created

    Feb '10
  • last reply

    Feb '10
  • 5

    replies

  • 1.0k

    views

  • 3

    users

  • 2

    links

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

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?

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?

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. . .

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.