Advanced Settings in PixelYourSite Plugin

The PixelYourSite plugin is great for implementing pixels on the site. In the previous article – Installing PixelYourSite on your website – we explained how to easily implement the plugin and pixels. In the following post, we will learn how to add Google Ads conversion tracking code, how to set up events on the site, how to build Custom Conversions on Facebook and Custom Audiences based on clicks on the site (ClickEvent), as well as learn about automatic events fired on every page of your site (GeneralEvent), and how to add additional pixels to the header and footer of our website. 

Setting up Google Ads conversion tracking code

In the previous article we explained how to install the Google Ads code on your website. You can track conversions (a specific action taken by the user) on specific pages, on a button click on the site, page scroll, hovering the mouse over a button, or another default PixelYourSite event.
 
In the following steps, we will explain how to set up Google Ads conversion tracking code:
 
Step 1: Create the conversion label
 
First, you need to create the conversion inside your Google Ads account: Open your account and click on the Tools link in the top left menu and click on Conversions. Then click the blue plus button to set up a conversion:
 
Google Ads conversion tracking configuration in PixelYourSite dashboard
Choose the Website option:
Setting up website conversion tag for Google Ads in PixelYourSite
Give the conversion a name, choose a category, decide whether to assign it a value, and whether to count every conversion or one per visitor, and click CREATE AND CONTINUE
WooCommerce event parameter settings inside PixelYourSite plugin
Then click on the Use Google Tag Manager option (we will not use Tag Manager but PixelYourSite Pro, but we will click the option to save time):
Global tracking event options in PixelYourSite WordPress dashboard
Copy the Conversion label:
Meta Conversions API settings panel in PixelYourSite
Step 2: Configure the conversion on your website
 
Now we will configure in PixelYourSite where and when to fire the conversion.
 
Open the PixelYourSite Pro settings, click on the Events tab in the top menu, and click the blue Add button:
 
Custom event trigger parameters inside PixelYourSite options
Give the new event a clear name. It is recommended to use the same name you used in Google, to avoid future confusion.
 
Set when to trigger the conversion. Choose one of the available options:
 
1. Visit to a specific page (e.g. thank you page)
2. Click on URL
3. Click on CSS Selector
4. Mouse hover over CSS Selector
5. Page scroll 
 
In this example, we fire the conversion upon visiting a specific page
GDPR cookie consent integration settings in PixelYourSite
Scroll down and look for the Google Ads section. Enable the button so that the Google Ads conversion tag is fired:
Header and footer script injection in PixelYourSite advanced tab
Paste the Conversion label into the relevant field
 
You can also configure parameters for each conversion.
 
Tracking conversion value:
Add a new parameter and give it the name value. Add the value you want to receive each time a conversion occurs

Setting up events on the site

Events are small snippets of code that send information about what your visitors are doing on your site. With events, you can track important actions, such as page visits, clicks, scrolling, mouse hover, etc.

Event Parameters

Each event can have multiple parameters, which send additional information about that specific action. Facebook events can have all kinds of parameters, whereas Google Analytics events have a fixed structure. The plugin automatically tracks several events. In addition, you can also configure your own events in the Events tab:

Main dashboard overview showing active pixels in PixelYourSite

In the Events tab, you will find a list of all the events you previously configured (if any). Hovering over each event will display several options: Disable, Enable, and Remove. Additionally, you can edit your events.

The events table will display information about the events as follows:

Name: The name given to the event

Trigger: The condition by which the event will be fired, such as: visit to a specific page, click on a button, click on a specific URL, hovering the mouse over an element on the page, page scroll, etc.

Networks: On which system the event will be fired – Facebook, Google Analytics, Google Ads, etc.

Enable / Disable events

If for any reason you need to disable all events, you can do so from the top button. Click Save Settings after making changes so they take effect

Adding events

Give your event a relevant name; the name is used for internal purposes and is visible only to you:

Advanced event delay and trigger settings in PixelYourSite

Set the conditions for firing the event

Choose one of the available conditions:

1. Visit to a specific page (e.g. thank you page)
2. Click on URL
3. Click on CSS Selector
4. Mouse hover over CSS Selector
5. Page scroll 

When selecting the URL option, you can use contains or match. When URL Contains is selected, any URL containing the string will fire the event. If URL Match is used, only the exact URL will fire the event.

* You can add a delay of a few seconds before firing the event under the delay setting:

Configuring URL visit triggers for custom events in PixelYourSite

Configure your event

You can configure the event for one or more networks: Facebook, Google Analytics. Each network will have its own set of standard events, but you can also configure your own custom events.

Events on Facebook:

Click the Enable on Facebook button, choose the event type. There are standard events, but you can also configure custom events.

