D
D
Dumaushiy2017-11-27 14:09:04
Yandex.Metrica
Dumaushiy, 2017-11-27 14:09:04

There is an html5 template and Yandex metrics code, how to change the template?

Can you please tell me how to correctly insert my Yandex metrics code into the HTML5 template?
having looked at the code, I see two types of headers there, one from the Yandex metrics code, others from the html5 template. as a result, there is no mention of the Yandex metric on the page, although its code is inserted into the body of the template. how can I make the Yandex metric visible on the page, i.e. to make it clear that the metric works?
here is the code parts of the html file from the template-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>222</title>
   </head>
 <body>
  <h1>Контент SEO Копирайтинг</h1>
  
<!-- Yandex.Metrika informer -->
--здесь вставленный код яндекс метрики---
далее код html шаблона-
<head>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->

  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Free HTML5 Template by mypartner.life" />
  <meta name="keywords" content="free html5, free template, free bootstrap, html5, css3, mobile first, responsive" />
  <meta name="author" content="mypartner.life" />

  	<!-- 

   -->

  	<!-- Facebook and Twitter integration -->
  <meta property="og:title" content=""/>
  <meta property="og:image" content=""/>
  <meta property="og:url" content=""/>
  <meta property="og:site_name" content=""/>
  <meta property="og:description" content=""/>
  <meta name="twitter:title" content="" />
  <meta name="twitter:image" content="" />
  <meta name="twitter:url" content="" />
  <meta name="twitter:card" content="" />

  <!-- Modernizr JS -->
  <script src="js/modernizr-2.6.2.min.js"></script>
  <!-- FOR IE9 below -->
  <!--[if lt IE 9]>
  <script src="js/respond.min.js"></script>
  <![endif]-->

  </head>

 
    <!-- START #fh5co-header -->
    <header id="fh5co-header-section" role="header" class="" >
      <div class="container">
        <!-- <div id="fh5co-menu-logo"> -->
          <!-- START #fh5co-logo -->
---
    <!-- </div> -->

      </div>
    </header>
    <!-- Waypoints -->
    <script src="js/jquery.waypoints.min.js"></script>
    <!-- Main JS -->
    <script src="js/main.js"></script>

  </body>
</html>

those. it turns out that the head opens twice, maybe because of this the Yandex metrics are not visible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2017-11-27
@shambler81

I don't think you asked the right question.
On the Yandex page, the metric will not be visible.
Only in the body, before the closing body, it is desirable that in front of it, everything below will not fall into the metric.
Now about display on the site
If you need to display the metric on the site as an icon.
Go to the metric and generate a code WITH THIS ICON (several display options), by default it is not displayed !!!!!
In general, it seems like classified information and no one shows it. (if you are not from the likkhi of the 90s)
The metric itself will work after some time
AND WITHOUT A BADGE!

D
Dumaushiy, 2017-11-27
@Dumaushiy

question - how to change the template to html5 to insert the Yandex metric there? (all the codes I provided are not shown)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question