Skip to main content

How to Add Pixel Tracking Code as a Vendor or Affiliate

Learn how to add Facebook and Google Analytics tracking pixels to your WarriorPlus offers and products to collect valuable data, retarget buyers, and optimize your campaigns.

How to Add Pixel Tracking Code as a Vendor/Affiliate

You can now add Facebook and Google Analytics pixel tracking codes within WarriorPlus to collect valuable insights about your buyers and prospects. This also enables you to run retargeting campaigns and track performance.

Setting Up a Pixel Tracking Code for Both Vendors and Affiliates

In order to use your tracking pixel, either as a vendor or an affiliate, you have to set it up in your your account first.

Adding Your Facebook Pixel

To get your Facebook Pixel code:

Adding Your Google Analytics Pixel

Log into your Google account and go to: analytics.google.com

  • Click Tracking Info

  • Click Tracking Code

  • Copy the Tracking ID displayed

Adding Your Pixel to Offers/Products (Vendor)

Within the Product Editor and/or Offer Editor, you can add your tracking pixels.

Adding Your Pixel Code to Your Sales Page

After creating your pixel, you'll need to add the snippet to your sales page (or have your developer add it).

Click Get Code for your buy button ====> then go to the External Tracking / Pixels tab to get the snippet:

For Affiliates

Navigate to:

  • Affiliates =====> Get Links

  • Click Get Link for an offer. A popup will appear.

  • Toggle ON to activate tracking options (Facebook, Google, etc.)

Setting Up an Image Pixel URL

The process is the same for vendors and affiliates when using an image pixel URL. Use the available tokens below in your URL for dynamic tracking:

Available Tokens

  • ((event)): wpView, wpCheckout, or wpPurchase

  • ((sale_id)): Sale ID (e.g., sale_dj0hmqc9)

  • ((product_id)): e.g., product_nbtf0v

  • ((product_name))

  • ((offer_id)): e.g., ofr_b655jd

  • ((product_price))

  • ((sale_amount))

  • ((recurring)): true or false

  • ((hop_sid))

  • ((hop_tid))

  • ((sid))

  • ((customer_id)): e.g., cus_u98a3d3601e35408

  • ((affiliate_id)): e.g., aff_u98a3d3601e35408

  • ((payment_gateway)): e.g., Stripe, PayPal, Wallet

  • ((payment_gateway_txn)): e.g., ch_1BeS1nJPLfZZFJQ5VpUVzGRd

Example Image Pixel URL:

http://your-pixel-domain.com/?event=((event))&sid=((sid))

Event Examples

View / Checkout Events

Google Example:

gtag('event', 'begin_checkout', {
value: 23.30,
currency: 'USD'
});

gtag('event', 'wpCheckout', {
product_id: 'product_nbtf0v',
offer_id: 'ofr_b655jd',
sale_amount: '23.30',
// etc...
});

Facebook Example:

fbq('track', 'AddToCart', {
value: 23.30,
currency: 'USD'
});

fbq('trackCustom', 'wpCheckout', {
product_id: 'product_nbtf0v',
// etc...
});

Purchase Event

Google Example:

gtag('event', 'purchase', {
value: 23.40,
transaction_id: 'sale_jvc2n3tk',
// etc...
});

gtag('event', 'wpPurchase', {
product_id: 'product_nbtf0v',
customer_id: 'cus_u98a3d3601e35408',
payment_gateway: 'Stripe',
// etc...
});

Facebook Example:

fbq('track', 'Purchase', {
value: 23.40,
currency: 'USD'
});

fbq('trackCustom', 'wpPurchase', {
product_id: 'product_nbtf0v',
// etc...
});

Data Not Included:

  • Affiliate Pixels won’t include:

    • affiliate_id

    • customer_id

    • payment_gateway

    • payment_gateway_txn

    • sid

  • If a field has no value, it won’t be included

Pixel URL Structure

Page View Format for Offers:

http://warriorplus.com/buy/trk/view/[page_code]/0

Checkout:

http://warriorplus.com/buy/trk/checkout/[page_code]/[listingcode]?p=[price]&lid=[logid]

Purchase:

http://warriorplus.com/buy/trk/purchase/[page_code]/[listingcode]?s=[salecode]&lid=[logid]

Tracking Code Types

Vendors:

  • sid: Button Tracking Code (Vendor Only)

  • hop_sid: Hop SubID

  • hop-tid: Hop TrackID

Format for vendor links:

https://warriorplus.com/o2/v/[offercode]/[pagecode]/[hop_sid]/[hop_tid]

Affiliates:

Format for Affiliate links:

https://warriorplus.com/o2/a/[affcode]/[pagecode]/[hop_sid]/[hop_tid]



If you have any further questions, please don’t hesitate to reach out — our support team will respond promptly. We also invite you to join our Facebook community by clicking here.

Finally, on behalf of the entire WarriorPlus team, welcome to the family.

Did this answer your question?