Skip to content

WP Pixel installation

Implementation methods

✅ Support of WP Pixel Team

WP Pixel can be implemented with the help of our technical department. Implementation with this method consists of two stages:
1. Implementation of the embed script by the client.
2. Contact the Customer Service Representative or WP Ads Support (support@ads.wp.pl) to request assistance from the Wirtualna Polska technical department in completing the remaining scripting process.

✅ Integration on the e-commerce platform using a dedicated plugin

WP Pixel can be implemented using ready-made integrations with e-commerce platforms. List of available integrations with implementation instructions

✅ Implementation scripts by the client (your development department)

  1. Implementation of the embed script.
  2. Implementation of the other key codes: e-commerce events and additional events

✅ Implementation scripts by SDK mobile apps

Wirtualna Polska has prepared a package of SDK libraries for the implementation of WP Pixel in mobile applications. Documentation for the implementation of WP Pixel using this method is available here.

✅ Implementation scripts by GTM

If you have a Google Tag Manager account associated with your website, you can add the embed script through it. Google Tag Manager (GTM) is a tag management system that allows you to quickly and easily update tracking codes and related code snippets, or tags, on your website or mobile app. Learn more here.

The embed script

Implementation on every page of the website. It is recommended that the script be placed in the <head> or end of <body>section. The strings PIXEL_ID should be replaced with the client's dedicated identifier.

Additionally, the script allows passing of additional parameters. While user-identifying parameters are optional, providing both em and ltid enables the activation of campaigns in environments without third-party cookies — currently in Safari and Firefox browsers, and in the future, also in Chrome.

If you decide not to pass additional parameters, remove the , ADDITIONAL_PARAMETERS entry from the embed script.

Default script with additional parameters

!function(w,p,e,v,n,t,s){w['WphTrackObject'] = n; w[n] = window[n] || function() {(w[n].queue=w[n].queue||[]).push(arguments)}, w[n].l = 1 * new Date(), t=p.createElement(e), s=p.getElementsByTagName(e)[0], t.async=1;t.src=v;s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://pixel.wp.pl/w/PIXEL_ID/tr.js', 'wph'); wph('init', 'PIXEL_ID', ADDITIONAL_PARAMETERS);

Embedding script on your website in 3 simple steps (without additional parameters)

  1. Paste your own WP PIXEL_ID number into input and click OK:
  2. Copy the code block
    <script>
        !function(w,p,e,v,n,t,s){w['WphTrackObject'] = n;
        w[n] = window[n] || function() {(w[n].queue=w[n].queue||[]).push(arguments)},
        w[n].l = 1 * new Date(), t=p.createElement(e), s=p.getElementsByTagName(e)[0],
        t.async=1;t.src=v;s.parentNode.insertBefore(t,s)}(window,document,'script',
        'https://pixel.wp.pl/w/PIXEL_ID/tr.js', 'wph');
        wph('init', 'PIXEL_ID');
    </script>
    
  3. Paste it into your HTML website source or your e-commerce implementation methods.
  4. Request verification. If you already have Google Analytics on your site, it is very likely that the script has been integrated correctly. However, after embedding the script, we suggest contacting your WP administrator for verification. Done!

The event codes

After implementing the embed script, proceed with the implementation of the event codes:

Frequently Asked Questions (FAQ)
Don't have a PIXEL_ID?

Contact your Customer Care Manager.

Data is not being collected properly or there are issues with the Pixel functioning

PIXEL_ID has not been replaced with the identifier in 2 places in the embedding script.