Jump to content
Sign in to follow this  
Aedificator

[Решено {cache}] Яндекс метрика, не отображается код

Recommended Posts

Здравствуйте!

Получив код метрики вставляю его в footer.tpl, сохраняю, но он не отображается в коде страницы при проверке через браузер . Хотя на хостинге в файле footer.tpl все видно. 

Код метрики в конце под: 

</body></html>
Весь код footer.tpl:

<footer>
  <div class="container">
    <div class="row">
      <?php if ($informations) { ?>
      <div class="col-sm-3">
        <h5><?php echo $text_information; ?></h5>
        <ul class="list-unstyled">
          <?php foreach ($informations as $information) { ?>
          <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
          <?php } ?>
        </ul>
<h5><?php echo $text_service; ?></h5>
        <ul class="list-unstyled">
          <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
          <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
          <li><a href="<?php echo $sitemap; ?>"><?php echo $text_sitemap; ?></a></li>
        </ul>
      </div>
      <?php } ?>
      <div class="col-sm-3">
        <h5><?php echo $text_extra; ?></h5>
        <ul class="list-unstyled">
          <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
          <li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
          <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
          <li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>
        </ul>
<?php if($config_social_footer) { ?>
<h5><?php echo $text_social_link; ?></h5>
        <ul class="list-unstyled"> 
<li>
<?php foreach($config_social_array_footer as $config_social_footer) { ?>
<a target="_blank" href="http://<?php echo $config_social_footer['social_link_footer']; ?>"><img src="<?php echo $config_social_footer['icon_footer_social']; ?>" alt="" title=""></a>
<?php } ?>
</li> 
        </ul>
<?php } ?>
      </div>
      <div class="col-sm-3">
        <h5><?php echo $text_account; ?></h5>
        <ul class="list-unstyled">
          <li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></li>
          <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
          <li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>
          <li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>
        </ul>
<?php if($config_payments_footer) { ?>
<h5><?php echo $text_payments_footer; ?></h5>
        <ul class="list-unstyled"> 
<li>
<?php foreach($config_payments_array_footer as $config_payments_footer) { ?>
<a target="_blank" href="<?php echo $config_payments_footer['payments_link_footer'];?>"><img src="<?php echo $config_payments_footer['icon_footer_payments']; ?>" alt="" title=""></a>
<?php } ?>
</li> 
        </ul>
<?php } ?>
      </div>
 <div class="col-sm-3">
 <?php if(!isset($config_phones_footer) || ($ns_skype_footer_contact) || ($ns_email_footer_contact) || ($ns_schedule_footer) ||($ns_store_address))?>
<h5><?php echo $text_contact_footer; ?></h5>
<ul class="list-unstyled">
<?php if($config_phones_footer) { ?>
<?php foreach($config_phones_array_footer as $config_phone_footer) { ?>
<li><i class="<?php echo $config_phone_footer['icon_footer_phone']; ?> fa-width"></i> <?php echo $config_phone_footer['phone_footer']; ?></li>
<?php } ?>
<?php } ?>
<?php if($ns_skype_footer_contact) { ?>
<li><i class="fa fa-skype fa-width"></i> <?php echo $ns_skype_footer_contact;?></li>
<?php } ?>
<?php if($ns_email_footer_contact) { ?>
<li><i class="fa fa-envelope fa-width"></i> <?php echo $ns_email_footer_contact;?></li>
<?php } ?>
<?php if($ns_schedule_footer) { ?>
<li><i class="fa fa-clock-o fa-width"></i> <?php echo $ns_schedule_footer[$lang_id]['config_schedule_footer'];?></li>
<?php } ?>
<?php if($ns_store_address) { ?>
<li><i class="fa fa-globe fa-width"></i> <?php echo $ns_store_address[$lang_id]['config_store_address'];?></li>
<?php } ?>
</ul>
<p><?php echo $powered_new; ?></p>
  </div>
    </div>
  </div>
</footer>
<script type="text/javascript"><!--
  jQuery.colorbox.settings.maxWidth  = '95%';
  jQuery.colorbox.settings.maxHeight = '95%';
  var resizeTimer;
  function resizeColorBox()
  {
    if (resizeTimer) clearTimeout(resizeTimer);
    resizeTimer = setTimeout(function() {
      if (jQuery('#cboxOverlay').is(':visible')) {
        jQuery.colorbox.resize(true);
      }
    }, 50);
  }
  jQuery(window).resize(resizeColorBox);
  window.addEventListener("orientationchange", resizeColorBox, true);
   $(document).bind('cbox_complete', function(){ 
            setTimeout($.colorbox.resize,100);             
   });
  //--></script>


<!--
OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation.
Please donate via PayPal to donate@opencart.com
//-->


<!-- Theme created by Welford Media for OpenCart 2.0 www.welfordmedia.co.uk -->


<!-- Yandex.Metrika counter -->
<script type="text/javascript">
    (function (d, w, c) {
        (w[c] = w[c] || []).push(function() {
            try {
                w.yaCounter34335705 = new Ya.Metrika({
                    id:34335705,
                    clickmap:true,
                    trackLinks:true,
                    accurateTrackBounce:true,
                    webvisor:true
                });
            } catch(e) { }
        });


        var n = d.getElementsByTagName("script")[0],
            s = d.createElement("script"),
            f = function () { n.parentNode.insertBefore(s, n); };
        s.type = "text/javascript";
        s.async = true;
        s.src = "https://mc.yandex.ru/metrika/watch.js";


        if (w.opera == "[object Opera]") {
            d.addEventListener("DOMContentLoaded", f, false);
        } else { f(); }
    })(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/34335705" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->


</body></html>

Share this post


Link to post
Share on other sites

движок поди 2.х?

если да - после правки файлов движка обязательно сбросить кеш модификаторов, для вступления изменений в силу

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.