Conversion Tracking
Automrktr's first-party conversion pixel lets you track what happens on your website after someone sees your social media posts or clicks your ads — without relying on third-party cookies.
What Is the Conversion Pixel?
The conversion pixel is a small JavaScript snippet you add to your website. Once installed, it reports user actions (page views, form submissions, purchases, etc.) back to Automrktr, where they're matched to your social posts and ads.
This data powers:
- Attribution — which campaigns and posts drove the conversion
- ROI calculation — comparing ad spend to revenue generated
- Audience insights — understanding what your converting visitors have in common
Setting Up a Pixel
1. Go to Analytics → Conversion Tracking (or Settings → Pixel).
2. Click Create Pixel.
3. Give the pixel a name (e.g., "Main Website") and enter your website URL.
4. Click Create — a unique Pixel ID is generated.
Installing the Pixel
After creating a pixel, copy the installation code:
<!-- Automrktr Conversion Pixel -->
<script>
(function(a,u,t,o,m,k) {
a[m] = a[m] || function() { (a[m].q = a[m].q || []).push(arguments) };
var s = u.createElement(t); s.async = 1;
s.src = 'https://app.automrktr.io/api/pixel/' + k;
u.head.appendChild(s);
})(window, document, 'script', null, 'am', 'YOUR_PIXEL_ID');
</script>
Where to Place It
Place the pixel snippet in the <head> section of every page on your website. Most website builders have a "Global Scripts" or "Header Code" setting where you can paste it once and have it apply to all pages.
| Platform | Where to Add |
|---|---|
| WordPress | Appearance → Theme Editor → header.php, or use a header plugin |
| Shopify | Online Store → Themes → Edit Code → theme.liquid <head> section |
| Squarespace | Settings → Advanced → Code Injection → Header |
| Wix | Settings → Custom Code → Add Code (Head section) |
| Webflow | Project Settings → Custom Code → Head Code |
Tracking Standard Events
The pixel automatically tracks Page Views on installation. To track additional events, add event calls to your site's JavaScript:
Page View (automatic)
Fired automatically on every page load — no additional code needed.
Click Event
am('track', 'click', { element: 'cta-button' });
Form Submission
// Add to your form's submit handler
am('track', 'form_submit', { form_name: 'contact-form' });
Purchase
am('track', 'purchase', {
value: 99.00,
currency: 'USD',
order_id: 'ORDER-12345'
});
Custom Event
am('track', 'custom', {
event_name: 'video_watched',
value: 0,
metadata: { video_title: 'Product Demo' }
});
Event Types
| Event Type | Description | Revenue Tracking |
|---|---|---|
page_view | User visited a page | — |
click | User clicked an element | — |
form_submit | User submitted a form | — |
purchase | User completed a purchase | ✓ Value & currency |
custom | Any custom action you define | Optional |
UTM Parameter Tracking
Automrktr automatically reads UTM parameters from the URL when the pixel fires. This is how posts and ads are matched to conversions.
When creating posts or ads, tag your links with UTM parameters:
https://yoursite.com/landing-page?utm_source=instagram&utm_medium=social&utm_campaign=summer-sale&utm_content=june-post-1
Automrktr extracts:
utm_source— the platform (instagram, facebook, google, etc.)utm_medium— the channel (social, cpc, email, etc.)utm_campaign— your campaign nameutm_content— the specific post or adutm_term— keyword (for paid search)
Privacy & Data Handling
Automrktr's pixel is designed with privacy in mind:
- No third-party cookies — uses first-party session identifiers only
- IP hashing — IP addresses are hashed (SHA-256) before storage; the raw IP is never saved
- User agent stored — for bot filtering
- GDPR compliant — no PII is collected by default
- CAN-SPAM / CASL compliant — for email attribution
Recommendation: Add Automrktr's pixel to your privacy policy and cookie consent banner to maintain full compliance.
Viewing Pixel Events
1. Go to Analytics → Conversion Tracking.
2. Select a pixel to open its detail view.
3. The Events tab shows a live stream of recent events with:
- Event type and name
- Page URL and referrer
- UTM parameters
- Timestamp
Managing Multiple Pixels
You can create multiple pixels — one per website or one per brand (for agencies).
1. Each pixel has its own unique Pixel ID.
2. Events from each pixel are tracked separately.
3. For agencies: assign each pixel to a specific Company so data stays separated.
Attribution
See [Analytics & Attribution](./09-analytics.md) for how Automrktr connects pixel events to your posts, campaigns, and ads to calculate true ROI.
Need more help?
Our support team is available to answer your questions.