9 / 9
Mar 2014

I'm wondering if there is any way to obtain more information on a transaction when it is passed to the generated common thank-you page. When I look through the source code of a thank-you page for a transaction I see the following javascript generated by the page:



<script type='text/javascript'>

EJTHNK_item_array[0]=new Array();

EJTHNK_item_array[0]['item_number']='AG316G2130U2K';

EJTHNK_item_array[0]['item_price']='218.99';

EJTHNK_item_array[0]['quantity']='1';

</script>



I am using this code later on in my common thank-you page so that I can pass information to the Ecommerce tracking in Google Analytics. However, Google Analytics has fields for both Item Name, and Item SKU (which I have set up as item_number currently), but the javascript above is not giving me an Item Name. Is there any way to get this?

  • created

    Feb '14
  • last reply

    Mar '14
  • 8

    replies

  • 1.6k

    views

  • 3

    users

  • 2

    links

Actually, if you use our version of the GA tracking code, that will not only add the ability to track cart button clicks, but thank-you pages we generate for you will automatically include Ecommerce Tracking data for GA to pick up, when we detect a tracking cookie in the buyer's browser was set by our version of the GA code:

1http://www.e-junkie.com/ej/help.tracking.htm1



Note that if you use our version of the GA code, you must use that version everywhere on your site -- i.e., do not mix-match our GA code with Google's code on the same page nor across different pages.

E-junkieGuruActually, if you use our version of the GA tracking code, that will not only add the ability to track cart button clicks, but thank-you pages we generate for you will automatically include Ecommerce Tracking data for GA to pick up, when we detect a tracking cookie in the buyer's browser was set by our version of the GA code:

http://www.e-junkie.com/ej/help.tracking.htm



Note that if you use our version of the GA code, you must use that version everywhere on your site -- i.e., do not mix-match our GA code with Google's code on the same page nor across different pages.





I have tried implementing your GA code and now nothing is showing up in my Ecommerce Overview page. The directions are a little unclear though. Does the segment of GA code not need to be placed in the Common Thank-You Page HTML? That is where I had my own version of the tracking code and it was sending transaction data but your code gives me nothing.

If you are using our code use it only on your website itself, do not use it in your Common Thank You Page HTML. We will automatically take care of the necessary code on the thank you pages, if you have some of your own code there it might be interfering with the tracking process.

Can I add the GA tracking code to a navigator that is included on every page of my site, which has a view cart button on it. Or do I need to include it on every page individually?

Yes, you can put your View Cart code and GA tracking code in a common template area (e.g., header, footer, sidebar, navigation bar) that gets inserted in every page of your site automatically.

Google is now picking up my transactions from the ejunkie code, which is great. The problem I am having now is that some transactions are showing up more than once. More specifically, Google is tracking all of the discount codes used in transactions, and some of them are showing up 2 or 3 times. Discount codes are only redeemable once. Is there any explanation of why this is happening?



Also, as I look through the source of a thank-you page that a customer has seen, I do not see any google analytics data being pushed. is this not done on the thank-you page?

Additionally, after seeing the following thread, all the way from 2009, I am wondering if this situation has been updated at all:



http://www.e-junkie.com/bb/topic/3067



Is there ANY way for more data to be passed to GA as a result of the e-junkie code? Some of the data, specifically "Product Category" in the Eccommerce Overview is not helpful at all. I would like for the category to come up as either "software", or "hardware". However, e-junkie either tells me that the category is "(not set)", or if a discount code is used in the checkout it is listed as the product category, which makes no sense. Can this be changed and how?

I examined several pages of your site, including pages where you're using our cart to sell your software, and found that you appear to be using standard GA tracking code provided by Google, rather than our customized version of the GA tracking code, which is necessary for our built-in GA integration to work properly in all regards; you can obtain our version of the GA code here:

1http://www.e-junkie.com/ej/help.tracking.htm1



Make sure you use our version of the GA code on every page of your site where you wish to use GA tracking at all -- i.e., do not mix-match our custom GA code with Google's GA code on the same page nor across different pages of your site.



I'm not sure how you're getting Ecommerce Tracking data in GA at all, since we can only add Ecommerce Tracking code to thank-you pages we generate for you when we detect the buyer's browser has a GA tracking cookie that was set by our version of the GA tracking code. At any rate, using our version of the GA code should improve the quality of Ecommerce Tracking data you're getting. The Ecommerce Tracking data we provide is populated by a routine common to all merchants and transactions in our system, so "it is what it is" and can't be further customized for any particular merchant. It may also take a little time for GA to gather enough data to start producing meaningful reports.



Also bear in mind that GA-style tracking can never provide fully precise and accurate metrics, due to browser settings or add-ons that may interfere with setting or reading the GA tracking cookies. Despite this inherent imprecision, the factors which interfere and resulting degree of imprecision or "margin of error" will be consistent enough across any volume of visitors, such that GA metrics are still useful for comparing against each other within that common frame of reference -- e.g., before/after comparisons to determine the effect of some change on your site, or comparing the performance of different sales pages or channels, etc.