Woocommerce

If you are using Woocommerce as your ecommerce platform, you will need to follow the steps below to enable the FuelX Intelligent pixel. This pageview event code will need to placed across your entire website in order for additional event tracking to track and record data properly.

Page View

Implementation

  1. Access your Wordpress Dashboard and select "Appearance" in the left hand panel.
  2. Now select "Editor" and you will see various template options in the main section of the Wordpress interface.
  3. Select the header.php file and append the code to the just below the opening head tag.
  4. Click "Save" and the pageview event code will begin firing on every page.

Purchase

Code

When placing the tracking code on your site, be sure to place the appropriate Platform Value from the Field Values table into your tracking code. If you do not wish to track certain values, such as products or orderValue, please remove the placeholders in the trackng code and leave the value as empty quotes. View the implementation screenshots below for reference.

fuelx("purchase", {
    orderId:"ORDERID",
    orderValue:"ORDERVALUE",
    products:"PRODUCTS1;PRODUCTS2"
});

Field Values

FieldDescriptionRequiredPlatform Value
orderId value which identifies the order and matches the records of your Ecommerce platform or database Yes Defined By Advertiser
orderValue number which records the revenue of the transaction No Defined By Advertiser
products values which record the SKU of products which have been purchased by the user, multiple SKUs can be seperated by ";" No Defined By Advertiser

Implementation

  1. Access your Wordpress Dashboard and select the Woocommerce tab.
  2. Now Select the Woocommerce "Settings" tab.
  3. You will then need to locate the Integrations tab.
  4. Now, select the "Code Injection" link within the "Advanced" section.
  5. Finally copy your purchase event code and paste the code within the "Checkout Scripts" textarea. You can directly add the order id and order value to the corresponding fields. The values must be wrapped in quotations.
  6. In order to dynamically transmit order value and order id back to FuelX for increased ecommerce tracking within the FuelX platform, you will need to edit the purchase event code and use two variables within the provided code, as shown in the example below.
  7. Lastly, click "Save" to enact the changes.

Lead

Code

When placing the tracking code on your site, be sure to place the appropriate Platform Value from the Field Values table into your tracking code. If you do not wish to track certain values, such as email or leadType, please remove the placeholders in the trackng code and leave the value as empty quotes. View the implementation screenshots below for reference.

fuelx("lead",{
    leadId:"LEADID",
    leadType:"LEADTYPE",
    email:"EMAIL"
});

Field Values

FieldDescriptionRequiredPlatform Value
leadId value which identifies the lead Yes Defined By Advertiser
leadType text which defines the type of leads which have been submitted, for example "signup" or "leads" No Defined By Advertiser
email email of the user completing the form No Defined By Advertiser

Implementation

  1. Access your Wordpress Dashboard and select the Woocommerce tab.
  2. Now Select the Woocommerce "Settings" tab.
  3. You will then need to locate the Integrations tab.
  4. Now, select the "Code Injection" link within the "Advanced" section.
  5. Finally copy your lead event code and paste the code within the "Registration Scripts" textarea.
  6. In order to dynamically transmit lead id, lead type, and email back to FuelX for increased ecommerce tracking within the FuelX platform, you will need to edit the lead event code and use two variables within the provided code, as shown in the example below.
  7. Click "Save" to enact the changes.
Have more questions? Submit a request