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

[SNOW-1887437] Pass query params to snowflake trial signup page link #1220

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-dswiecki
Copy link
Contributor

@sfc-gh-dswiecki sfc-gh-dswiecki commented Jan 17, 2025

📚 Context

For the convert to snowflake project we'd like to be able to dynamicaly set the utm_content marketing query param for the Go to snowflake link. Right know it's always -ss-streamlit-docs. After the change we would be able to set a different param for OOR email or the Cloud app limits settings

Testing:

  1. open http://localhost:3000/deploy/snowflake?utm_content=ss-streamlit-cloud-settings
  2. click on the Streamlit in Snowflake tile
  3. click on the Go to signup.snowflake.com link
  4. there should be utm_content=ss-streamlit-cloud-settings in the singup.snowflake.com insead of utm_content=-ss-streamlit-docs

Preview
https://deploy-preview-1220--streamlit-docs.netlify.app/deploy/snowflake?utm_content=ss-streamlit-cloud-settings

Verified with @sfc-gh-atoader if we're fine with this approach from the security perspective

🧠 Description of Changes

Revised:

Insert screenshot of your updated UI/code here

Current:

Insert screenshot of existing UI/code here

💥 Impact

Size:

  • Small
  • Not small

🌐 References

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Copy link

@sfc-gh-akallaur sfc-gh-akallaur left a comment

Choose a reason for hiding this comment

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

LGTM

href={{ pathname: link || "/", query: router.query }}
className={classNames("not-link", styles.Link)}
>
{/*<Link href={link || "/"} className={classNames("not-link", styles.Link)}>*/}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: remove

@sfc-gh-dmatthews
Copy link
Contributor

I changed it a little bit since I didn't want the instructions from the tutorial to be included with the component. I renamed the component to SnowflakeTrial and reduced it to just handling the link, with the option to set the link text. That way, the tutorial page is more readable and won't break if I need to reword it. Does that work for you?

Also, where are we linking from? The in-app workflow goes straight to the tutorial signup and "Learn more" goes to another doc page. The other links from cloud also seem to go to that other doc page. I'm not sure that query links are preserved in the router. If I go to https://docs.streamlit.io/deploy/snowflake?utm_content=foobar and navigate to the Snowflake tutorial page, the query parameter is dropped.

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