Skip to content

Instantly share code, notes, and snippets.

View joostvanhoof's full-sized avatar

Joost van Hoof joostvanhoof

View GitHub Profile
@joostvanhoof
joostvanhoof / feather-attribution.js
Last active September 6, 2023 00:16
Feather Attribution script
// www.featherattribution.com. Brought to you by www.scrapingbee.com and www.freddyfeedback.com
class FeatherAttribution {
constructor(options) {
this.storageItems = ['feather_utm_source', 'feather_utm_medium', 'feather_utm_campaign', 'feather_utm_content', 'feather_ref', 'feather_referrer'];
this.checkExpiryDates();
this.setOptions(options);
this.referrer = document.referrer;
this.ref = this.getParameterByName('ref');