Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #573010

    Hallo,
    wie kann ich die im Themeeinstellungen unter Header/Extra elements/Phone number angegebene Rufnummer nach der folgenden Anleitung erfassen (Teil III):
    https://support.google.com/adwords/answer/6095883?&hl=de#gfn

    folgendes funktioniert nicht:

    I want to implement the functionality of google adwords phone conversions as described on the following page (part III):
    https://support.google.com/adwords/answer/6095883?hl=en

    This doesn’t work:

    
    
    function phone_gt() {	
    	$code = "
    	<script type='text/javascript'>
    		(function(a,e,c,f,g,b,d){var h={ak:'945659753',cl:'VEqQCOTqoGMQ6b72wgM'};a[c]=a[c]||function(){(a[c].q=a[c].q||[]).push(arguments)};a[f]||(a[f]=h.ak);b=e.createElement(g);b.async=1;b.src='//www.gstatic.com/wcm/loader.js';d=e.getElementsByTagName(g)[0];d.parentNode.insertBefore(b,d);a._googWcmGet=function(b,d,e){a[c](2,b,h,d,null,new Date,e)}})(window,document,'_googWcmImpl','_googWcmAk','script');
    	</script>
    ";
    echo $code;
    }
    add_action('wp_head', 'phone_gt');
    
    function replace_ph_no() {	
    	$code = "
    		<script type='text/javascript'>
            	window.onload = function() { _googWcmGet('phone-info', '012 - 345 678') };        
        	</script>
    	";
    
    echo $code;
    }
    add_action('wp_footer', 'replace_ph_no');
    • This topic was modified 8 years, 11 months ago by adauda.
    #573147

    Hi adauda!

    I have assigned the ticket to our German Speaking Supporter.
    Thanks a lot for your patience till he sees it
    Best regards,
    Basilis

    #573716

    Hi!

    wir können dir hier nur theme spezifische Fragen oder Probleme beantworten. In deinem Fall müsstest du erstmal klären wie das bei WordPress generell funktionieren würde und am Besten erfragst du dies im allgemeinen WordPress Forum.

    Gruß!
    Andy

    #587524

    I’d love to hear the English version of how to do this. Thanks!!

    #587934

    Hey!

    as I said in german: it’s not a theme related issue but a WordPress’ one, so you would need to ask about this in general WordPress forum.

    Best regards,
    Andy

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.