Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
119 stars 72 forks source link

feat: added source tracking (utm) parameters to external business url… #292

Closed JTSchwartz closed 4 years ago

JTSchwartz commented 4 years ago

Describe your PR

Dynamically adds utm source tracking queries to external business urls

Related to #280

Pages/Interfaces that will change

Screenshots / video of changes

RBB-PR-UTM

Steps to test

  1. Visit /businesses
  2. Hover over or click on external links on ResultCards (Learn More, Donate)
  3. Look at link preview or address bar utm_source query will be set to "Rebuild+Black+Business" if one is not already given

Additional notes

Works regardless of whether or not the url already has queries, and does not overwrite already established utm_source attributes.

Links are verified to be external and use http/s protocol (i.e. no mailto links) before editing.

netlify[bot] commented 4 years ago

Deploy request for rebuild-black-business accepted.

Accepted with commit f70e68e60a10fe69be390a9d2963172d762db772

https://app.netlify.com/sites/rebuild-black-business/deploys/5efbcbc3ed111c0007d308ba