Skip to content

fix: allow Premium users to use tracking pixel subscriber identify#840

Open
faisalahammad wants to merge 1 commit intoibericode:mainfrom
faisalahammad:fix/830-premium-tracking-pixel-compat
Open

fix: allow Premium users to use tracking pixel subscriber identify#840
faisalahammad wants to merge 1 commit intoibericode:mainfrom
faisalahammad:fix/830-premium-tracking-pixel-compat

Conversation

@faisalahammad
Copy link
Copy Markdown
Contributor

Follow-up to #832. Fixes the issue where Premium E-Commerce users were locked out of the tracking pixel feature entirely.

The is_premium_ecommerce_pixel_active() guard has been moved from the bootstrap (where it blocked class instantiation) into output_tracking_script() (where it only prevents a duplicate script tag). Premium users can now use the auto-connect flow, the subscriber identify call, and see the settings UI.

Also reads mc4wp_ecommerce['mcjs_url'] as a fallback script URL source so both integrations can share the same connected site without redundant API calls.

Moves the Premium E-Commerce duplicate-script guard from the bootstrap
(where it blocked the entire class) into output_tracking_script() (where
it only prevents the script from being loaded twice).

This allows Premium users to:
- Use the auto-connect flow to register/find their connected site
- Identify subscribers via the pixel SDK after form sign-ups
- See and configure the setting in the admin UI

Also reads mc4wp_ecommerce['mcjs_url'] as a fallback script URL source,
so both integrations share the same connected site without redundant
API calls.
@faisalahammad faisalahammad force-pushed the fix/830-premium-tracking-pixel-compat branch from d372897 to 5ce9dfe Compare May 6, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant