Дополнительно
При необходимости, можно настроить отдельно вызов кода инициализации (также в <head>):
<script type=»text/javascript»>
if (typeof __GetI === «undefined») { __GetI = []; } (function () { var domain = (typeof __GetI_domain) == «undefined» ? «px.adhigh.net» : __GetI_domain; var src = (‘https:’ == document.location.protocol ? ‘https://’ : ‘http://’) + domain + ‘/p.js’; var script = document.createElement( ‘script’ ); script.type = ‘text/javascript’; script.src = src; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(script, s); })(); </script> |
и отдельно — регистрацию события в нужном месте (тип Conversion приведен для примера, так можно делать с любым типом события):
var p = {
type: «CONVERSION», /* config START */ site_id: «[site_id]», order:[ {id:»product_id1″, price:»24.90″, quantity:2}, {id:»product_id2″, price:»36.90″, quantity:1} ], transaction_id: «[transaction_id]», revenue: «[revenue]», pixel_id: «[pixel_id]» /* config END */ }; __GetI.push(p); |