Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
I'm a little embarrassed to say so, but I'm having trouble with my Yahoo conversion tracking module. I'm relatively experienced installing ZenCart modules, so I have no good excuse!
I have ZenCart 1.3.8a and am installing the most recent Yahoo Search tracking module. I've been through the directions twice and double checked each aspect. (this will only make it worse when I find out the mistake I made)
When I do a "View Source" on my checkout_success page, I can see the comment I put in tpl_main_page.php, that shows the require directive is getting activated. The require code is the code I copied from the instructions:But I don't see the actual script text anywhere. The only evidence I see of the module install is the comment that I added to tpl_main_page.php. My google and msn code are both showing up. But those scripts are added to checkout_success.php. There's still something I don't understand about all of this - for instance, why does google and msn scripts work in chechout_success.php, but Yahoo's (which looks very similar) causes a blank page to dispaly instead of the checkout success? But I diverge...PHP Code:<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'ysm_analytics') . '/ysm_analytics.php');
?>
One other point that I didn't understand was the line at the end of the directions:
The only controls I see in that section is the on/off control and the account number control. Am I supposed to see other controls on that page? It sounds like it, but I'm not, and maybe something went wrong with the sql install?2. Once you have completed a successful install or upgrade of the contribution and activated conversion tracking within your Yahoo Account, login to your Zen Cart admin and
go to configuration->YSM Analytics Configuration and set your "ysm account number" and any of the other settings as you see fit.
Any ideas spring to mind about why I'm not seeing the tracking code showing up in my checkout_success page?
Thanks.
A BLANK page is usually attributed to a PHP coding error. I am running the Yahoo conversion tracking module on a few of my sites and have never had the blank page issue so my thought is that somewhere during install of that code you might have left something out in relation to PHP (just a thought).
If you get the page successfully (not blank) but do not see the code when viewing source, make sure you have turned on tracking for Yahoo from within the Zen Admin (radio button).
For the options, there are only two currently in the Admin. The tracking ID and whether you want the tracking code turned on or not.
Let me know if this helps or if you need me to look at it further.
Thanks!
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Thanks for the reply.
The module is definitely turned on, and my yahoo account number is installed in the admin page. I've checked them about 5 times, and I've recopied the account number a couple of times (wihtout the quotes). But the code doesn't show up when I view source.
I do see the comment I put in tpl_main_page.php where I added the "require" statement from the instructions. So I know the require statement is getting executed. I cut and paste it in, so that should be golden up to that point.
2 things they may need mentioning, but I don't really see how they could affect this: 1) I'm making the test purchase from my office pc. Maybe yahoo is keeping track of my own IP and not activating click costs for me - but the code should still be displaying, so I don't see how this would matter. 2) My test purchases are being made "check or money order". I have ZenCart set the status as "Processing" for these, same as credit card transactions. But maybe this is causing something to happen? I don't see how, but I'm clutching at straws here.
An aside:
The part of my previous post about a blank page has nothing to do with the module. I've never gotten a blank page when using the module. I only got it when I tried to put the yahoo tracking code directly into checkout_success.php. I just didn't understand why it wouldn't work and why the module is even needed.
YSM is installed and displaying on the checkout page but it is in the body tag not in the head tag and is not working. Any Ideas?
Nevermind, I figured it out. All I have to do was move the reference to the ysm file that I placed in tpl_main_page.php per the instructions to html_header.php.
Now when I process a test order and view the source the yahoo script is in the head section. According to yahoo the script is supposed to be in the <head>. Not sure if its working yet but I think this is a good shot.
OK, that did not work. After placing in the header still does not work.![]()
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Did you first click on an add of yours and THEN make a purchase?
In order for conversion tracking for paid search to work the click must first come from an ad of yours (running on Yahoo Search Marketing network).
If you just try to test purchase without first clicking an ad of yours, the code will show but Yahoo will (as it should) not track the conversion. Why? Because the conversion never originated from a click on a paid search ad and therefor should not be included in the tracking results (or you would be getting false data and that wouldn't be any good for decision making.)
Does that make sense?
Can you confirm that you first clicked on one of your ads and then made a purchase?
Let me know.
Thanks!
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Yes. I do. I have jrox JAM installed, and so it inserts its code into the checkout success page.
Sorry for the months long delay. I actually got distracted and dropped this before completing it. I was going through my error log, and found errors trying to find the ysm_analytics.php file. The following is the snipped from my error log that show where its looking for the file:
I double checked to see that I had copied the code correctly into tpl_main_page.php correctly, and I had. So, I don't know why I'm getting those errors.Code:PHP Warning: require(includes/templates/soft_blue/checkout_success//ysm_analytics.php)
If you're still available, I'd like to see what to do about correcting this. I don't actually follow how the affiliate code is affecting this.