Author |
Message |
starkey17too
Newbie - One Blade
Joined: 22 Dec 2004
Posts: 12
|
 Yahoo Conversion Counter
Howdy!
I would like to use the Yahoo Conversion Counter on my site. It is a java script that needs to be placed between the head tags and should be on the receipt page after the order has been placed.
(using agoracart Ver 4.0K-Standard)
Here is an example of the code I need to place:
<SCRIPT LANGUAGE="JavaScript">
<!-- Overture Services Inc. 07/15/2003
var cc_tagVersion = "1.0";
var cc_accountID = "2222222222";
var cc_marketID = "0";
var cc_protocol="http";
var cc_subdomain = "convctr";
if(location.protocol == "https:")
{
cc_protocol="https";
cc_subdomain="convctrs";
}
var cc_queryStr = "?" + "ver=" + cc_tagVersion + "&aID=" + cc_accountID + "&mkt=" + cc_marketID +"&ref=" + escape(document.referrer);
var cc_imageUrl = cc_protocol + "://" + cc_subdomain + ".overture.com/images/cc/cc.gif" + cc_queryStr;
var cc_imageObject = new Image();
cc_imageObject.src = cc_imageUrl;
// -->
</SCRIPT>
I found the info pasted below concerning Google Adwords. Would the method be exactly the same, (substituting Yahoo for Google), or do I need to do something different altogether? Any help will be appreciated.
Frank
Copied from different thread:
You want the conversion code to only be included on the receipt page after the order is completed. So here is how to do that:
In the agora.setup.db find the following:
Code:
$messages{'ordcnf_09'} =
"<CENTER><TABLE WIDTH=500 CELLPADDING=0 CELLSPACING=0><TR><TD><br>" .
"Thank you for shopping with us. Your order has been \n" .
"received and will be shipped as soon as possible. \n" .
"You will receive an email confirmation shortly. Please \n" .
"print this confirmation page for your records.<br>\n" .
"</TD></TR></TABLE></CENTER>\n";
Change it like this:
Code:
$messages{'ordcnf_09'} = qq~
<CENTER><TABLE WIDTH=500 CELLPADDING=0 CELLSPACING=0><TR><TD><br>
Thank you for shopping with us. Your order has been
received and will be shipped as soon as possible.
You will receive an email confirmation shortly. Please
print this confirmation page for your records.<br>
</TD></TR></TABLE>
Put Google Conversion Code here
</CENTER>
~;
HTH!
|
Tue May 17, 05 8:50 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Yes, it would be the same as the Google Adwords....
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue May 17, 05 4:35 pm |
 |
 |
starkey17too
Newbie - One Blade
Joined: 22 Dec 2004
Posts: 12
|
Thanks! I was hoping to hear that.
It will be a few days before I can get the code inserted and run the tests.
Will let you know how it works out.
Frank
|
Wed May 18, 05 11:18 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
You may want to review the following post, it has been updated for proper placement of adwords/tracking:
http://www.agoraguide.com/faq/viewtopic.php?p=7605#7605
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed May 18, 05 12:17 pm |
 |
 |
starkey17too
Newbie - One Blade
Joined: 22 Dec 2004
Posts: 12
|
Got the update message.
Will try implementing according to the updated info.
Thanks!
|
Fri May 20, 05 8:36 am |
|
 |
starkey17too
Newbie - One Blade
Joined: 22 Dec 2004
Posts: 12
|
Oops!
After looking through the agora.setup.db code in my version, 4.0k-Standard, the closest code I could find to what was supposed to be changed looks like this:
#example of where used is below "Thank You" for an order
$messages{'ordcnf_02'} =
"<a href=$sc_store_url2a>Return to the Store Front</a>\n" .
"<P> </P>\n" .
"<P> </P>";
Wasn't sure what to do, so I tried this:
#example of where used is below "Thank You" for an order
$messages{'ordcnf_02'} =
"<a href=$sc_store_url2a>Return to the Store Front</a>\n" .
q~
<Yahoo Conversion Code Placed Here>
"<P> </P>\n" .
"<P> </P>";
When I visited my site, I got the following error message:
Error loading library ./library/agora.setup.db:
syntax error at ./library/agora.setup.db line 418, near "$messages{'ordprc_01'} = qq~I'm sorry" Compilation failed in require at (eval 3) line 1.
Please contact the site administrator to fix the error. (webmaster@theribbongardner.com)
FYI, I did the editing in Notepad, and uploaded in ASCII. I assume doing so was okay.
Any suggestions as to what to try?
My thanks in advance.
Frank
|
Sat May 21, 05 10:32 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Did you read the post I mentioned in this thread?
The code needs to be as follows:
Code:
$messages{'ordcnf_02'} =
"<center><p><a href=$sc_store_url2a>Return to the Store Front</a></p>\n" .
q~
<!-- Put Google Conversion Code Here -->
~;
When you see, q~ , you need an ending mark of, ~ , to let the script know that that little section was done.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Sat May 21, 05 1:39 pm |
 |
 |
tmitchjr
Newbie - Two Blades
Joined: 05 Apr 2005
Posts: 29
|
 Re: Conversion Tracking
FYI - I've implemented Google conversion tracking per this article and it appears to be working.
|
Sat Jun 18, 05 9:43 pm |
|
 |
tmitchjr
Newbie - Two Blades
Joined: 05 Apr 2005
Posts: 29
|
 What variable holds total order amount?
As an add-on to this question. My conversion are being tracked BUT I'd like to track conversion amounts now that I've learned the basics. What variable holds the total order amount? This can be plugged into the Ad words code to get a better view of ROI.
I've tried $grand_total but at checkout I get a message that $grand_total is undefined so that can't be it.
Thanks,
Tom
|
Tue Jun 21, 05 7:08 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Well, since the cart is cleared upon check out, I'm not sure that you would be able to get the order total, but the $grand_total is the variable...
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Jun 22, 05 5:13 am |
 |
 |
tmitchjr
Newbie - Two Blades
Joined: 05 Apr 2005
Posts: 29
|
Hmm, do you suppose I cold use some sort of "global variable" that doesn't clear with the cart, make that equal to $grand_total, use it for the conversion tracking, and then reset the global variable to zero?
If so, any idea where that variable would need to sit as to avoid being cleared when the cart is cleared?
Thanks,
Tom
|
Wed Jun 22, 05 6:03 am |
|
 |
starkey17too
Newbie - One Blade
Joined: 22 Dec 2004
Posts: 12
|
 yahoo conversion counter and google ad words
Hello!
Sorry to take so long to report success with installing Yahoo Conversion Counter.
Thanks to Bonnie's most excellent help, my Yahoo Conversion Counter is now working great.
I am planning to start using Google Ad Words as well.
Does anyone know if using both at the same time will work okay?
Thanks
|
Fri Jul 08, 05 9:53 am |
|
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
 variable for tracking the value of the sale
I have used the variable $sc_verify_grand_total in a few places...it seems to magically linger around after the sales has been completed and the cart has been cleared.
|
Wed May 30, 07 7:12 pm |
|
 |
|