Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #192027

    Hi there

    I got this from the client – please note that it seems they want it on a page (I assume the index page), plus the snippet on phone links. Could you please tell me how to implement this. Thanks, Jodi

    
    
    <!-- Google Code for Calls From Ad Conversion Page
    In your html page, add the snippet and call
    goog_report_conversion when someone clicks on the
    phone number link or button. -->
    <script type="text/javascript">
    /* <![CDATA[ */
    goog_snippet_vars = function() {
      var w = window;
      w.google_conversion_id = 981812135;
      w.google_conversion_label = "P0mFCLGzuAcQp4eV1AM";
      w.google_conversion_value = 0;
      w.google_remarketing_only = false;
    }
    // DO NOT CHANGE THE CODE BELOW.
    goog_report_conversion = function(url) {
      goog_snippet_vars();
      window.google_conversion_format = "3";
      window.google_is_call = true;
      var opt = new Object();
      opt.onload_callback = function() {
      if (typeof(url) != 'undefined') {
        window.location = url;
      }
    }
    var conv_handler = window['google_trackConversion'];
    if (typeof(conv_handler) == 'function') {
      conv_handler(opt);
    }
    }
    /* ]]> */
    </script>
    <script type="text/javascript"
    src="//www.googleadservices.com/pagead/conversion_async.js">
    </script>
    
    #192199

    Hi webWahine!

    You can place it on header.php, find this code:

    <?php
    
    	/* Always have wp_head() just before the closing </head>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to add elements to <head> such
    	 * as styles, scripts, and meta tags.
    	 */
    
    	wp_head();
    ?>

    Place the google adsense script above:

    <!-- Google Code for Calls From Ad Conversion Page
    In your html page, add the snippet and call
    goog_report_conversion when someone clicks on the
    phone number link or button. -->
    <script type="text/javascript">
    /* <![CDATA[ */
    goog_snippet_vars = function() {
      var w = window;
      w.google_conversion_id = 981812135;
      w.google_conversion_label = "P0mFCLGzuAcQp4eV1AM";
      w.google_conversion_value = 0;
      w.google_remarketing_only = false;
    }
    // DO NOT CHANGE THE CODE BELOW.
    goog_report_conversion = function(url) {
      goog_snippet_vars();
      window.google_conversion_format = "3";
      window.google_is_call = true;
      var opt = new Object();
      opt.onload_callback = function() {
      if (typeof(url) != 'undefined') {
        window.location = url;
      }
    }
    var conv_handler = window['google_trackConversion'];
    if (typeof(conv_handler) == 'function') {
      conv_handler(opt);
    }
    }
    /* ]]> */
    </script>
    <script type="text/javascript"
    src="//www.googleadservices.com/pagead/conversion_async.js">
    </script>

    Best regards,
    Ismael

    #193167

    Thank you! :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add Google AdWords Conversion Tracking code to Enfold’ is closed to new replies.