From 13b36f0369418cc39736d070ea9f2c8cb78653c8 Mon Sep 17 00:00:00 2001 From: Anna Draganova Date: Tue, 15 Aug 2023 17:24:28 +0300 Subject: [PATCH] Gift Article Tracking changes --- components/x-gift-article/src/CreateLinkButton.jsx | 1 + components/x-gift-article/src/ShareArticleDialog.jsx | 8 +++++++- components/x-gift-article/src/SocialShareButtons.jsx | 1 + components/x-gift-article/src/UrlSection.jsx | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/x-gift-article/src/CreateLinkButton.jsx b/components/x-gift-article/src/CreateLinkButton.jsx index 45f588e62..9c578d192 100644 --- a/components/x-gift-article/src/CreateLinkButton.jsx +++ b/components/x-gift-article/src/CreateLinkButton.jsx @@ -24,6 +24,7 @@ export const CreateLinkButton = ({ shareType, actions, enterpriseEnabled }) => { className={`o-buttons o-buttons--big o-buttons--primary share-article-dialog__create-link-button ${ enterpriseEnabled ? 'o-buttons--professional' : '' }`} + data-trackable={shareType + 'Link'} onClick={createLinkHandler} > Create link diff --git a/components/x-gift-article/src/ShareArticleDialog.jsx b/components/x-gift-article/src/ShareArticleDialog.jsx index 9c5309b72..d66902118 100644 --- a/components/x-gift-article/src/ShareArticleDialog.jsx +++ b/components/x-gift-article/src/ShareArticleDialog.jsx @@ -6,7 +6,13 @@ import { AdvancedSharingBanner } from './AdvancedSharingBanner' export default (props) => { return ( -