mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
analytics and embed meta update!!!
This commit is contained in:
@@ -40,14 +40,11 @@ export default function SocialButton({ id = null, label, url, icon, color, layou
|
||||
rel="noopener noreferrer"
|
||||
aria-label={text}
|
||||
onClick={() => {
|
||||
trackAnalyticsEvent('social_link_click', {
|
||||
id: id || '',
|
||||
trackAnalyticsEvent('social_link_clicked', {
|
||||
destination: id || 'custom',
|
||||
label: text,
|
||||
layout,
|
||||
});
|
||||
if (id === 'discord') {
|
||||
trackAnalyticsEvent('discord_click', { layout });
|
||||
}
|
||||
}}
|
||||
className={`grid h-full min-h-0 w-full place-items-center rounded-md bg-slate-700 px-0.5 ${isInline ? 'py-0.5' : 'pb-3'} text-center text-sm font-medium text-white transition hover:opacity-90 ${className}`}
|
||||
style={bgColor ? { backgroundColor: bgColor } : undefined}
|
||||
|
||||
Reference in New Issue
Block a user