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

Purchase tracking issue #27

Open
storm2513 opened this issue Jan 28, 2020 · 1 comment
Open

Purchase tracking issue #27

storm2513 opened this issue Jan 28, 2020 · 1 comment

Comments

@storm2513
Copy link

Code in spree/shared/_google_purchase.html.erb is executed, but it doesn't get to google analytics.

ga('send', 'pageview'); // Send transaction data with initial pageview. should be called after rendering this partial.
https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#transaction

Looks like there was supposed to be content_for :google_analytics do, but it is missing.

@jormon
Copy link
Contributor

jormon commented Apr 1, 2020

I am evaluating switching to master as they've switched to gtag there and it seems to work better.

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