Notes:
– Standard events can be used for optimization and reports. You can also build Custom Audiences and Custom Conversions.
– Custom events cannot be optimized or viewed in reports; for this, you need to create Custom Conversions. With custom events, you can build a Custom Audience.

Enable the Add Parameters button to add value, currency, and additional parameters:

Dynamic currency and value parameter settings in PixelYourSite

Events in Google Analytics

Turn on the Enable on Google Analytics button. Events in Google Analytics have a fixed structure: 
* action
* category
* label
* value

Google Analytics 4 measurement ID configuration in PixelYourSite

Signal Event

SignalEvent is an automatic feature in the plugin that tracks every click on the website and sends an Event to the Facebook Pixel that includes information such as traffic source, click date, and more. In Analytics, data is sent as an Event that includes the link and the text on the button (or link).

You can use SignalEvent to create Custom Audiences and Custom Conversions. This event is designed to help you replace almost any custom event you have. Signal has various triggers and relevant parameters that will help you track any action.

The PageView event receives default parameters, plus two additional tags – tags and post_category. All events tracked by the plugin have many parameters configured by default. They will help you build almost any Custom Audience or Custom Conversion, for example:

You can find its settings on the plugin’s main page:

Meta Pixel signal event configuration in PixelYourSite plugin

Signal event parameters

The most important parameter is event_action. This parameter identifies the action that triggers the event (internal click, video play, form, etc.).

There are additional types of parameters:

text: The text from a link, button, or form button.

target_URL: The destination URL of the link.

form_class: Tracks the form’s CSS.

form_id: Tracks the form’s CSS ID.

download_type: Tracks the file type, such as PDF, doc, zip, etc.

download_name: Tracks the downloaded file name.

download_URL: Tracks the download URL.

There is a set of “shared parameters” added to all events by the plugin:

page_title: Tracks the title of the page where the event occurs.

post_type: Tracks the type of post where the event occurs.

event_URL: Tracks the URL where the event occurs.

user_role: Tracks the user role of the visitor firing the event.

event_time (pro): Tracks the user’s hour.

event_day (pro): Tracks the user’s day.

event_month (pro): Tracks the user’s month.

traffic_source (pro): Tracks the traffic source.

UTMs (pro): Tracks URL tags.

To check, for example, which parameters are sent in a SignalEvent using the Facebook Chrome extension – Facebook Pixel Helper, go to your site and click on a link or button, and you can see in the extension which parameters are sent to Facebook:

PixelYourSite general settings panel for tracking tags

Facebook Custom Conversions and Custom Audiences based on website clicks (Signal Event)

Track clicks (pro trigger)

SignalEvent will trigger on internal or external links.

event_action: Internal click or external click

target_url: The URL opened by the link

text: Link or button text

Configuring click trigger signals for custom events in PixelYourSite

Facebook Custom Audiences from clicks

You can use the Signal event to create Custom Audiences and Lookalikes.

These Custom Audiences can be very broad, like anyone who clicked a link, or very specific, people who clicked a specific link from a specific page.

Example:

People who clicked outbound links pointing to the pixelyoursite.com website.

Setting up click-based custom audience parameters in PixelYourSite

Facebook Custom Conversions from clicks

You can use the Signal event to create Custom Conversions.

Example:

People who clicked outbound links pointing to the pixelyoursite.com website.

Creating custom conversion triggers for button clicks in PixelYourSite

Please note, just like tracking clicks, you can track video views, phone calls, downloads, email clicks, etc.

Implementing additional scripts in the website Header and Footer

The Head & Footer option allows adding additional scripts to pages on the site. Open PixelYourSite from the menu, and click on the Head & Footer link in the right-hand menu.
 
You can enable or disable all scripts via the Enable Head and Footer set-up button:
Advanced user data matching options in PixelYourSite plugin
Note: Do not use this option to insert the Facebook Pixel, Google Analytics code, or Google Ads code. For these pixels, the system has built-in options that you can read about in the previous article. Scripts inserted under Head & Footer will be included on every page across the website.
 
Adding scripts in the Head section
You can add the scripts for all devices, or only desktop or only mobile:
Automated eCommerce purchase event tracking options in PixelYourSite
Adding scripts in the Footer section:
You can add the scripts for all devices, or only desktop or only mobile:
Server-side tracking configuration interface in PixelYourSite

Summary

The PixelYourSite plugin is a feature-rich plugin that allows us to track many user behaviors on our website, build smart audiences, and optimize for audiences that performed specific actions on our site. The plugin’s advanced features save us a lot of hassle in implementing complex tracking codes.

To use the full plugin – you need to buy the bundle that includes both the Pro version of the plugin and the product feed plugin – a combined bundle can be purchased here 
 

A bit about me

Guy Margi, 26 years old, specialist in digital campaign management across a variety of channels. 

PixelYourSite plugin settings page in WordPress admin dashboard