E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2014, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Sat, 10 Jan 2009 00:02:53 GMT Tue, 16 Sep 2014 19:29:39 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #8 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 Sat, 10 Jan 2009 00:02:53 GMT
Bear in mind that the order data we POST to your Common Notification URL is an entirely separate transmission unrelated to redirecting a buyer to GET your Common Thank-you Page URL.

We can only append a limited set of order-data parameters to the end of your Thank-you Page URL when we redirect the buyer there, so your in-page scripting can only expect to parse its own URL to get these values we append:
http://www.e-junkie.com/ej/help.redirection.htm

The POST we can send to your Common Notification URL gives you a greater range of order data, but this transmission cannot be assumed to be synchronous with redirecting the buyer to your thank-you page, so you cannot expect to reliably pull any POSTed data into the buyer's thank-you page:
http://www.e-junkie.com/ej/help.integration.htm

Moreover, many buyers may not choose to click the return/continue/finish link to proceed past the end of checkout to even reach their thank-you page. We'll always POST data to your Notification URL regardless of this, but of course any tracking code in your thank-you page will never be activated if the buyer never continues to reach that page.

You may want to consider using Google Checkout as your sole payment processor, since that can transmit Google E-commerce Tracking data regardless of whether the buyer chooses to continue past checkout to a thank-you page or not.]]>
E-junkie Discussions; E-junkieGuru
Post #7 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 Thu, 8 Jan 2009 21:25:56 GMT
I've read that, but I think I'm missing something and the page is a little vague to me.

I am selling just a single product at a time, so I am using the e-junkie "buy now" buttons (rather than the add to cart)

Since I'm not using the "add to cart" option, the page says to follow Google's own instructions for "third party eCommerce" and paste the Analytics tracking code in my thank-you page.

I tried that when I first started, but for some reason wasn't seeing the completed sales data (ecommerce stats) on my Google analytics account.

I'll try it again though...

Here is the code I plan to put in my "Thank you" page:

-=-=-=-=-=-=-=-=-=-=-

<!-- google code begin -->
<script type="text/javascript">
pageTracker._addTrans(
"<?php echo $HTTP_POST_VARS['txn_id']; ?>", // Order ID
"", // Affiliation
"<?php echo $HTTP_POST_VARS['mc_gross']; ?>", // Total
"", // Tax
"", // Shipping
"<?php echo $HTTP_POST_VARS['address_city']; ?>", // City
"<?php echo $HTTP_POST_VARS['address_state']; ?>", // State
"<?php echo $HTTP_POST_VARS['address_country_code']; ?>" // Country
);

pageTracker._addItem(
"<?php echo $HTTP_POST_VARS['txn_id']; ?>", // Order ID
"<?php echo $HTTP_POST_VARS['item_number1']; ?>", // SKU
"<?php echo $HTTP_POST_VARS['item_name1']; ?>", // Product Name
"", // Category
"<?php echo $HTTP_POST_VARS['mc_gross_1']; ?>", // Price
"<?php echo $HTTP_POST_VARS['quantity1']; ?>" // Quantity
);
</script>
<!-- google code end -->

-=-=-=-=-=-=-=-=-=-=-

This code should extract the POST variable data you send and put the values into the script that will be sent to Google. The variable names above are taken from your help page.

So if I just put in the above Google code, what settings and field entries do I need to check in my e-junkie admin area?

I'm assuming I need to put the "Common Thank-you Page URL" in my main account preferences. Is this correct?

What about the "Common Notification URL"? I should enter it there too right?

Anything else?

Should I enter anything in the individual product configuration? Maybe in the "Send transaction data to a URL" box?

Thanks for your help.]]>
E-junkie Discussions; fryguy173
Post #6 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 Thu, 8 Jan 2009 20:31:30 GMT http://www.e-junkie.com/ej/help.tracking.htm]]> E-junkie Discussions; E-junkieGuru Post #5 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 Thu, 8 Jan 2009 20:13:25 GMT
My goal is to integrate Google Analytics -- specifically the order data portion. The Google code example I'm working with is like this:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-XXXXX-1");

pageTracker._trackPageview();

pageTracker._addTrans(
"1234", // Order ID
"Mountain View", // Affiliation
"11.99", // Total
"1.29", // Tax
"5", // Shipping
"San Jose", // City
"California", // State
"USA" // Country
);

pageTracker._addItem(
"1234", // Order ID
"DD44", // SKU
"T-Shirt", // Product Name
"Green Medium", // Category
"11.99", // Price
"1" // Quantity
);

pageTracker._trackTrans();
</script>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

So, by what you're leading to... Here's how I should do it...

1. I set my "Common Thank-you Page URL" to one page that my customers will see once their order is completed.

2. I set my "Common Notification URL" to a simple script that parses the POST variables and runs the Google script.


One last question...

Will the fact that my regular Google Analytics page tracking code (which is installed in my Wordpress "header.php" file) cause any problems in my Analytics reports such as double-entry for a sale?

(I hope that makes sense.)]]>
E-junkie Discussions; fryguy173
Post #4 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 Thu, 8 Jan 2009 02:46:30 GMT http://www.e-junkie.com/ej/help.integration.htm

The Common Thank-you Page URL uses HTTP GET, where a limited set of order data is appended to the end of the URL itself in standard ?foo=bar&baz=wibble&etc. format, so any scripting in that page would parse its own URL to obtain those values and do whatever is required, such as outputting those values in the page displayed to the buyer, IF the buyer chooses to continue past checkout to reach the thank-you page (for this reason, this is not a reliable method to collect data for all orders):
http://www.e-junkie.com/ej/help.redirection.htm]]>
E-junkie Discussions; E-junkieGuru
Post #3 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 Thu, 8 Jan 2009 01:08:42 GMT
For testing purposes, I put the following code into my thank you page.

-=-=-=-=-=-=-=-=-

<?php

var_dump($_POST);


?>

-=-=-=-=-=-=-=-=-

This code should print out on the screen all variables that are being posted to the page.

When I place a test order, the variable dump is empty. (0 = no variables posted)

Under my seller account preferences, I have the URL to my "thank you" page entered two places.

1. Common Thank-You Page URL
2. Common Notification URL

Under my Products, I have no boxes checked on the first page (Product Configuration) except for "Send transaction data to URL". On the second page (More Options) I have my "Thank you" page URL entered in the field marked "Payment Variable Information URL".


Can you tell what I'm doing wrong?

Everything looks like it is setup correctly, but I can't seem to get at any of the POST variables.

Am I missing something?]]>
E-junkie Discussions; fryguy173
Post #2 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 Wed, 30 Jan 2008 17:28:04 GMT
For redirection, please see "redirection" section in our help page <http://www.e-junkie.com/ej/help.redirection.php> . I will recommend putting the redirection URL in E-junkie Seller Admin > Preferences.

The pending orders in the database is the default behavior unless you have disabled it from Admin > Preferences.

E-junkie sends all variables using POST method to the specified script. That functionality is not broken. We won't be able to help you debug the script.]]>
E-junkie Discussions; E-JunkieExpert
Post #1 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 http://www.e-junkie.com/bb/topic/1666/pg/0#post8717 Wed, 30 Jan 2008 17:25:24 GMT
Also, I don't want that my buyers go to the thank you page from e-junkie, instead I want then to go to the redirection address I put in the item.

I want to get the information of the orders already completed to add to my database, I don't want to have in my database any pending orders.

I selected send information to my server, and I implemented a php file getting all the variables form post method, and storing it on a database, it does not work!]]>
E-junkie Discussions; GuestUser