Skip to content

Commit

Permalink
bug fix on click button tracking for adobe analytics (#366)
Browse files Browse the repository at this point in the history
* quick fix
  • Loading branch information
hemarina authored Apr 25, 2024
1 parent 0f05f19 commit acd1c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/src/components/gallery/ShowcaseCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function ShowcaseCard({ user }: { user: User }): JSX.Element {
let headerText = "Community Authored";

// Adobe Analytics Content
const contentForAdobeAnalytics = `id:${title},cN:"Copy Button (azd init)"`;
const contentForAdobeAnalytics = `{\"id\":\"${title}\",\"cN\":\"Copy Button (azd init)\"}`;

// Panel
const { colorMode } = useColorMode();
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/gallery/ShowcaseTagSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function ShowcaseTagSelect(
});
}, [tag, location, history]);
const template = id.replace("showcase_checkbox_id_", "")
const contentForAdobeAnalytics = `id:${template},cN:"Tags"`
const contentForAdobeAnalytics = `{\"id\":\"${template}\",\"cN\":\"Tags\"}`
return (
<>
<Checkbox
Expand Down

0 comments on commit acd1c37

Please sign in to comment.