Skip to content

Instantly share code, notes, and snippets.

@joostvanhoof
joostvanhoof / feather-attribution.js
Last active Mar 16, 2021
Feather Attribution script
View feather-attribution.js
// 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');