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 productClick events to PixelManager #128

Merged
merged 3 commits into from
May 15, 2019

Conversation

italo-batista
Copy link
Contributor

@italo-batista italo-batista commented May 3, 2019

What problem is this solving?

Sending productClick event to Pixel Manager with the purpose of usage in google-analytics.

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

Workspace: https://aguaviva--storecomponents.myvtex.com/

react/ShelfItem.js Outdated Show resolved Hide resolved
react/ShelfItem.js Outdated Show resolved Hide resolved
react/__mocks__/vtex.pixel-manager/PixelContext.js Outdated Show resolved Hide resolved
react/ShelfItem.js Outdated Show resolved Hide resolved
@italo-batista italo-batista force-pushed the feature/send-prod-click-event branch 2 times, most recently from 5c8f985 to 37c39f8 Compare May 8, 2019 17:34
Copy link
Contributor

@lucasecdb lucasecdb left a comment

Choose a reason for hiding this comment

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

lgtm

@italo-batista italo-batista force-pushed the feature/send-prod-click-event branch 3 times, most recently from fe0db1d to eae122d Compare May 9, 2019 02:26
Copy link
Contributor

@jgfidelis jgfidelis left a comment

Choose a reason for hiding this comment

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

You started to export two ShelfItems, one with Pixel (as default) and the other without pixel, and within your code, you were importing only the version without Pixel.

Remove the named export and always import ShelfItem as default.

react/ProductList.js Outdated Show resolved Hide resolved
react/RelatedProducts.js Outdated Show resolved Hide resolved
react/ShelfItem.js Outdated Show resolved Hide resolved
Copy link
Contributor

@klzns klzns left a comment

Choose a reason for hiding this comment

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

Can you add a linked workspace? That way we can test the solution

@@ -0,0 +1,9 @@
import React from 'react'

export function Pixel(Comp) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did u add just the mock and not the test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added the mock because some tests were breaking after my changes.

@brunojdo brunojdo force-pushed the feature/send-prod-click-event branch from 751f07d to f5fa04b Compare May 15, 2019 18:49
@brunojdo brunojdo merged commit 52b3095 into master May 15, 2019
@brunojdo brunojdo deleted the feature/send-prod-click-event branch May 15, 2019 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants