pdpd Posted May 11, 2010 Share Posted May 11, 2010 You may put your Google Conversion Tracking Code in complete.tpl and under settings, set " Just show the order completed page (no payment redirect)" This is not a good solution because it doesnt take people on the natural path to payment... It stops them unnecessarily. We need a solution which doesnt involve diverting people away from paying for their hosting right away. 0 Quote Link to comment Share on other sites More sharing options...
hostnine Posted May 18, 2010 Share Posted May 18, 2010 This is why we want the CC fields to be on the actual order form and no redirect to creditcard.php http://forum.whmcs.com/showthread.php?t=29342 0 Quote Link to comment Share on other sites More sharing options...
Sny Posted July 1, 2010 Share Posted July 1, 2010 Any solution? 0 Quote Link to comment Share on other sites More sharing options...
BryanB Posted July 1, 2010 Share Posted July 1, 2010 I have it working to the point where if someone lands on /cart.php?a=complete, it counts as 1 goal conversion. Haven't figured out how to send the $ amount to GA though. Is what the trouble is? Maybe if we clearly outline whats not working someone from WHMCS will answer. 0 Quote Link to comment Share on other sites More sharing options...
BenW Posted August 18, 2010 Share Posted August 18, 2010 I just wanted to chime in and say this is retarded that it doesn't work. We have tried about a dozen methods and nothing works with accuracy. I'm looking forward to a WHCMS update that makes this possible. But for now I'm giving up, Thanks, Ben 0 Quote Link to comment Share on other sites More sharing options...
oempire Posted August 19, 2010 Share Posted August 19, 2010 This is why we want the CC fields to be on the actual order form and no redirect to creditcard.php http://forum.whmcs.com/showthread.php?t=29342 This feature is now in its going to make things easier for tracking! 0 Quote Link to comment Share on other sites More sharing options...
BenW Posted August 19, 2010 Share Posted August 19, 2010 Where? directions online? I've seen nothing to indicate this. 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted September 15, 2010 Share Posted September 15, 2010 I'm not sure, but I think it's {debug} - i've seen it posted around a lot here. it is (debug) Dont use it in a live environment as it open up a new window with a list of vars. and lang text for the current laguage in use 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted September 15, 2010 Share Posted September 15, 2010 (edited) I have it working to the point where if someone lands on /cart.php?a=complete, it counts as 1 goal conversion. Haven't figured out how to send the $ amount to GA though. Is what the trouble is? Maybe if we clearly outline whats not working someone from WHMCS will answer. You dont send the price to GA you set a base price in the goal settings at GA Scrapped ^ You will need to know the correct variable for the payment received to send this but append this to the tracking link utmtto={$paymentvaluevaruable} For further reading on this and there is a lot of it. http://code.google.com/apis/analytics/docs/tracking/gaTrackingTroubleshooting.html All you need to know is here Edited September 15, 2010 by disgruntled scrap previous. 0 Quote Link to comment Share on other sites More sharing options...
wiz Posted May 20, 2011 Share Posted May 20, 2011 Hope somebody will create a mod for it, I have added the tracking code in the complete.tpl in all order forms, and OUTISIDE the $ispaid if, to be SURE it will be executed, paid or not, but google ecommerce continue in CERO all posts readed, literal used, php used, and blah blah. {literal} <SCRIPT language="JavaScript" type="text/javascript"> <!-- Yahoo! window.ysm_customData = new Object(); window.ysm_customData.conversion = "transId={/literal}{$orderid}{literal},currency=,amount={/literal}{$amount}{literal}"; var ysm_accountid = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' " + "SRC=//" + "srv3.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid + "></SCR" + "IPT>"); // --> </SCRIPT> {/literal} {literal} <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> {php} $orderid = $this->get_template_vars('orderid'); $userid = $_SESSION["uid"]; // get client data $result = select_query("tblclients","city, state, country",array("id"=>$userid)); $data = mysql_fetch_array($result); $city = $data["city"]; $state = $data["state"]; $country = $data["country"]; $this->assign('city',$city); $this->assign('state',$state); $this->assign('country',$country); // get package name $result = select_query("tblhosting","packageid",array("orderid"=>$orderid)); $data = mysql_fetch_array($result); $packageid = $data["packageid"]; $result = select_query("tblproducts","name, type",array("id"=>$packageid)); $data = mysql_fetch_array($result); $name = $data["name"]; $type = $data["type"]; $this->assign('name',$name); $this->assign('type',$type); $this->assign('packageid',$packageid); {/php} {literal} <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("XXXXXXXX"); pageTracker._setDomainName(".XXXXXX.com"); pageTracker._setAllowHash(false); pageTracker._trackPageview(); pageTracker._addTrans( "{/literal}{$orderid}{literal}", // Order ID "BuyHTTP", // Affiliation "{/literal}{$amount}{literal}", // Total "0", // Tax "0", // Shipping "{/literal}{$city}{literal}", // City "{/literal}{$state}{literal}", // State "{/literal}{$country}{literal}" // Country ); pageTracker._addItem( "{/literal}{$orderid}{literal}", // Order ID "{/literal}{$packageid}{literal}", // SKU "{/literal}{$name}{literal}", // Product Name "{/literal}{$type}{literal}", // Category "{/literal}{$amount}{literal}", // Price "1" // Quantity ); pageTracker._trackTrans(); </script> {/literal} 0 Quote Link to comment Share on other sites More sharing options...
Manchester Web Hosting Posted July 17, 2011 Share Posted July 17, 2011 This seems to work just fine :http://docs.whmcs.com/Google_Analytics_Integration I tried other ones that are scattered around the forum and had no luck. It just wasnt showing conversions..now its up and running just fine 0 Quote Link to comment Share on other sites More sharing options...
aaronhiscock Posted August 11, 2011 Share Posted August 11, 2011 thanks for sharing this. i will try it to check out my conversion ratio. 0 Quote Link to comment Share on other sites More sharing options...
Loraine321 Posted November 8, 2011 Share Posted November 8, 2011 thanks for sharing this. i will try it to check out my conversion ratio. 0 Quote Link to comment Share on other sites More sharing options...
copeland Posted December 27, 2011 Share Posted December 27, 2011 Was declared in V3.6 that it function with Search engines Transformation Monitoring. How do you use it? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.