Pixel is a small piece of HTML-code, which is located on the client's site. This piece of code does not change the structure and content of the site. The purpose of the pixel is to record the user's actions on the site to help advertising platform GetIntent show more relevant ads. |
Pixel must be installed in the bottom section of the <head> before the closing tag </ head>.
GetIntent supports three kinds of pixels:
- "Tracking pixel" - user's page views tracking
- "Cart pixel" - cart adding action tracking
- "Conversion pixel" - conversion (purchase) tracking
How to install a Getintent pixel with a minimum set of data for proper e-commerce functioning?
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] | no | Your website ID in the Getintent interface. For more information: Sites and Conversion |
| [product_id] | yes | The ID of the product in your internal system should match the YML ID. Otherwise leave this field blank. |
| [pixel_id] | yes | Pixel 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] | no | Your website ID in the Getintent interface. For more information: Sites and Conversion |
| [product_id] | yes | The ID of the product in your internal system should match the YML ID. Otherwise leave this field blank. |
| [order] | yes | An 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] | yes | ID (in your internal system) that identifies transaction. For example, It could be order id |
| [revenue] | yes | Revenue generated by this conversion. |
| [pixel_id] | yes | Pixel ID (only for reporting) |
