Difference between revisions of "Conversion Tracking"

From Spiffy Stores Knowledge Base

Line 14: Line 14:
 
&currency=<CURRENCY>" height="1" width="20" />
 
&currency=<CURRENCY>" height="1" width="20" />
 
</pre>
 
</pre>
 +
 +
  
 
Looking at the above example we know that we need:
 
Looking at the above example we know that we need:
Line 20: Line 22:
 
* A unique order id. order_name will print out the name of the order such as #2322 which will suite our purposes: {{order_name}}
 
* A unique order id. order_name will print out the name of the order such as #2322 which will suite our purposes: {{order_name}}
 
* Our shops currency. We can either hardcode this or use {{shop.currency}}
 
* Our shops currency. We can either hardcode this or use {{shop.currency}}
 +
 +
 +
  
 
Lets replace the examples with actual liquid code:
 
Lets replace the examples with actual liquid code:
  
 
  <pre><img src="https://www.tracking.com/pixel.gif?amount={{total_price | money}}&order-id={{order_name}}&currency={{shop.currency}}" height="1" width="20" /> </pre>
 
  <pre><img src="https://www.tracking.com/pixel.gif?amount={{total_price | money}}&order-id={{order_name}}&currency={{shop.currency}}" height="1" width="20" /> </pre>
 +
 +
  
 
When a customer reaches the last page of the checkout the code that will actually be delivered to his browser will then look like this:
 
When a customer reaches the last page of the checkout the code that will actually be delivered to his browser will then look like this:
  
 
  <pre><img src="https://www.tracking.com/pixel.gif?amount=55.34&order-id=#4343&currency=USD" height="1" width="20" /> </pre>
 
  <pre><img src="https://www.tracking.com/pixel.gif?amount=55.34&order-id=#4343&currency=USD" height="1" width="20" /> </pre>

Revision as of 09:39, 14 May 2008

Conversion tracking describes the practise of integrating little "bugs" into the checkout process which report back to a centralised third party server when products are sold. This is commonly also described as tracking pixel.

Tracking orders

Tracking pixels can be integrated with the Additional Scripts feature which you can find under Preferences -> Checkout & Payment

You are able to access the store liquid object and you should find all the variables which are customarily available to order notification emails.

Example

Your tracking system asks you to integrate a tracking pixel like this:

<img src="https://www.tracking.com/u?amount=<AMOUNT>&order-id=<ORDER ID>
&currency=<CURRENCY>" height="1" width="20" />


Looking at the above example we know that we need:



Lets replace the examples with actual liquid code:

<img src="https://www.tracking.com/pixel.gif?amount={{total_price | money}}&order-id={{order_name}}&currency={{shop.currency}}" height="1" width="20" /> 


When a customer reaches the last page of the checkout the code that will actually be delivered to his browser will then look like this:

<img src="https://www.tracking.com/pixel.gif?amount=55.34&order-id=#4343&currency=USD" height="1" width="20" />