Title: Pixel Tracking Variables
Last modified: July 30, 2019

---

# Pixel Tracking Variables

 *  [kevinwaltermire](https://wordpress.org/support/users/kevinwaltermire/)
 * (@kevinwaltermire)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/pixel-tracking-variables/)
 * I am working with a company called SocialLadder and they required us to add a
   pixel to our order confirmation page. I have inserted the pixel but I need help
   with the information I need to add so that the order information is pulled. See
   below
 * `img src="//socialladder.rkiapps.com/socialladderapi/api/v1/campaign/track?Action
   =SALE&UDF1=[ORDERID]&udf2=[TOTAL]&udf3=TREEOFLIFE&udf4=[UNITS]&udf5=[DISCOUNTCODE]&
   udf7=[EMAIL]"`
 * I need to know what I should put in each [ ] so it pulls the necessary information
   each time an order is placed. Can someone help with this?
    -  This topic was modified 6 years, 10 months ago by [kevinwaltermire](https://wordpress.org/support/users/kevinwaltermire/).
    -  This topic was modified 6 years, 10 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/pixel-tracking-variables/#post-11779220)
 * There is not enough information available to answer your question precisely. 
   What plugin is generating this order confirmation page? Your best bet would be
   to inquire at the dedicated support forum of that plugin.
 * The most I can tell you without more information is all that data was likely 
   already output by the page template, so the data is available to PHP from the
   same source. If the template has something like `TOTAL: <?php echo $total; ?>`,
   you could in part do `&udf2=<?php echo $total; ?>` However, if the `$total` output
   included currency and thousands separators, that may be incompatible with the
   pixel code and would need to be parsed out.
 *  Thread Starter [kevinwaltermire](https://wordpress.org/support/users/kevinwaltermire/)
 * (@kevinwaltermire)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/pixel-tracking-variables/#post-11779258)
 * Thank you for your response bcworkz.
 * The plugin I used to insert the pixel is “Add Tracking Code to WC Thank you Page.”
   The plugin allows you to paste in the pixel which was given to me by SocialLadder.
   The pixel was not generated from a plugin, a generic pixel was sent to me and
   they asked me to input the correct variables in the bracketed areas. For instance[
   orderid] needs to be placed the the variable that will pull the actual orderid
   when a purchase is made.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/pixel-tracking-variables/#post-11782802)
 * OK, sure, but if you supply 3rd party pixel code to the plugin, how are you to
   set run time variables within the code? That question is best answered by the
   plugin devs.
 * The alternative would be to bypass the plugin and place the pixel code directly
   on the order confirmation page template. Then the variables can be populated 
   by PHP prior to output, as my previous minimal example suggests.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Pixel Tracking Variables’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/pixel-tracking-variables/#post-11782802)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
