/ Pixel Setup

Magellan Pixel Setup

Enter your token and select what you want to track. Copy each snippet and paste it into your website. Required steps must be installed before optional events will work.

1
Token Setup Base pixel — install on every page
Required
Install once per page — paste this in the <head> of every page you want to track. Nothing works without this.
<head> — every page
2
View Event Tracks page visits — required for all other events
Required
Must be on every tracked page, placed directly after the Token Setup script. All optional events below depend on this being present.
<head> — every page, after Token Setup
Identify Event Track logged-in users — attach to login & registration pages
Optional
Links a visitor to a known user ID. Add this to pages where users log in or register. Lets you see repeat visitors and build targeted follow-up lists.
<head> — login & registration pages
Lead Event Newsletter signups, form submissions, subscription confirmations
Optional
Fire when a user completes a signup or subscription action. Add to the page or form confirmation where the lead is generated.
<head> — signup & subscription confirmation pages
Product Event Track individual product page views
Optional
Add to every product page. Replace the placeholder values with your actual product data — this lets Magellan know which products are being viewed.
<head> — each product page
Add to Cart Event Tracks item value — attach to the Add to Cart button click
Optional
This one goes on a button click, not a page load. Your developer attaches this script to the Add to Cart button's click handler. This is how Magellan captures the purchase value for ROAS calculation.
Button click — Add to Cart button
Checkout Event Fires on the order confirmation / checkout completion page
Optional
Confirms a completed purchase. Add to the order confirmation or "Thank you" page. Works alongside the Add to Cart event to give a full picture of the purchase funnel.
<head> — order confirmation page
Promo Code Event Track when a discount code is redeemed
Optional
Place inside the code that handles promo code redemption — fires when the customer successfully applies a discount code.
Promo code redemption handler