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

Option to send currency in Google Adwords when using dynamic value #10558

Merged
merged 7 commits into from
Aug 21, 2017
Merged

Option to send currency in Google Adwords when using dynamic value #10558

merged 7 commits into from
Aug 21, 2017

Conversation

DominicWatts
Copy link
Contributor

@DominicWatts DominicWatts commented Aug 16, 2017

Introduces option to send currency in adwords when using dynamic value to cope with multisite scenario where base currency differs between websites

Description

Introduce option to send currency in adwords when using dynamic value. Configurable via backend. Defaults to off.

Fixed Issues (if relevant)

  1. Google Adwords add ability to provide transaction-specific conversion values in your conversion tracking tag #6708

Manual testing scenarios

  1. Enable via API config screen
  2. Switch currency
  3. Add to basket
  4. Complete checkout
  5. Observe results within Adwords

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)

@ishakhsuvarov ishakhsuvarov added this to the August 2017 milestone Aug 17, 2017
@ishakhsuvarov
Copy link
Contributor

@DominicWatts Thank you for this PR. Please take a look at the failed unit and static tests.

@DominicWatts
Copy link
Contributor Author

The additional changes to the tests I made aren't quite right and I can't work out what's wrong

@ishakhsuvarov
Copy link
Contributor

@DominicWatts I will look into those issues and let you know what is wrong shortly.

@ishakhsuvarov ishakhsuvarov self-assigned this Aug 18, 2017
@@ -59,6 +64,8 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper

const XML_PATH_CONVERSION_VALUE = 'google/adwords/conversion_value';

const XML_PATH_SEND_CURRENCY = 'google/adwords/send_currency';
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a docblock to the constant with the description of this setting.

*
* @return boolean
*/
public function hasSendCurrency()
Copy link
Contributor

Choose a reason for hiding this comment

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

This naming is ambiguous, I would suggest looking for more descriptive method name.

/**
* Get Google AdWords conversion value currency
*
* @return float
Copy link
Contributor

Choose a reason for hiding this comment

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

Docblock states return type float however method returns string or bool

@magento-team magento-team merged commit b65410e into magento:develop Aug 21, 2017
magento-team pushed a commit that referenced this pull request Aug 21, 2017
[EngCom] Public Pull Requests
 - MAGETWO-71744: Fix issue 10032 #10593
 - MAGETWO-71642: Option to send currency in Google Adwords when using dynamic value #10558
 - MAGETWO-70866: Enabling the use of looping (for in ..) into Template.php #9401
@Ctucker9233
Copy link

@magento-team Will this be backported to 2.2?

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.

4 participants