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

Made changes for Event Label(or el) field. #234

Merged
merged 2 commits into from
Mar 28, 2021
Merged

Conversation

1abhishekpandey
Copy link
Contributor

@1abhishekpandey 1abhishekpandey commented Mar 26, 2021

It'll work even when event (or el) is empty means when user simply calls "rudderanalytics.track();".
Also changed the name from event to payload.

Description of the change

Description here

Type of change

  • Bug fix (non-breaking change that fixes an issue)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

This change is Reviewable

It'll work even when event (or el) is empty means when user simply calls "rudderanalytics.track();".
Also changed the name from event to payload.
Copy link
Contributor

@ruchiramoitra ruchiramoitra left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ruchiramoitra ruchiramoitra left a comment

Choose a reason for hiding this comment

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

Can change apiKey to tagId

ea: type
const { type, properties, event } = rudderElement.message;
const { category, currency, value, revenue, total } = properties;
let payload = {
Copy link
Contributor

Choose a reason for hiding this comment

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

use const

@sajalmohanta sajalmohanta merged commit 7683625 into production-staging Mar 28, 2021
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.

3 participants