The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Yahoo Conversion Counter
Author Message
Reply with quote
Post 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.&nbsp; Your order has been \n" .
"received and will be shipped as soon as possible.&nbsp; \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.&nbsp; Your order has been
received and will be shipped as soon as possible.&nbsp;
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!

View user's profile Send private message
Reply with quote
Post  
Yes, it would be the same as the Google Adwords....

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
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

View user's profile Send private message
Reply with quote
Post  
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Got the update message.

Will try implementing according to the updated info.

Thanks!

View user's profile Send private message
Reply with quote
Post  
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>&nbsp;</P>\n" .
"<P>&nbsp;</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>&nbsp;</P>\n" .
"<P>&nbsp;</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

View user's profile Send private message
Reply with quote
Post  
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post Re: Conversion Tracking 
FYI - I've implemented Google conversion tracking per this article and it appears to be working.

View user's profile Send private message
Reply with quote
Post 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

View user's profile Send private message
Reply with quote
Post  
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
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

View user's profile Send private message
Reply with quote
Post 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

View user's profile Send private message
Reply with quote
Post 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.

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum