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

GH-2040: Update Insights in-app promo CTA link #594

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

now it goes to the correct link

  • Loading branch information
caseyoppenheim committed Aug 11, 2020
commit 9c9955ead2d7e502d6e7fe6fc9168aeed250d977
@@ -76,7 +76,7 @@ class PromoModal extends React.Component {
break;
case INSIGHTS:
sendMessage('ping', 'promo_modals_insights_upgrade_cta');
url = `https://www.ghostery.${DOMAIN}.com/insights/?utm_source=gbe&utm_campaign=in_app_upgrade=${utm_campaign}`;
url = `https://www.ghostery.com/insights/?utm_source=gbe&utm_campaign=in_app_upgrade=${utm_campaign}`;
This conversation was marked as resolved by fcjr

This comment has been minimized.

@fcjr

fcjr Aug 11, 2020
Member

utm_campaign is a query string parameter; a query string is a list of string=string pairs, separated by & symbols. So given that this function is only currently called with the variable utm_campaign set as in_app_upgrade; the current value here of utm_campaign would be in_app_upgrade=in_app_upgrade. Looks like what you want to do here is just set the value of the utm_campaign query param to the passed utm_campaign value.

This comment has been minimized.

@wlycdgr

wlycdgr Aug 12, 2020
Member

^ what Frank said

break;
default:
}
ProTip! Use n and p to navigate between commits in a pull request.