Answer the question
In order to leave comments, you need to log in
Why does the validator swear on VK Pixel?
I insert the code as recommended by the VK instruction, put the code before the closing tag </head>
But when checking through the validator, it gives the following errors (5 in total)
Then I put the code in the body of the site <body>.......</body>
, then there are even more errors (and here there are more than 100)
What is the reason? What am I doing wrong?
<!-- VK Pixel Code -->
<script type="text/javascript">!function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://vk.com/js/api/openapi.js?169",t.onload=function(){VK.Retargeting.Init("НАШ_ID"),VK.Retargeting.Hit()},document.head.appendChild(t)}();</script><noscript><img src="https://vk.com/rtrg?p=НАШ_ID" style="position:fixed; left:-999px;" alt=""/></noscript>
<!-- End VK Pixel Code -->
Answer the question
In order to leave comments, you need to log in
So the validator tells you in black and white what the problem is))
In the first case, it says that you are trying to use an image in the head tag, which, for obvious reasons, looks like an error. The validator knows nothing about pixels, terkers, and so on. But it perceives the image as part of the content.
When all this is transferred to the body, you are told that, firstly, the image does not have all the required attributes, and secondly, you are trying to use a tag in a tag, but this is not allowed.
And so on down the list
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question