Custom Website

If you wish to place tracking code on a site you have created yourself without the use of an ecommerce platform or tag management solution the process is very easy. 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 source code of every page you wish to track events.
  2. Place the code provided within the head tag. Best practice is to include the pageview event code just below the opening head tag. The provided code should be placed within every page on your website.

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. Place your purchase event code within the page that a user reaches directly after your conversion event takes place. For example, this page is usually a Thank You page or Receipt page.
  2. The conversion event code can be setup to record order ids, order values, products, and emails. These fields will need to be placed within the code and the values wrapped in quotes.

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 the source code of every page you wish to track lead events.
  2. Place your lead event code within the page that a user reaches directly after your conversion event takes place. For example, this page is usually a signup success page. In addition, you can have the code be triggered through a onclick event.
  3. Values can be placed within the leadId, leadType, and email fields to track leads. These values must be placed within quotes.
Have more questions? Submit a request