You can now add Facebook and Google Analytics Pixel Tracking Codes within WarriorPlus so that you can gather more data about your buyers and prospects, as well as engage them in retargeting campaigns, etc.
How to Set Up a Pixel Tracking Code within WarriorPlus
Go to https://warriorplus.com/account/tracking and click on "+Add Pixel"
Then, you'll have the option to choose 'Facebook' or 'Google Analytics' as well as name the Pixel (for your records) and add the pixel code from Facebook or Google, as seen below:
To get your Facebook pixel code, Go to: http://facebook.com/ads/manager/pixel/facebook_pixel
Copy the numeric 'Pixel ID' shown on the page, as seen here:
For Google, Go to: https://analytics.google.com/analytics/web/#management/Settings
Click on 'Tracking info'
Click on 'Tracking Code'
Copy the 'Tracking ID' shown on the page, as seen here:
Adding Your Pixel to Your Offers/Products:
Vendors:
Within the Product Editor AND/OR Offer Editor, you may add your tracking pixel(s). It will look like this:
Add Your Tracking Code to Your Sales Page:
After creating your pixel, you will need to add the snippet of code to your sales page (or have your developer do it).
When you click on "Get Code" to get the buy button code for your offer, there will be a "External Tracking / Pixels" TAB. Click on that tab to get the snippet.
See below:
Then…
Affiliates:
When you go to "Affiliates" >> "Get Links" and you click on "Get Link" for an offer, you will see a popup like the one below. To turn tracking on, you must toggle the 'ON' switch, which will trigger the tracking options for Facebook, Google, etc.
Setting up an Image Pixel URL:
To use an image pixel URL, it’s the same process as above for vendors and affiliates to create the initial pixel and apply it to your links, etc.
Here are the following available tokens that can be used for image pixel URLs and how they are used:
((event)):
Event type 'wpView', 'wpCheckout', or 'wpPurchase'
((sale_id)):
Sale ID in the format of 'sale_[salecode]'. wpPurchase event only
Example 'sale_dj0hmqc9'
((product_id)):
Product ID in the format of 'product_[listingcode]'.
Example 'product_nbtf0v'
((product_name)):
Product name.
((offer_id)): Offer ID in the format of 'ofr_[offercode]'.
Examplle 'ofr_b655jd'.
((product_price)):
Product price.
((sale_amount)):
Sale amount (after coupon is applied)
((recurring)):
Recurring flag 'true' or 'false'.
((hop_sid)):
Hop SubID. There could be one for vendor and one for affiliate (user only sees their own SubID)
((hop_tid)):
Hop TrackID. There could be one for vendor and one for affiliate (user only sees their own TrackID)
((sid)):
Button tracking code. (vendor only)
((customer_id)):
Customer ID in the format of 'cus_[personcode]'. wpPurchase event only (vendor only)
Example 'aff_u98a3d3601e35408'
((affiliate_id)):
Affiliate ID in the format of 'aff_[personcode]'. (vendor only)
Example 'aff_u98a3d3601e35408'
((payment_gateway)):
Payment method 'Stripe','Paypal','Wallet', or 'Free'. wpPurchase event only (vendor only)
((payment_gateway_txn)):
Payment transaction ID. wpPurchase event only (vendor only)
Exmaple 'ch_1BeS1nJPLfZZFJQ5VpUVzGRd'
Image URL Example:
http://your-pixel-domain.com/?event=((event))&sid=((sid))
Event data
Listed pre-defined event and W+ custom event with example data below that are included when a pixel is called:
'View' event for offers
'Checkout' event for offers
gtag('event', 'begin_checkout', { value: 23.30, currency: 'USD' }); gtag('event', 'wpCheckout', { product_id: 'product_nbtf0v', product_name: 'Product name', recurring: 'false', offer_id: 'ofr_b655jd', sale_currency: 'USD', product_price: '23.30', sale_amount: '23.30', affiliate_id: 'aff_u7c80ca92f1c76c9', hop_tid: 'tid29', hop_sid: 'subid29', sid: 'buttonsid28' });
fbq('track', 'AddToCart', { value: 23.30, currency: 'USD' }); fbq('trackCustom', 'wpCheckout', { product_id: 'product_nbtf0v', product_name: 'Custom Pixel 52072', recurring: 'false', offer_id: 'ofr_b655jd', sale_currency: 'USD', product_price: '23.30', sale_amount: '23.30', affiliate_id: 'aff_u7c80ca92f1c76c9', hop_tid: 'tid29', hop_sid: 'subid29', sid: 'buttonsid28' });
'Purchase' event for offers
gtag('event', 'purchase', { value: 23.40, currency: 'USD', transaction_id: 'sale_jvc2n3tk', tax: '0.00', shipping: '0.00', items: { id: 'product_nbtf0v', price: '23.40' } }); gtag('event', 'wpPurchase', { product_id: 'product_nbtf0v', product_name: 'Product Name', recurring: 'false', offer_id: 'ofr_b655jd', sale_currency: 'USD', sale_id: 'sale_jvc2n3tk', product_price: '23.30', sale_amount: '23.30', customer_id: 'cus_u98a3d3601e35408', payment_gateway: 'Stripe', payment_gateway_txn: 'ch_1BeVKbJPLfZZFJQ5IGGiSi9E', affiliate_id: 'aff_u7c80ca92f1c76c9', hop_tid: 'tid29', hop_sid: 'subid29', sid: 'buttonsid28' });
fbq('track', 'Purchase', { value: 23.40, currency: 'USD' }); fbq('trackCustom', 'wpPurchase', { product_id: 'product_nbtf0v', product_name: 'Custom Pixel 52072', recurring: 'false', offer_id: 'ofr_b655jd', sale_currency: 'USD', sale_id: 'sale_jvc2n3tk', product_price: '23.30', sale_amount: '23.30', customer_id: 'cus_u98a3d3601e35408', payment_gateway: 'Stripe', payment_gateway_txn: 'ch_1BeVKbJPLfZZFJQ5IGGiSi9E', affiliate_id: 'aff_u7c80ca92f1c76c9', hop_tid: 'tid29', hop_sid: 'subid29', sid: 'buttonsid28' });
Not included if it's an affiliate pixel:
affiliate_id
customer_id
payment_gateway
payment_gateway_txn
Not included if a pixel is set at the product level:
offer_id
If there is no value, the field is not included.
-----
Pixel URL format
Which shows up as page view in Google:
Offer:
View (sales page - JS from offer builder must be embedded in the sale page)
Checkout
Purchase (thank you page)
Standalone product:
Checkout
Purchase (thank you page)
-----
Tracking codes
There are 3 types of 'tracking' code for vendors and 2 types for affiliates that they can use.
sid
This is for buy buttons and vendors enter it from:
hop_sid
This is the 'SubID' and vendors usually enter it from:
For affiliates the sid can be appended to affiliate links in the following format: https://warriorplus.com/o2/a/[affcode]/0/[hop_sid]
hop_tid
This is a new hop tracking code that can be used to track a customer. It can be appended to vendor or affiliate links after the hop_sid.
Format: