Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddToCart event on Ajax Add To Cart pop-up not triggering #3

Open
remotetech opened this issue Jun 16, 2016 · 1 comment
Open

AddToCart event on Ajax Add To Cart pop-up not triggering #3

remotetech opened this issue Jun 16, 2016 · 1 comment

Comments

@remotetech
Copy link

Hi, your code looks great. Thank you!
If your Shopify theme uses an Ajax pop-up for AddToCart the pixel is not firing on that event. Everything else is working great except for fbq('track', 'AddToCart'); event.
Please let me know if you have any answer for getting this event to trigger on Ajax pop-up AddToCart?
Thanks for any advice...Regards, James

@tensworth
Copy link
Owner

You are right. This will not capture any events that do not require full page reload. Any AJAX events will not be captured. Your best bet is to use Google tag manager to capture the click of the add to cart and then fire the pixel.

I may look in to solving this using JS in the future if there seems to be enough demand.

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

No branches or pull requests

2 participants