Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

User's page views tracking. This pixel is to be placed on each page. 

<script type="text/javascript">   
if (typeof __GetI === "undefined") {
        __GetI = [];
    }
    (function () {
        var p = {
            type: "VIEW",
            /* config START */
            site_id: "[site_id]",
            product_id: "[product_id]",
            pixel_id: "[pixel_id]"
            /* config END */
        };
        __GetI.push(p);
        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>


You should replace [...] tokens (like [site_id]) with actual values (e.g.:  site_id: "1" ). All the fields are optional except the site_id . You could just skip them or put blanks (""). Though for better conversion results you should provide as much information as possible. 
The table below explains the meaning of each parameter.


Parameter 

Optional

 

Description

 [site_id]noYour website ID in the Getintent interface. For more information: Sites and Conversion
[product_id]yesThe ID of the product in your internal system should match the YML ID. Otherwise leave this field blank. 
 [pixel_id]yesPixel ID (only for reporting)


Cart pixel 

Is to be placed on the cart page. If it is Ajax powered, the pixel should be called by clicking the "add-to-cart" button.

<script type="text/javascript">
    if (typeof __GetI === "undefined") {
        __GetI = [];
    }
    (function () {
        var p = {
            type: "CART_ADD",
            /* config START */
            site_id: "[site_id]",
            product_id: "[product_id]",
            order:[
                {id:"product_id1", price:"24.90", quantity:2},
                {id:"product_id2", price:"36.90", quantity:1}
            ]
            /* config END */
        };
        __GetI.push(p);
        var domain = (typeof __GetI_domain) == "undefined" ? "px.adhigh.net" : __GetI_domain;
        p["forward_tag"] = p["forward_tag"] || false;
        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>



You should replace [...] tokens (like [site_id]) with actual values (e.g.:  site_id: "1" ). All the fields are optional except the site_id . You could just skip them or put blanks (""). Though for better conversion results you should provide as much information as possible. 
The table below explains the meaning of each parameter.


Parameter 

Optional

 

Description

 [site_id]noYour website ID in the Getintent interface. For more information: Sites and Conversion
[product_id]yesThe ID of the product in your internal system should match the YML ID. Otherwise leave this field blank. 
 [order]yesAn order summary. Is to be used only when it's impossible to set product_price and product_id


Conversion pixel

Conversion (purchase) tracking. Is to be placed on a Thank You page.


<script type="text/javascript">
    if (typeof __GetI === "undefined") {
        __GetI = [];
    }
    (function () {
        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);
        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>


You should replace [...] tokens (like [site_id]) with actual values (e.g.:  site_id: "1" ). All the fields are optional except the site_id . You could just skip them or put blanks (""). Though for better conversion results you should provide as much information as possible. 
The table below explains the meaning of each parameter.


Parameter 

Optional

 

Description

 [site_id]no

Your website ID in the Getintent interface. For more information: Sites and Conversion

 [order]

yes

An order summary. 
 [transaction_id]yesID (in your internal system) that identifies transaction. For example, It could be order id
 [revenue]yesRevenue generated by this conversion. 
 [pixel_id]yesPixel ID (only for reporting)


...