let setCookie = (name, value, domain, days = null) => { let expires = "" if (days !== null) { const d = new Date() d.setTime(d.getTime() + (days * 24 * 60 * 60 * 1000)) expires = "expires=" + d.toUTCString() + ";" } document.cookie = name + "=" + value + ";" + expires + "path=/;domain=" + domain } let getCookieDomain = () => { let arr = window.location.hostname.split('.') return arr.length >= 2 ? `.${arr[arr.length - 2]}.${arr[arr.length - 1]}` : arr[0] } let affiliateConnectorId, affiliateType const urlParams = new URLSearchParams(window.location.search) if (urlParams.get('tid')) { affiliateConnectorId = urlParams.get('tid') affiliateType = 'everflow' } else if (urlParams.get('irclickid')) { affiliateConnectorId = urlParams.get('irclickid') affiliateType = 'impact' } else if (urlParams.get('fbclid')) { affiliateConnectorId = urlParams.get('fbclid') affiliateType = 'facebook-ads' } else if (urlParams.get('gclid')) { affiliateConnectorId = urlParams.get('gclid') affiliateType = 'google-ads' } if (affiliateConnectorId && affiliateType) { let days = 7 if (["facebook-ads", "google-ads"].includes(affiliateType)) { days = 28 } if (affiliateType === "facebook-ads") { affiliateConnectorId = "fb.1." + Date.now() + "." + affiliateConnectorId; } setCookie('affiliate_connector_id', affiliateConnectorId, getCookieDomain(), days) setCookie('affiliate_type', affiliateType, getCookieDomain(), days) } // // const acceptedUtmTags = ['utm_id', 'utm_source', 'utm_campaign', 'utm_medium', 'utm_term', 'utm_content'] const utmTags = {} let hasUtmTags = false for (const tagName of acceptedUtmTags) { const tagValue = urlParams.get(tagName) if (tagValue) { utmTags[tagName] = tagValue hasUtmTags = true } else { utmTags[tagName] = null } } if (hasUtmTags) { setCookie('utm_stored_data', JSON.stringify(utmTags), getCookieDomain(), 365) } //

A Surprise Gift!


With the pre-built Shopify Store you’ve just saved yourself more than 100 hours and potentially more than $1,000 to skip straight to launching your Ecomm Empire.
Now... because we want to stack the odds in your favor as much as possible, we’re giving you a 7-day FREE trial of Zendrop Plus.  Details below...

7-Day FREE TRIAL to Zendrop PLUS

Get More Sales: Zendrop PLUS user are 6.15 times more likely to get their first sale than Free users.
$100 in Credits: Get credit to fulfill your first $100 worth of product costs! (That’s like $250-$300 in orders on your store). It's essentially free money!
Coaching Calls: Group coaching calls with the CEO of Zendrop to help you know exactly what to do next in growing your dropshipping business. 
Trendy Products Finder: We give you access to the hottest trending products each so you can maximize sales on your store. 
Much, much more! 
Start Your Trial on Zendrop PLUS
7 days for Free - Then $79/month
(Cancel or Downgrade Anytime)