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

Click Analytics Plugin Update #1457

Merged
merged 5 commits into from
Jan 14, 2021
Merged

Click Analytics Plugin Update #1457

merged 5 commits into from
Jan 14, 2021

Conversation

kryalama
Copy link
Contributor

Following updates have been made:

  1. Change the way custom event name is populated. Previosuly pageName is used as custom event name.
  2. Added pageName as new custom attribute
  3. Added parentId as new custom attribute
  4. Added some more tests

@@ -75,21 +71,24 @@ export class DomContentHandler implements IContentHandler {
}
} else {
// traverse up the DOM to find the closest parent with data-* tag defined
contentElement = walkUpDomChainWithElementValidation(element, this._isTracked, dataTagPrefix);
elementContent = extend(elementContent, this._populateElementContentwithDataTag( contentElement, element, dataTagPrefix, parentDataTagPrefix));
//contentElement = walkUpDomChainWithElementValidation(element, this._isTracked, dataTagPrefix);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't we still want to do this -- just not for the id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are doing this only when user has specified the parentDataTag. This tag does two things. IF present it auto populates parent content and also used as an identifier to stop traversing up the DOM to capture content name and value of elements when encountered with this tag.

@kryalama kryalama requested a review from MSNev January 13, 2021 22:36
@MSNev MSNev added this to the 2.5.11 milestone Jan 14, 2021
Copy link
Collaborator

@MSNev MSNev left a comment

Choose a reason for hiding this comment

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

Approved with suggestions

@kryalama kryalama requested a review from MSNev January 14, 2021 22:16
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

2 participants