Skip to content

Conversation

@Prashant-7718
Copy link
Contributor

Added utm_source, utm_medium, and utm_campaign parameters to the getAuthorizationData method in the MermaidChart class for analytics

@vercel
Copy link

vercel bot commented Apr 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
office-plugin-site ⬜️ Ignored (Inspect) Visit Preview Apr 30, 2025 10:08am

Comment on lines 75 to 86
public async getAuthorizationData({
state,
scope = ['email'],
utm_source,
utm_medium,
utm_campaign
}: {
state?: string;
scope?: string[];
utm_source?: string;
utm_medium?: string;
utm_campaign?: string;
Copy link
Member

Choose a reason for hiding this comment

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

If you need all three present to send the tracking link, then it should be evident in the type. Otherwise the consumer of the SDK (some other plugin developer), might just send one, and be confused why it's not being sent, without looking inside the implementation.

Suggested change
public async getAuthorizationData({
state,
scope = ['email'],
utm_source,
utm_medium,
utm_campaign
}: {
state?: string;
scope?: string[];
utm_source?: string;
utm_medium?: string;
utm_campaign?: string;
public async getAuthorizationData({
state,
scope = ['email'],
tracking
}: {
state?: string;
scope?: string[];
tracking?: {
utm_source: string;
utm_medium: string;
utm_campaign: string;
}

@sidharthv96 sidharthv96 merged commit 69619fc into main Apr 30, 2025
2 of 14 checks passed
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