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

Change currency after initialization #188

Open
KrisBraun opened this issue Dec 16, 2016 · 3 comments
Open

Change currency after initialization #188

KrisBraun opened this issue Dec 16, 2016 · 3 comments

Comments

@KrisBraun
Copy link

Sometimes currency is a user-selectable option at checkout. I couldn't find a method to change the currency after configuring AnalyticsProvider. Could a method be exposed?

@justinsa
Copy link
Collaborator

@KrisBraun Do you know how this value is communicated if changed after configuration? Can you use the set method?

@KrisBraun
Copy link
Author

KrisBraun commented Dec 21, 2016

I'm calling this, and I think it might be working:

    Analytics.set('&cu', this.currency)

It's just that I can see the saved currency is passed in the ecommerce:addTransaction call, which I assumed would override any previous set value.

@tcrite
Copy link

tcrite commented Mar 16, 2018

is there a setting for changing a custom metric to a currency?

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

3 participants