Magento

If Magento is your tracking platform of choice, you will be able to implement event tracking code by following these steps. 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. Login to your Magento account and click the "Systems" tab.
  2. Now select "Configuration" under the "Systems" tab.
  3. Under the "General" tab select "Design".
  4. Paste the FuelX pageview event code into the "Miscellaneous" HTML text field.
  5. Finally click "Save Config" to complete the placement of the pageview event code.

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. First confirm that you have access to the theme package in Magento.
  2. Then confirm that the FuelX pageview event code has been placed in the "Miscellaneous HTML" textarea.
  3. In the folder that contains your magento theme, locate the file with the path /app/design/frontend/default/{yourskinname}/template/checkout/success.phtml.
  4. Open this file within a text editor and add your purchase event code to the bottom of the file. The orderId, products, and orderValue fields can be assigned by directly adding those values and wrapping these values in quotes
  5. In order to dynamically transmit order value, order number, and products back to FuelX for increased ecommerce tracking within the FuelX platform, you will need edit the purchase event code and use magento order within the provided code. The dynamic values must be wrapped in quotes.
  6. After this code has been placed, conversions should begin to be recorded with the FuelX dashboard.

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. First confirm that you have access to the theme package in Magento.
  2. Then confirm that the FuelX pageview event code has been placed in the "Miscellaneous HTML" textarea.
  3. In the folder that contains your magento theme, locate the appropriate theme file which you would like to place the code.
  4. Now place the following lead event code at the bottom of the file, if you would like to track lead events as the user reaches the page. In addition, the code can be triggered to record lead events by using onclick or onsubmit events.
  5. Values can be placed within the leadId, leadType, and email fields to track leads. These values must be placed within quotes.
  6. Click "Save" and your file will be saved with the lead event code that has now been placed.
Have more questions? Submit a request