Skip to content

Publishing Pixel

WP Pixel enables the collection of data on user activity on publishers' websites. This data is used to better tailor advertising and sponsored content to audiences, resulting in higher effectiveness of campaigns implemented on the WP network.

Integration

The client is responsible for implementing the standard WP Pixel embed code and implementing the "View" event on each subpage of the website. Detailed instructions can be found here.

WP Pixel Quick Installation Guide:

  1. Enter your PIXEL_ID in the box and confirm:
  2. Copy the code block below
    <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(), w[n].v = '2.0', 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');
        wph('go');
    </script>
    
  3. Paste it into the page source or the appropriate place in your chosen implementation model.
  4. Request verification. Done!

Important!

Remember to PIXEL_ID replace the entry with your own Pixel ID!

The proper embedding of the WP Pixel tracking script, i.e. after the user has given consent on the portal, is the responsibility of the website administrator.

The script should be embedded in its entirety, and calling a function in it wph('go') means the user consents to tracking (traffic tracking).

Withdrawing user consent should result in the function being called wph('stop').

Important!

If a GDPR banner appears, the script should not run before consent is provided. It should be executed immediately after consent is granted (without refreshing the page).

If consent is denied, the script should not run either before or after refreshing the page.

Event "View"

This is a universal code that can be embedded throughout the entire website. It's an analytical event. The event is triggered after a function init(); from the embed script.

Important

The script should be embedded on the home page and all other subpages of the website.

<script>
  wph('track', 'ViewContent', { content_name: 'View' });
</script>
  • em — hashed user email address (SHA-256)
  • ltid — unique user identifier (string)
  • ltid_name — name of the cookie storing the ltid, if the value comes from a cookie

It is recommended to read the GDPR and Privacy Policy.