vue-gtag icon indicating copy to clipboard operation
vue-gtag copied to clipboard

Purchase event does not accept Currency

Open mwargan opened this issue 1 year ago • 5 comments

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.

mwargan avatar Apr 29 '24 14:04 mwargan

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

MatteoGabriele avatar Sep 09 '24 11:09 MatteoGabriele

@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

mwargan avatar Sep 09 '24 20:09 mwargan

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

MatteoGabriele avatar Sep 10 '24 11:09 MatteoGabriele

@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 avatar Sep 10 '24 18:09 mwargan

@MatteoGabriele I have opened the relevant pull request https://github.com/MatteoGabriele/vue-gtag/pull/585. Additional details, links, and discussion points are there too :)!

mwargan avatar Sep 10 '24 18:09 mwargan

@MatteoGabriele have you given up on this project?

mwargan avatar Nov 12 '24 14:11 mwargan

@mwargan I have been quite busy lately and have less time for this project. Unfortunately, there are some issues with the deployment that I need to address. If you are facing significant problems, it might be a good idea to temporarily fork the project and apply your fix.

MatteoGabriele avatar Nov 12 '24 14:11 MatteoGabriele

Version 3, which is currently in development, will address this issue. You can already try it by installing vue-gtag@beta. Your feedback is much appreciated. check out this issue for more details about how to install the plugin. Still have to write the new docs. #615

MatteoGabriele avatar Mar 19 '25 17:03 MatteoGabriele