Share via E-Mail
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:

does ejunkie tracking work with new google analytics code?



GlennC
member
Posts: 11


the help page isn't clear about this.

if the answer is no, the help page should indicate that.

thanks!


#
POSTED ON: September 23, 2008 @ 17:29 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 4903


We recently added support for the latest version of Google Analytics tracking code but haven't posted an update our help page accordingly yet, as we're actually in the middle of a major update to all of our help/documentation pages.

Further instructions to follow.


#
POSTED ON: September 23, 2008 @ 17:36 GMT -7
MODIFIED ON: September 23, 2008 @ 17:40 GMT -7




SimpliFun
member
Posts: 72


But is the code working, shall I migrate?


#
POSTED ON: September 25, 2008 @ 09:12 GMT -7




E-junkieChef
E-Junkie Crew
Posts: 936


It's working but we have not made the instructions live. Anyway, you need to replace your analytics code with the following code to start using ga.js

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var ejGATracker = _gat._getTracker("UA-XXXXX-X");
ejGATracker._setDomainName("none");
ejGATracker._setAllowLinker(true);
ejGATracker._trackPageview();
</script>

where you'll need to replace UA-XXXXX-X with your UA ID that you get from Google Analytics in the code that they provide.

As always, tracking will work only if you are using JavaScript version of our CART buttons.


#
POSTED ON: September 25, 2008 @ 12:09 GMT -7




Matty
member
Posts: 42


Hey Tyson! I know I've been email blasting you.

But this code does not send sku, cost of order, city, etc to google analytics - does it?

I have this code and e-commerce tracking is enabled, and i still can't get any $ revenue.

please check this link (this is where all my customers are re-directed after they purchase an order).

http://www.dougstubes.com/thanks.html

My current code looks like this:

