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

chore: add new utm attributes to all mongodb links VSCODE-356 #526

Merged
merged 5 commits into from
Jun 2, 2023

Conversation

gribnoysup
Copy link
Contributor

This patch adds new utm attrs to all mongodb urls in the plugin. Moved all the links to one place so that it should hopefully be hard to miss adding those when new urls will be added

const atlas = new HelpLinkTreeItem(
'Create Free Atlas Cluster',
`https://mongodb.com/products/vs-code/vs-code-atlas-signup?utm_campaign=vs-code-extension&utm_source=visual-studio&utm_medium=product${ajsAid}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

With the change, we will be missing out on utm_campaign and ajsAid query params. Just confirming if this is intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, in the ticket:

There are some links that already have UTMs, like the "Create Free Atlas Cluster" link below, they can all be standardized to be the same:

https://www.mongodb.com/products/vs-code/vs-code-atlas-signup?utm_campaign=vs-code-extension&utm_source=visual-studio&utm_medium=product&ajs_aid=undefined

can become:

https://www.mongodb.com/products/vs-code/vs-code-atlas-signup?utm_source=vscode&utm_medium=product

@gribnoysup
Copy link
Contributor Author

@Anemy @himanshusinghs does #526 (comment) answers your concerns about removing ajs_aid from the url? Do we need to reach out to person who opened this ticket to make sure they didn't ask us to remove this parameter by accident?

@himanshusinghs
Copy link
Contributor

Ahh wow sorry I didn't see that. We are doing precisely what is mentioned in the ticket so I believe it should be fine.

@Anemy
Copy link
Member

Anemy commented Jun 1, 2023

@gribnoysup I'm thinking it could be an accident that in the example it's removed. I pinged them on the ticket. Changes here look good, let's wait to hear back to be safe.

@gribnoysup gribnoysup requested a review from alenakhineika June 1, 2023 12:40
Copy link
Member

@Anemy Anemy left a comment

Choose a reason for hiding this comment

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

Looks like there's one link in the webview we might want to update, in atlast-cta.tsx
Currently it has the utm_source = visual-studio and not vscode and has the old utm_campaign. Just a note, I'm not sure if src/utils/links.ts will bundle with it automatically as it's involved in a separate webpack.
https://github.com/mongodb-js/vscode/blob/main/src/views/webview-app/components/atlas-cta/atlas-cta.tsx#L22

Left one comment on a test we might be missing now

src/test/suite/explorer/helpExplorer.test.ts Show resolved Hide resolved
@gribnoysup
Copy link
Contributor Author

Yeah, there are a bunch of other I missed, moving them to the links file

@gribnoysup gribnoysup force-pushed the vscode-356-add-utm-to-links branch from 7fa8ea4 to 933278e Compare June 1, 2023 14:09
@gribnoysup gribnoysup merged commit 1fa3a31 into main Jun 2, 2023
@gribnoysup gribnoysup deleted the vscode-356-add-utm-to-links branch June 2, 2023 09:02
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.

4 participants