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 event does not accept Currency #566

Open
mwargan opened this issue Apr 29, 2024 · 5 comments
Open

Purchase event does not accept Currency #566

mwargan opened this issue Apr 29, 2024 · 5 comments

Comments

@mwargan
Copy link

mwargan commented Apr 29, 2024

Environment *

Typescript

Description *

The purchase event does allow a currency https://developers.google.com/analytics/devguides/collection/ga4/set-up-ecommerce, but the purchase({}) method, and specifically the Type GtagPurchase, does not accept currency.

@MatteoGabriele
Copy link
Owner

can you be more specific? also the link you've provided doesn't work

@mwargan
Copy link
Author

mwargan commented Sep 9, 2024

@MatteoGabriele the link does work. Example of it working: https://pagespeed.web.dev/analysis/https-developers-google-com-analytics-devguides-collection-ga4-set-up-ecommerce/tigql381sd?form_factor=mobile

When you get it to work, you'll see the example code provided by Google.

image

@MatteoGabriele
Copy link
Owner

MatteoGabriele commented Sep 10, 2024

I'm sorry but I get "Service Unavailable".
Is the URL possibly linked to a personal account or a private project?

@mwargan
Copy link
Author

mwargan commented Sep 10, 2024

@MatteoGabriele that's weird - it's a public resource from Google. Did you try to CURL/WGET it, from a different browser, or just on a different device like your phone?

Anyway here's a full page screenshot. The relevant part I have shared on my previous comment already.

developers google com_analytics_devguides_collection_ga4_set-up-ecommerce (1)

@mwargan
Copy link
Author

mwargan commented Sep 10, 2024

@MatteoGabriele I have opened the relevant pull request #585. Additional details, links, and discussion points are there too :)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants