Overview
The Open Tracked Pixel is a small script for your website. It records page views, carts, leads and purchases, and ties each sale to the ad or channel it came from.
Using a platform? Pick it in the sidebar.
Install the pixel
Get your site key
In the dashboard, open Settings → Pixel & install. Your snippet is there with your key in it. The key starts with
os_.Install the snippet
Paste it inside the
<head>of every page.<script async src="https://app.opentracked.io/os.js?k=YOUR_SITE_KEY" data-key="YOUR_SITE_KEY" data-window="30"></script>data-windowis the attribution window in days, from 1 to 90.If you use Follow Google Tag Manager Install with Google Tag Manager Shopify Install on Shopify WooCommerce Install on WooCommerce WordPress Install on WordPress BigCommerce Install on BigCommerce Wix Install on Wix Webflow Install on Webflow Framer Install on Framer Squarespace Install on Squarespace Lovable Install on Lovable GoHighLevel Install on GoHighLevel ClickFunnels Install on ClickFunnels Kajabi Install on Kajabi Check it works
Open your site. The status in Pixel & install turns green. Need help? See Test and troubleshoot.
Track events
Page views are automatic. For anything else, call opentracked when it happens.
opentracked('track', 'add_to_cart', {
product_id: 'SKU-1',
product_name: 'Product name',
value: 49.00,
currency: 'USD'
});Standard events
| Event | When to fire it |
|---|---|
page_view | A page loads (automatic) |
view_item | A visitor views a product |
view_item_list | A visitor views a product list |
add_to_cart | An item is added to the cart |
remove_from_cart | An item is removed from the cart |
begin_checkout | Checkout starts |
checkout_contact | Email or phone entered at checkout |
add_payment_info | The payment step is reached |
purchase | An order is paid. Needs an order_id |
search | A visitor searches. Send search_term |
generate_lead | A lead form is submitted |
Schedule | A meeting or appointment is booked |
sign_up | A visitor creates an account |
subscribe | A visitor subscribes |
custom | Anything else |
Custom events
Use custom and describe it in properties.
opentracked('track', 'custom', {
properties: { name: 'clicked_pricing' }
});Track purchases
If you use your own checkout, send a purchase when an order is paid.
opentracked('track', 'purchase', {
order_id: '1001',
value: 98.00,
currency: 'USD',
items: [{ id: 'SKU-1', name: 'Product name', qty: 2, price: 49.00, image: 'https://example.com/photo.jpg' }]
});order_idis required and must be unique.- Fire it once, on the thank-you page.
- The same
order_idnever counts twice. image(an https link) andskuon an item are optional. With them the order and product pages show the product picture without a catalogue.
Attach customer details
Add email, name or phone to the purchase, or call identify once and they are added to every event after it.
opentracked('identify', {
email: '[email protected]',
name: 'Jane Doe',
phone: '+15551234567'
});Do not hash emails or phone numbers, and never send card numbers or passwords.