Custom Pixel (Event Tracking)
Track user interactions on your storefront with Subscribfy's custom pixel for analytics and conversion tracking
Track button clicks, form submissions, and user interactions across your storefront for analytics and conversion tracking.
The Custom Pixel captures events when customers interact with VIP membership options, subscription buttons, and other Subscribfy elements. Data is transmitted to your analytics dashboard for funnel analysis.
Setup
Go to Subscribfy → Settings → Subscribfy Scripts tab.
Enable Event Tracking
Click Turn on to activate the pixel. When enabled, a green badge shows "Enabled" and the pixel starts capturing events.
Configure Selectors (Optional)
Default values work with standard Subscribfy themes. Only modify if your theme uses custom class names.
Test Your Implementation
Use browser developer tools (F12 → Network tab) to verify events are being captured when you click tracked elements.
Element Selectors
Configure CSS selectors to track specific elements on your storefront.
Cart Option IDs
| Setting | Default | Description |
|---|---|---|
| VIP Membership Option | setExtension | Cart option ID for VIP membership selection |
| Pay-as-you-Go Option | setNoExtension | Cart option ID for non-VIP purchases |
Button Selectors
| Setting | Default | Description |
|---|---|---|
| Join Now Button | .exm_dialog-learn-more | CSS class for the "Join Now" button |
| Join Club Button | .exm_join_club | CSS class for the "Join Club" button |
| Manage Subscription | .mm__button_continue | CSS selector for "Manage Subscription" button |
Selectors use standard CSS syntax. Use . for classes, # for IDs, or any valid CSS selector.
Tracked Events
When enabled, the pixel tracks these user interactions:
| Event Key | Trigger |
|---|---|
setExtension | When VIP option is clicked |
setNoExtension | When Pay-as-you-Go option is clicked |
.exm_dialog-learn-more | When Join Now button is clicked |
.exm_join_club | When Join Club button is clicked |
.mm__button_continue | When Manage Subscription is clicked |
Implementation
If you need to add custom tracking elements to your theme, use this HTML structure:
<div class="exm_continue_shopping">
<a href="/cart?exm=vip" class="exm_dialog-learn-more">Join Now</a>
</div>The pixel automatically captures clicks on elements matching your configured selectors.
Use Cases
Troubleshooting
Related
Shopify Metafields
Reference for all Subscribfy metafields
Webhooks
Receive real-time event notifications
Was this page helpful?