The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Tracking 2nd Tier SE Conversions

erickconeerickcone Member
in Help edited September 2012
Should all 1st tier and 2nd tier SE conversion code go in the ^^analytics_google_ga_async^^ section for my cached cart template. We have PPC conversion code to implement for:
adWords
Microsoft adCenter
7Search
Advertise.com
Comments
  • <!DOCTYPE html>
    <!--[if lt IE 7 ]><html class="ie ie6" lang="en"><![endif]-->
    <!--[if IE 7 ]><html class="ie ie7" lang="en"><![endif]-->
    <!--[if IE 8 ]><html class="ie ie8" lang="en"><![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]-->
    <head>
    
    <!-- Basic Page Needs
     ================================================== -->
    <meta charset="utf-8">
    <title>Secure Checkout - Tech Support Heroes&trade;</title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="robots" content="index, follow" />
    
    <!-- Mobile Specific
     ================================================== -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <!-- CSS
     ================================================== -->
    <link rel="stylesheet" type="text/css"  href="css/style.css">
    
    <!-- Web Fonts
     ================================================== -->
    <link href='http://fonts.googleapis.com/css?family=Bangers' rel='stylesheet' type='text/css'>
    
    <!-- FoxyCart CSS
     ================================================== -->
    <link rel="stylesheet" href="https://^^store_domain^^/themes/standard/styles.css"; type="text/css" media="screen" charset="utf-8" />
    
    <!-- Google Analytics
     ================================================== -->
    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-31933419-1']);
      _gaq.push(['_trackPageview']);
    
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    
    </script>
    </head>
    
    <body>
    <!-- Header -->
    
    <div id="header">
    
    	<!-- 960 Container Start -->
    
    	<div class="container">
    
    		<!-- Logo -->
    
    		<div class="four columns">
    
    			 <a href="index.html"><img src="images/LOGO-BLUE-182x80.png" alt="Tech Support Heroes" /></a>
    
    		</div>
    
    	</div>
    
    	<!-- 960 Container End -->
    
    </div>
    
    <!-- End Header -->
    
    <!--  Page Title -->
    
    <div id="page-title">
    
    	<!-- 960 Container Start -->
    
    	<div class="container">
    
    		<div class="sixteen columns">
    
    			<h1 class="attention-blue">Questions? - Call 1-888-420-8595</h1>
    
    		</div>
    
    	</div>
    
    	<!-- 960 Container End -->
    
    </div>
    
    <div class="container">
    
     <div class="sixteen columns">
    
    <!-- Start FoxyShortcodes -->
    ^^cart^^
    ^^checkout^^
    ^^receipt_only_begin^^
    ^^analytics_google_ga_async^^
    <!-- Google Code for FoxyCart Sale Conversion Page -->
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 1004137309;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "y2blCMuD2wQQ3dbn3gM";
    var google_conversion_value = 0;
    /* ]]> */
    </script>
    <script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">;
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1004137309/?value=0&amp;label=y2blCMuD2wQQ3dbn3gM&amp;guid=ON&amp;script=0"/>;
    </div>
    </noscript>
    <!-- 7Search Code for Conversion Page (start) -->
    <script language="JavaScript" type="text/javascript">
    var _7search_conversion_advid = 186382;
    var _7search_conversion_urlid = 14545694;
    var _7search_conversion_type = "purchase";
    var _7search_conversion_value = 1;
    </script>
    <script language="JavaScript" type="text/javascript" src="http://conversion.7search.com/conversion/v1/conversion.js"></script>;
    <noscript><img width="1" height="1" border="0" src="http://conversion.7search.com/conversion/v1/?advid=186382&urlid=14545694&type=purchase&value=1&noscript=1"; /></noscript>
    <!-- 7Search Code for Conversion Page (end) -->
    ^^receipt_only_end^^
    <!-- End FoxyShortcodes -->
    </div>
    </div>
    
    <!-- Page Title End -->
    </body>
    </html>
    
  • fc_adamfc_adam FoxyCart Team
    @erickcone - if the tracking services only need to be run once - then you'll want to put it inside the receipt_only placeholders to ensure it only gets run when the receipt is loaded for the first time.
  • okay. I moved the 7search conversion code between ^^receipt_only_begin^^
    ^^analytics_google_ga_async^^
  • <!DOCTYPE html>
    <!--[if lt IE 7 ]><html class="ie ie6" lang="en"><![endif]-->
    <!--[if IE 7 ]><html class="ie ie7" lang="en"><![endif]-->
    <!--[if IE 8 ]><html class="ie ie8" lang="en"><![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]-->
    <head>

    <!-- Basic Page Needs
    ================================================== -->
    <meta charset="utf-8">
    <title>Secure Checkout - Tech Support Heroes™</title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="robots" content="index, follow" />

    <!-- Mobile Specific
    ================================================== -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <!-- CSS
    ================================================== -->
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />

    <!-- Web Fonts
    ================================================== -->
    <link href='http://fonts.googleapis.com/css?family=Bangers' rel='stylesheet' type='text/css'>

    <!-- FoxyCart CSS
    ================================================== -->
    <link rel="stylesheet" href="https://^^store_domain^^/themes/standard/styles.css"; type="text/css" media="screen" charset="utf-8" />

    <!-- Google Analytics
    ================================================== -->
    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push();
    _gaq.push();

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>
    </head>

    <body>
    <!-- Header -->

    <div id="header">

    <!-- 960 Container Start -->

    <div class="container">

    <!-- Logo -->

    <div class="four columns">

    <a href="index.html"><img src="http://s-ff0102-504fd9db76111c119808171c-0.yottaa.net/504fd9db76111c119808171c/techsupportheroes.com/v~a/images/LOGO-BLUE-182x80.png"; alt="Tech Support Heroes" /></a>

    </div>

    </div>

    <!-- 960 Container End -->

    </div>

    <!-- End Header -->

    <div class="container">

    <div class="sixteen columns">

    <!-- Start FoxyShortcodes -->
    ^^cart^^
    ^^checkout^^
    ^^receipt_only_begin^^
    <!-- 7Search Code for Conversion Page (start) -->
    <script language="JavaScript" type="text/javascript">
    var _7search_conversion_advid = 186382;
    var _7search_conversion_urlid = 14545694;
    var _7search_conversion_type = "purchase";
    var _7search_conversion_value = 1;
    </script>
    <script language="JavaScript" type="text/javascript" src="http://conversion.7search.com/conversion/v1/conversion.js";></script>;
    <noscript><img width="1" height="1" border="0" src="http://conversion.7search.com/conversion/v1/?advid=186382&urlid=14545694&type=purchase&value=1&noscript=1"; /></noscript>
    <!-- 7Search Code for Conversion Page (end) -->
    ^^analytics_google_ga_async^^
    <!-- Google Code for FoxyCart Sale Conversion Page -->
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 1004137309;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "y2blCMuD2wQQ3dbn3gM";
    var google_conversion_value = 0;
    /* ]]> */
    </script>
    <script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">;
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1004137309/?value=0&label=y2blCMuD2wQQ3dbn3gM&guid=ON&script=0"/>;
    </div>
    </noscript>
    ^^receipt_only_end^^
    <!-- End FoxyShortcodes -->
    </div>
    </div>

    <!-- Page Title End -->
    </body>
    </html>
Sign In or Register to comment.