1 / 6
Feb 2013

I switched to the e-Junkie version of the tracking code several months back - and this has resulted in a number of my conversions not being recorded in google analytics.



As an example, if we take data for the 20th February:



2012 - actual in e-Junkie = 60 for $33,676 - google = 61 for $34,880



2013 - actual in e-Junkie = 43 for $28,326 - google = 36 for $22,050



I have no code on my product pages and I have this code on my common thank you page: (id xxxxxxed out)



<!-- Google Code for Purchase/Sale Conversion Page -->

<script type="text/javascript">

/* <![CDATA[ */

var google_conversion_id = xxxxxxxxxx;

var google_conversion_language = "en_US";

var google_conversion_format = "2";

var google_conversion_color = "ffffff";

var google_conversion_label = "cda0CIv5RxCPkZr6Aw";

var google_conversion_value = 0;

/* ]]> */

</script>

<script type="text/javascript" src="1https://www.googleadservices.com/pagead/conversion.js1">

</script>



Any ideas?

  • created

    Feb '13
  • last reply

    Feb '13
  • 5

    replies

  • 1.6k

    views

  • 2

    users

  • 7

    links

I'm a bit confused, as you mention using Google Analytics and say you switched to using our version of the tracking code, but then say you have no code on your product pages, and the code on your common thank-you page appears to be AdWords conversion tracking code, which is unrelated to Analytics.



If you're actually asking about tracking AdWords conversions, see this subsection of our Tracking help page for tips:

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



AdWords tracking code, like what you pasted above, would normally include another section below that with an IMG tag like this example:



<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/123456789/?label=AAAAAAAAAAAAAAAAAAA&guid=ON&script=0"/>



You can take the src= URL from the IMG tag of your own AdWords tracking code and put that URL in the EJEJC_BEACON parameter of our cart customization code (as we explain more fully at the help page I linked above); this will have our server hit that URL whenever we process an order for you, without your needing to have any other AdWords conversion tracking code pasted anywhere.

My apologies for the confusion - (got confused between adwords and analytics)



I do have



<script type="text/javascript">

<!--

function EJEJC_lc(th) { return false;}

function EJEJC_config() {

EJEJC_POSTCALL=true;

EJEJC_OPACITY = 30;

EJEJC_HEIGHT = 500;

EJEJC_WIDTH = 775;

EJEJC_BRDRCOLOR = "#00f";

EJEJC_CDAYS = 61;

EJEJC_BEACON = "https://www.googleadservices.com/pagead/conversion/1061587087/?value=0&label=cda0CIv5RxCPkZr6Aw&guid=ON&script=0";

}

function EJEJC_shown() {



jQuery("#country1").css("display", "none");

jQuery("#countryDD").css("display", "none");

jQuery("#state1").attr("innerHTML", "Enter your SHIPPING ZIP CODE<br>-- not the Billing Zip Code --<br>(We do not ship to Alaska or Hawaii)");

jQuery("#state1").attr("style","text-align:center; margin-left:auto; margin-right:auto;font-family:Verdana;font-weight:bold;font-size:115%; color:#9c1416;");

jQuery("#imgHeader").attr("src", "http://www.bunkbedking.com/img/bunk-bed-king-logocart.jpg");

jQuery("#tdPmnt").attr("style","text-align:center; margin-left:auto; margin-right:auto;font-family:Verdana;font-weight:bold;font-size:115%; color:#9c1416;");

jQuery("#tdPmnt").attr("innerHTML","To Checkout:<br>Click on PayPal, Google or Credit Card");



}



// -->

</script>



as my cart code

Hm, that code should work, and if you're using the EJEJC_BEACON parameter, you won't need to use any other AdWords tracking code, as we'll hit that conversion URL whenever we process an order for you.



I examined the code on your bunkbedking site and noticed that the beacon URL your page specifies has '& amp;' in places where it should have just '&', so that might be a problem. BTW, I also noticed your bedzking site does not use the cart customization code shown above at all.

Hi



I use & - so the code will validate correctly in w3.org (& on its own will not validate)



So, I do not need the adwords code if I have the beacon?



You cannot see why I am losing conversion data in analytics - I really have no idea, except for people tuning off their cookies, why the data is not showing up?



(The bedzking site is our local DFW site - low volume and we are not planning to "upgrade" the site until later in the year)

Correct, you do not need the AdWords conversion tracking code if you're using EJEJC_BEACON, as our server would be hitting the AdWords conversion tracking URL for you.



I think your EJEJC_BEACON URL does need to have the '&' kept as-is; I've asked Development to confirm this, but that URL may not work properly if it uses '& amp;' (BTW, note I'm having to add a space before the 'amp;' here to prevent this page turning it back into a plain '&').



It's rather strange that the w3c validator would show an error for plain '&' within blocks of javascript (which our cart customization code is); are you sure it's reporting an error for that particular line? I set up a test page using plain '&'s in the EJEJC_BEACON URL, and when I ran that page through the w3c validator, it did not report that line as an error for me.