Skip to content

Instantly share code, notes, and snippets.

@randallhelms
Created May 26, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randallhelms/dcd2b001ff4c5690528d3f49c22f22e8 to your computer and use it in GitHub Desktop.
Save randallhelms/dcd2b001ff4c5690528d3f49c22f22e8 to your computer and use it in GitHub Desktop.
examples of UTM codes built in R
v1 <- campaign_url('https://yoursite.de','facebook','cpc','test_campaign_1')
#"https://yoursite.de/?utm_source=facebook&utm_medium=cpc&utm_campaign=test_campaign_1"
v2 <- campaign_url('https://yoursite.de','facebook','cpc','test_campaign_1','angebot','image_v1')
#"https://yoursite.de/?utm_source=facebook&utm_medium=cpc&utm_campaign=test_campaign_1&utm_term=angebot&utm_content=image_v1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment