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

AdWords Conversion Tracking + Google Checkout



E-junkieChef
E-Junkie Crew
Posts: 936


That code needs to be on all the pages from where the users can checkout.

In case of Google Checkout, we'll pass it on as the "parameterized url", and in case of other payment methods, we'll display the tracking pixel on the thank you page using the URL you specify.


#
POSTED ON: July 1, 2010 @ 12:27 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3734


The code provided would work like any other Cart Customization code:
http://www.e-junkie.com/ej/help.custom-cart.htm

I.e., insert these lines on every page just before the "// -->" line in the standard View Cart code you obtain from Seller Admin:

function EJEJC_config() {
EJEJC_BEACON = "http://URL.From.Adwords.Tracking.Beacon";
}

If you are already using function EJEJC_config(){} for other cart customizations you may have, just add the EJEJC_BEACON line between the { and } for that function; e.g.:

function EJEJC_config() {
EJEJC_INITCSS = false;
EJEJC_BEACON = "http://Put.AdWords.Tracking.Beacon.URL.Here";
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
Query("#tdPmnt").attr("innerHTML",
"Thanks for your business!");
}


#
POSTED ON: July 1, 2010 @ 13:59 GMT -7




mkp007
member
Posts: 54


Believe it or not, I'm still confused.

can you give me an example of what this URL should be:

http://Put.AdWords.Tracking.Beacon.URL.Here


#
POSTED ON: July 24, 2010 @ 23:46 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3734


Your AdWords conversion tracking code would have a Web beacon (aka "tracking pixel") tag like this:

<img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/0062225003/? value=1&label=purchase&script=0">

...so in that example, this would be the AdWords Tracking Beacon URL:

https://www.googleadservices.com/pagead/conversion/0062225003/? value=1&label=purchase&script=0

Which would look like this in our cart customization code:

function EJEJC_config() {
EJEJC_BEACON = "https://www.googleadservices.com/pagead/conversion/0062225003/? value=1&label=purchase&script=0";
}

(Note the URL should actually be on one, long line, despite this forum soft-wrapping long lines.)


#
POSTED ON: July 26, 2010 @ 12:56 GMT -7




bplabz
member
Posts: 5


E-junkieGuruYour AdWords conversion tracking code would have a Web beacon (aka "tracking pixel") tag like this:

<img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/0062225003/? value=1&label=purchase&script=0">

...so in that example, this would be the AdWords Tracking Beacon URL:

https://www.googleadservices.com/pagead/conversion/0062225003/? value=1&label=purchase&script=0

Which would look like this in our cart customization code:

function EJEJC_config() {
EJEJC_BEACON = "https://www.googleadservices.com/pagead/conversion/0062225003/? value=1&label=purchase&script=0";
}

(Note the URL should actually be on one, long line, despite this forum soft-wrapping long lines.)


Hi E-junkieGuru, how do you pass multiple beacons to EJEJC_BEACON? I advertise on both adcenter and adwords and I'm sure others advertise on multiple networks as well.


#
POSTED ON: October 28, 2010 @ 15:40 GMT -7
MODIFIED ON: October 28, 2010 @ 15:40 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3734


I'll ask Development to confirm or correct me here, but I don't think it's possible to trigger multiple beacon URLs by this method; you can only trigger one beacon for all orders. If you need to trigger multiple conversion trackers for every order, you might consider this approach instead:
http://www.e-junkie.com/ej/tips.tracking.conversions.htm

Note that, depending on which payment processor(s) you use, that approach may only work reliably for download products, for the reasons explained here:
http://www.e-junkie.com/ej/faq.tracking.conversions.htm


#
POSTED ON: October 28, 2010 @ 17:57 GMT -7




Biggest_E-Junkie_Fan
member
Posts: 6


I think I understand this solution, but on my checkout pages I have buttons for "Add to Cart" and "View Cart". If a customer only clicks the "Add to Cart" button and then proceeds to checkout from there, would this still work?

I am thinking it would because both the "Add to Cart" and "View Cart" buttons have this code:

onClick="javascript:return EJEJC_lc(this);

Can you confirm?

Actually here is the pertinent code without any changes proposed here:

<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=ABCD1234&cl=99999&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>
<br />
<br />
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=99999&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_view_cart.gif" border="0" alt="View Cart"/></a>
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
// -->

What do you think?

Thanks!


#
POSTED ON: May 7, 2011 @ 21:14 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3734


Yes, as long as you have at least one complete block of your View Cart code from Seller Admin on every page that has any number of Add to Carts -- and you add the function EJEJC_config() ...etc. lines to your View Cart code on every page -- it won't matter which cart buttons the buyer clicks.

This is because the second half of the View Cart code (from the first <script ...etc.> to the last </script>) isn't really part of the View Cart button by itself. Those script lines are just loading our cart script with the page and activating/configuring various functions of the cart, so your page can use it. We put these script lines in the View Cart code because they only need to appear once on each page, so putting it in the Add to Cart code would be overkill if you put multiple Add to Carts on the same page.

The onClick="javascript:return EJEJC_lc(this); in the actual button portions of the code are triggering a function of our cart script that displays the cart "inside" your page when the button is clicked.

Here's an example of complete View Cart code including the custom parameter to trigger a beacon URL:

<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=XXXXXX&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_view_cart.gif" border="0" alt="View Cart"/></a>
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
function EJEJC_config() {
EJEJC_BEACON = "http://Put.AdWords.Tracking.Beacon.URL.Here/";
}
// -->
</script>
<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>


#
POSTED ON: May 9, 2011 @ 15:41 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
Google Checkout Certified Integration
Slam the Online Scam