the event URL to rewrite
true to mark the link as using the Israel holiday schedule
OptionalutmSource: string
tracking source, e.g. 'js'
OptionalutmMedium: string
tracking medium, e.g. 'api'
OptionalutmCampaign: string
tracking campaign, e.g. 'ical-foo'
the rewritten URL as a string
Adjusts a Hebcal.com event link for Israel/Diaspora and appends UTM tracking parameters. For
www.hebcal.comholiday/sedrot/omer links, this also setsi=onwhenilis true, rewrites the host to the shorterhebcal.comand shortens the path (seeshortenSedrotUrl()for sedrot), and uses the abbreviatedus/um/ucparameter names instead of the fullutm_source/utm_medium/utm_campaign(theus/umparams are omitted whenutmCampaignstarts with'ical-'or'pdf-', since those campaigns are tracked byucalone). For all other URLs, the standardutm_source/utm_medium/utm_campaignparameters are appended, andutm_sourcedefaults to'hebcal.com'when not otherwise specified.