Jump to content

tag śledzenia google


koening

Recommended Posts

Witam

Mógłby mi ktoś pomóc w rozwiązaniu poniższych problemow, które pojawiły się w google tag assistant? Chciałem śledzić konwersje i w pliku order-confirmation.tpl umieściłem taki kawałek kodu:

<script type="text/javascript">
    /* <![CDATA[ */
    {literal}
    var google_conversion_id = XXXXXXXX;     
    var google_conversion_language = "en";  
    var google_conversion_format = "3";        
    var google_conversion_color = "ffffff";    
    var google_conversion_label = "XXXXXXXX"; 
	
    if ( {/literal}{$name_of_cart_value_variable}{literal} ) {
        var google_conversion_value =  "{/literal}{$name_of_cart_value_variable}{literal}"
        var google_conversion_currency =  "{/literal}{$name_of_currency_variable}{literal}"
    }                                           
    var google_remarketing_only = false;       
    {/literal}
    /* ]]> */
</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/XXXXXX/?value={$name_of_cart_value_variable}&conversion_currency={$name_of_currency_variable}&label=Purchase&script=0"/>
    </div>
</noscript>

W google tag assistant wyskakują mi takie błędy:

0mAkOCX.png

Edited by koening (see edit history)
Link to comment
Share on other sites

Poradziłem sobie z dwoma błędami ale został mi jeszcze jeden "No HTTP response detected". Ma ktoś jakiś pomysł?.

Problem rozwiązany poprzez wyłączenie na zapleczu w wydajnosci

> Disable "move javascript to the end"

> Disable "Compress inline javascript to HTML"

Edited by koening (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...