<script type="text/javascript">
var gaJsHost=(("https:"==document.location.protocol)?
"https://ssl.":"http://www.");
document.write(unescape("%3Cscript src='"+gaJsHost+
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var ejGATracker = _gat._getTracker("UA-796508-1");
ejGATracker._setDomainName("none");
ejGATracker._setAllowLinker(true);
ejGATracker._trackPageview();

pageTracker._addTrans(
"order-id", // required
"affiliate or store name",
"total",
"tax",
"shipping",
"city",
"state",
"country"
);

pageTracker._addItem(
"order-id", // required
"SKU",
"product name",
"product category",
"unit price", // required
"quantity" //required
);

pageTracker._trackTrans();
</script>


We'll see if that works..


Matt


#
POSTED ON: January 5, 2009 @ 21:16 GMT -7




Matty
member
Posts: 42


NOTE: The former code you put up doesn't work, so I added some extra javascript to see if that will work..

Thanks,

Matt


#
POSTED ON: January 5, 2009 @ 21:17 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 4903


I'll have to ask Development to look into this, as it appears you're trying to do something above and beyond the standard Analytics integration we document and officially support.

I can tell you that for order payments made via Google Checkout, GC is able to directly transmit eCommerce data for tracking, regardless of whether the buyer continues past checkout to any conversion/thank-you page with tracking code.


#
POSTED ON: January 6, 2009 @ 13:36 GMT -7




Matty
member
Posts: 42


Please see newest thread...


#
POSTED ON: January 7, 2009 @ 16:45 GMT -7




Matty
member
Posts: 42


Tyson,

Let me also add that this would make us seriously consider another shopping cart.

If we can't track revenue from source, what's kind of Google Analytics integration is that?

Not much.

I hope we can find a custom remedy, because I've loved your product thus far.

Matt


#
POSTED ON: January 8, 2009 @ 16:53 GMT -7




Matty
member
Posts: 42


*Bump

Any update on this?


Matt


#
POSTED ON: January 15, 2009 @ 08:40 GMT -7




ct
member
Posts: 44


Matt,

I think you are trying to do what I am trying to do. I am trying to resolve the info found on this page:

http://www.google.com/support/googleanalytics/bin/answer.py?hl=en& answer=55528

...with the info found on this one:

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

...with the info found on this one:

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

...with the info found on this one:

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

It seems to me that code found on the ejunkie page will NOT suffice for eCommerce tracking, which for those reading who might not know goes above and beyond standard google analytics tracking. You are actually on the right track with the way you added google's recommended code after e-junkie's code. Obviously, what you are missing are the values that need to be passed, such as price. Unfortunately, according the e-junkie "redirection" page mentioned above, all the pertinent info involved in a sale is missing when redirecting to a custom thankyou page (with the exception of txn_id.) I believe all of our problems would be solved if e-junkie would send more variables to the thank you page, such as total price, etc (basically all the variables you see as "customizable" on a generic e-junkie thankyou page per the "customization" help page above.)

Having said all that, I'm hoping I have stumbled across the thread I've been looking for. (If I've repeated a bunch of stuff already understood by most, I apologize. I needed to clarify everything for myself to make sure I'm in the right place.) Does this sound like what you are trying to do?

-Matt


#
POSTED ON: January 18, 2009 @ 22:07 GMT -7




Matty
member
Posts: 42


Matt,

This is exactly what I'm trying to do.

If you check your transaction logs, e junkie collects all the data. They just need to support the javascript code that sends the data to google analytics.

What is your transaction process like? What kind of thank you page are you using? Will any kind of thank you page setup send the necessary e-commerce data to GA?

I am redirecting all my buyers to another URL that I designed, and I have my google analytics code on this page. I have a credit card provider, paypal, and google checkout. All of which have been recorded with 95% accuracy for tracking conversions. (E junkie has stated that sometimes using paypal and other parties will not redirect).

You can email me at mattpresto@gmail.com or matthew.preston@razorfish.com for a quicker response. I would like to figure this out as soon as possible.


-Matt


#
POSTED ON: January 19, 2009 @ 19:16 GMT -7




ct
member
Posts: 44


Matt,

I am using a custom designed thank you page as well. So far, I am only using the e-junkie-recommended analytics code and have not put any ecommerce tracking in (although I would like to.)

"Will any kind of thank you page setup send the necessary e-commerce data to GA?"

I think the unfortunate answer to that right now is no. It doesn't appear e-junkie supports Google's ecommerce tracking code...at least not from a custom thankyou page. (Any other type of support is useless to me, as I only want to ever use a custom thankyou page, and it sounds like you do too.) The javascript e-junkie provides simply does not do everything ecommerce tracking needs, and the redirection they provide does not send enough data for us to use in google's supplied javascript. A lot of those variables ARE however included in the "integration" link, which is the link e-junkie will POST all the transaction data to, but unfortunately that would fall outside the user's analytics tracking session.

"E junkie has stated that sometimes using paypal and other parties will not redirect"

Hm, I wasn't aware of that. Do you mean when people purchase through paypal they sometimes won't even get to our custom thankyou pages?? That could explain why some of my goals seem to activate less than I would assume they would. I probably get more paypal purchases than google checkout on average.

I think the solution for this falls in e-junkie's hands. We simply need the values for all of these variables you listed passed to the custom thankyou page:

pageTracker._addTrans(
"order-id", // required
"affiliate or store name",
"total",
"tax",
"shipping",
"city",
"state",
"country"
);

pageTracker._addItem(
"order-id", // required
"SKU",
"product name",
"product category",
"unit price", // required
"quantity" //required
);

That's all I can think of at the moment. E-junkie?

-Matt


#
POSTED ON: January 19, 2009 @ 19:27 GMT -7




Matty
member
Posts: 42


Matt,

I think we are stuck until development gets back to us.

Tyson - any timeline on when this will happen?

Thanks,

Matt


#
POSTED ON: January 20, 2009 @ 16:36 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 4903


At the moment, consistent/complete E-commerce tracking is really only possible with Google Checkout, since GC can send E-commerce tracking data directly from their end without any involvement from us.

The tradeoff you have to accept when accepting PayPal payments is that you won't get consistent nor complete tracking of any sort, since PayPal cannot automatically redirect a buyer to any thank-you page after completing Checkout, and many-to-most buyers may not bother to voluntarily click the "return to merchant" link once they've finished Checkout on PayPal's site.

See more details about how the different payment processors handle the checkout-to-thankyou transition, as described at the top of our Tracking help page here:
http://www.e-junkie.com/ej/help.tracking.htm


#
POSTED ON: January 22, 2009 @ 16:14 GMT -7




Henry
member
Posts: 32


I am interested in a solution to this integration as well. I followed the conversation above and finally thought to follow Tyson's advice on handling the tracking on Google Checkout side. In other words, is there a way to link Google Checkout and Google Analytics to track everything? Here is what I found...

Google has a handy guide on this: http://code.google.com/apis/checkout/developer/ checkout_analytics_integration.html#Tracking_Checkout_Orders

Basically they suggest using the following code, which contains the usual Analytics code as well as some extra:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3Cscript%3E"));
</script>

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

<script src="http://checkout.google.com/files/digital/ga_post.js"
type="text/javascript">
</script>


<form action="..." method="POST" onsubmit="setUrchinInputCode(pageTracker);">
<input type="hidden" name="cart" value="...">
<input type="hidden" name="signature" value="...">
<input type="hidden" name="analyticsdata" value="">
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="http://checkout.google.com/buttons/checkout.gif? merchant_id=YOUR_MERCHANT_ID
&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180"/>
</form>


However, it seems that you need to have their checkout buttons to be able to use the above code (you need the <form> tag).

So far so good. My questions is, can we customise e-junkies buttons or the cart, to integrate this code, or what Google wants, so that we finally start getting data from the e-commerce side.

Tyson, you mentioned that e-commerce can be handled on Google side, perhaps you can tell us about this a bit more.

Thanks


#
POSTED ON: April 19, 2009 @ 10:53 GMT -7




Henry
member
Posts: 32


No replies still :-(

I am trying to get some ecommerce data and I still cant succeed so I want to know what is currently possible.

From what I understand, I need to put the following on each page (with the appropriate tracker code of course)

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var ejGATracker = _gat._getTracker("UA-XXXXX-X");
ejGATracker._setDomainName("none");
ejGATracker._setAllowLinker(true);
ejGATracker._trackPageview();
</script>

Then activate the e-commerce tracking in analytics and the rest is taken care of by e-junkies and google checkout. I should then expect to see ecommerce data on those purchases who used Google Checkout to process their payments. Is this correct? Do I need to do anything else? Is anyone able to see any results in analytics using e-junkies? At the moment this is what I have done, and I can't see any data in analytics!

Has anyone succeeded with this?

After thought: I read somewhere that multi domain tracking by google doesn't work if the tracking code in the javascript is different on both domains. Doesn't this mean that ejunkies should use the same tracking code as we do on our site and use it on their shopping cart when the domain is transferred? Is this the reason why it doesn't work?

I appreciate any help. Ecommerce data is like gold. It would be a wonderful feature for the already quite cool ejunkies services. So it's certainly worth investing time and effort in.


#
POSTED ON: April 29, 2009 @ 03:25 GMT -7




MilesKilometers
member
Posts: 3


E-junkieGuruThe tradeoff you have to accept when accepting PayPal payments is that you won't get consistent nor complete tracking of any sort, since PayPal cannot automatically redirect a buyer to any thank-you page after completing Checkout, and many-to-most buyers may not bother to voluntarily click the "return to merchant" link once they've finished Checkout on PayPal's site.


May I propose a 90/10 solution? I'd like to see e-junkie implement a selectable option that fires off the GA e-commerce details BEFORE transferring to PayPal. I fully understand that scenario would generate false positives if the user abandons the payment, but it sure beats no e-commerce data at all. The reality is that users just don't press the Return to Merchant link.

My reality is that as Henry says "ecommerce data is like gold." However, it's not accounting data, but statistical data used for marketing decision-making. We can deal with a little bit of noise in the data, but we cannot deal with no data. Anyway, "the ones that got away" aren't just random noise since an abandoned cart is likely to be statistically in line with actual sales.

E-JUNKIE HEAR THIS: E-COMMERCE DATA IS A BIG DEAL. You need to get SOME KIND of solution going, even if it's an approximation. Stop hiding behind PayPal.


#
POSTED ON: June 25, 2010 @ 12:17 GMT -7




E-junkieNinja
E-Junkie Crew
Posts: 810


I will pass your suggestion on to our development team.


#
POSTED ON: June 25, 2010 @ 14:34 GMT -7




doolin
member
Posts: 9


I agree with MilesK, it's a huge deal. Even huger is just being straight up front about what you can and can't do. I love e-junkie, but sometimes I hate it.

I'm going to read a bunch of these other articles before I suggest you guys make a decision tree to help people figure out what to do about tracking. You could probably do this using a free mind map like Freemind, and post it as a free download. It would be hugely useful.

Also, your document is excellent in it's thoroughness. I want you to know that. Because the way it's written is *maddeningly* difficult to understand. Seriously, I have to get a paper and pencil and flow chart through all the "if then" statements. It would be easier for me to understand if you just wrote it all out in some clean c code. Then at least I could run it through indent and a prayer of understanding wth I was reading.


#
POSTED ON: July 5, 2010 @ 14:29 GMT -7


« PREVIOUS  1  2  NEXT »

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

30 Day Money Back Guarantee PayPal Certified Integration 2Checkout Shopping Cart Sell with ClickBank Authorize.Net shipping cart
Slam the Online Scam