Skip to content

Commit

Permalink
add utm tracking params
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Sep 17, 2024
1 parent d84ea0f commit f107378
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contactform/label_voucher.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ def print_voucher(form, voucher_code, config, printer_config):
f"&company={urllib.parse.quote(form.company.data)}"
f"&email={urllib.parse.quote(form.email.data)}"
f"&phone={urllib.parse.quote(form.phone.data)}"
f"&utm_campaign={urllib.parse.quote(config.CAMPAIGN_NAME)}"
f"&utm_source=Voucher"
)
qrcode = segno.make_qr(f"{config.APPUIO_SIGNUP_URL}{registration_url_parameters}")
signup_url = f"{config.APPUIO_SIGNUP_URL}{registration_url_parameters}"
logging.debug(f"URL: {signup_url}")
qrcode = segno.make_qr(signup_url)
qrcode.save(
qr_code_filename,
scale=5,
Expand Down

0 comments on commit f107378

Please sign in to comment.