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

Send different base currency in Google analytics #10508

Merged
merged 3 commits into from
Aug 16, 2017
Merged

Send different base currency in Google analytics #10508

merged 3 commits into from
Aug 16, 2017

Conversation

DominicWatts
Copy link
Contributor

@DominicWatts DominicWatts commented Aug 12, 2017

We've encountered a scenario where payment providers require different base currencies configured for different websites in a multisite and as a result need to send different base currency in Google analytics

Fixed Issues (if relevant)

  1. Google Analytics to allow for websites that conduct transactions in multiple currencies #6709
  2. No multi currency support in google analytics module #7471

Manual testing scenarios

  1. Add to basket
  2. Complete checkout
  3. Observe results within tracking

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

…t base currencies configured for different websites in a multisite and as a result need to send different currency in Google analytics
@DominicWatts
Copy link
Contributor Author

@ishakhsuvarov ishakhsuvarov self-assigned this Aug 14, 2017
@ishakhsuvarov ishakhsuvarov added this to the August 2017 milestone Aug 14, 2017
@@ -120,6 +120,7 @@ public function getOrdersTrackingCode()
$result[] = "ga('require', 'ec', 'ec.js');";

foreach ($collection as $order) {
$result[] = "ga('set', 'currencyCode', '" . $order->getBaseCurrencyCode() . "');";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like BaseCurrencyCode is not exactly the currency code needed here. With the multi-store setup it will always be the same, regardless of different display currency.

…esn't return default currency as base currency
@magento-team magento-team merged commit 43352eb into magento:develop Aug 16, 2017
magento-team pushed a commit that referenced this pull request Aug 16, 2017
[EngCom] Public Pull Requests
 - MAGETWO-71539: Send different base currency in Google analytics #10508
magento-team pushed a commit that referenced this pull request Oct 10, 2017
Fixed issues:
- MAGETWO-71552: Attribute values on store view level not searchable - for 2.2
- MAGETWO-72866: Redundant indexers invalidation - RIATCS-340
- MAGETWO-75458: [Backport] - Fix overwrite default value image/file with NULL #10253 - for 2.2
- MAGETWO-75460: [Backport] - LowestPriceOptionsProvider returns products without attributes which are used for price calculation (e.g. tax adjustment)
- MAGETWO-80193: [2.2.x] - Add cast to string for CUST_GROUP_ALL #10475
- MAGETWO-80204: [2.2.x] - Grammar fix for #9533 #10627
- MAGETWO-71549: Impossible to export Advanced Prices on a medium profile
- MAGETWO-80198: [2.2.x] - Fix issue #10565 #10575
- MAGETWO-80197: [2.2.x] - Fix JS translation search #10445
- MAGETWO-80195: [2.2.x] - Send different base currency in Google analytics #10508
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants