8 / 8
Apr 2013

Hi guys,



I've read a lot of posts on this, but I'm a bit confused. I have a product for download, and will be using e-junkies thank you pages to keep everything as simple as possible. I would just like to use GA to report on funnels. This is what I have done so far:



1. Gone into GA and created a funnel. Step 1 is my homepage, step 2 is my sales page (http://www.sapinfoasap.com/sap-sd-certification-questions/)



2. This sales page also has my 'add to cart' buttons, so I've added the script provided by e-junkie at the bottom of my page. The script I used is: http://www.e-junkie.com/ej/help.tracking.htm



3. Since I'm using e-junkies thank you page, I am not modifying anything there.



4. set Ecommerce Site = YES in my GA profile settings



With this said, nothing is showing up under my goals. I haven't put any GA tracking code anywhere - even though they tell me to put it on every page. Instead, I've put the e-junkie tracking codes on the sales page and home page.



1. What am I doing wrong?

2. Step 3 of my funnel should be when they click the checkout. How does e-junkie know to add the conversion to the third step of my funnel? It seems like I've missed a step



Thanks,

  • created

    Apr '13
  • last reply

    Apr '13
  • 7

    replies

  • 1.6k

    views

  • 3

    users

  • 10

    links

Your sales page is missing your View Cart code. This code adds some javascript to your page that manages an overlay-style cart display "inside" your page, which is necessary to take advantage of our version of the GA tracking code. If you don't want a visible View Cart button on your page, you can just paste this portion of the View Cart code into your page:



<script language="javascript" type="text/javascript">

<!--

function EJEJC_lc(th) { return false; }

// -->

</script>

<script src="http://www.e-junkie.com/ecom/box.js" type="text/javascript"></script>

Thanks.



I added this to the sales page. I'm assuming this now passes the data to GA once a someone clicks 'Checkout', is that correct?



What I'm trying to understand is how my funnel will know to consider the 'checkout' step as part of the funnel process?



For example, I have essentially 3 steps defined in GA right now:



1. Home page

2. Sales Page

3. Goal URL = https://www.fatfreecartpro.com/ecom/rp.php (gets passed to GA when the thank you page is viewed).



Nothing in this funnel is able to determine when the user hits 'checkout' though. How would I add this as a step? Is there a URL for me to use?



Thanks for your help so far,

My other question is: How do I track other pages in the funnel? Do I continue to use the ejunkie tracking code, or GA's?



I have put the ejunkie tracking code on other pages (no view/add cart buttons on these pages..), but it's not being picked up in the funnel. This is the code I'm using (with my own UA number 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>

When using our custom GA code, that should not go inside your View Cart button code. That goes just before the </body> tag at the end of your page, although it is still necessary to have the View Cart code on your page as well, since the cart it creates is necessary for our custom code to work.



The code for Google Adwords is different, that does go into the overall code for your View Cart button as described here:

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



The custom GA code should track cart button activity when it's been properly installed so it will track clicks of buttons inside the cart, including the checkout button.



For other tracking, use the custom GA code on every page, just before the </body> tag even on those pages which do not have their own cart buttons.

Hi,



I don't believe my ejunkie custom GA code is currently inside the view cart button code (although the adwords is). I have put all the custom GA, viewcart and adwords code on every page with no luck.



This is the code I am using:





// Ejunkie Custom GA code

<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-XXX-1"); ejGATracker.setDomainName("none"); ejGATracker.setAllowLinker(true); ejGATracker._trackPageview();

</script>





// e-junkie View Cart code

<script type="text/javascript" language="javascript">

function EJEJC_lc(th) { return false; }

function EJEJC_config() {

EJEJC_BEACON = "//www.googleadservices.com/pagead/conversion/...beacon_code...;script=0";

}

</script>

<script type="text/javascript" src="http://www.e-junkie.com/ecom/box.js"></script>



Could it be that I am not looking in the right place in analytics? I am checking the goals screen.



Thanks,

We can only help you set up our version of the GA tracking code; we cannot provide support for setting up and using GA itself, so that would be up to you.



It appears your site has another GA plugin for WP installed, which would conflict with our version of the GA tracking code and modifies our cart button codes, so you will need to uninstall that plugin. If uninstalling that does not automatically restore your cart button codes to their original state, you may also need to recopy your Add to Cart button code from Seller Admin to repaste into your page; the top of this help page explains the proper way to modify our button codes to replace our standard button image with a custom button graphic:

http://www.e-junkie.com/ej/help.custom.purchase-buttons.htm



Also, it appears your page has two copies of our GA tracking code and View Cart script code; it would be best to remove the copy that's up in your page's HEAD section, and keep the copy that's down near the </body> tag.



Finally, your EJEJC_BEACON URL for AdWords should be a complete URL starting with "http://" (or "https://"), and using "&" rather than "& amp;" in the query string at the end.

I uninstalled the plugin and removed the two copies of the code and it worked.



Thanks for all the help!