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

[WIP] Feature/add utm parameters #1473

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

Conversation

joaobisi
Copy link
Contributor

It's still necessary to

  • check the validity of the url returned by the facebook share button
  • check google analytics to know how to test the parameters return

joaobisi and others added 2 commits January 17, 2023 02:16
…e facebook and twitter buttons

Co-authored-by: victordscabral <[email protected]>
Co-authored-by: kayrocesar <[email protected]>
Co-authored-by: victordscabral <[email protected]>
Co-authored-by: kayrocesar <[email protected]>
…aign name yet

Co-authored-by: victordscabral <[email protected]>
Co-authored-by: kayrocesar <[email protected]>
Copy link
Member

@wwahammy wwahammy left a comment

Choose a reason for hiding this comment

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

Sorry about the delay in reviewing. I had one question about a change but otherwise, it looks fine.

}
}, [h('i.fa.fa-facebook-square'), ` ${I18n.t('nonprofits.donate.followup.share.facebook')}`] )
])
, h('div.u-inlineBlock.u-marginLeft--10.u-marginBottom--20', [
h('a.button--small.twitter.u-width--full', {
props: {
target: '_blank'
, href: "https://twitter.com/intent/tweet?url="+window.location.href+"&via=CommitChange&text=Join me in supporting:" + (app.campaign.name || app.nonprofit.name) + "?/utm_source=twitter&utm_medium=organic_social&utm_campaign=" + encodeURIComponent(app.campaign.name)
, href: "https://twitter.com/intent/tweet?url="+window.location.href+"&via=CommitChange&text=Join me in supporting:" + (app.campaign.name || app.nonprofit.name)
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason you moved away from having the utm_medium and utm_campaign here? I think it would probably be useful.

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.

2 participants