Mobile cannabis dispensaries are coming – The Hustle

[email-submission-form redirect-to-home=”true” button-text=”Join Free” include-trends-opt-in=”true” id=”main-signup-form” fail-url=”” success-url=”https://thehustle.co/signup” default-source=”thehustleco” default-campaign=”home”]

<script type=”text/javascript”> var onloadCallback = function() { grecaptcha.render(‘verify-your-humanity’, { ‘sitekey’ : ‘6LdddrcZAAAAALyttpvOqiwQGwq5BNhgDz4tMQGE’ }); }; function getCookieValue(a) { var b = document.cookie.match(‘(^|[^;]+)s*’ + a + ‘s*=s*([^;]+)’); return b ? atob(decodeURIComponent(b.pop())) : ”; } function setHiddenFieldValue(wrappingDiv, searchParams, className, utmName, cookieName, defaultValue) { var el = wrappingDiv.getElementsByClassName(className)[0]; var existingVal = el.getAttribute(‘value’); var newVal = searchParams.get(utmName) || getCookieValue(cookieName); if ((existingVal == null || existingVal == ” || existingVal == defaultValue) && (newVal != null && newVal != ”)) { el.setAttribute(‘value’, newVal); } } function setHiddenFieldValueFromUtm( wrappingDiv, searchParams, className, utmName, defaultValue ) { var el = wrappingDiv.getElementsByClassName(className)[0]; if (el != null) { var existingVal = el.getAttribute(“value”); var newVal = searchParams.get(utmName); if (newVal != null && newVal != “”) { el.setAttribute(“value”, newVal); } } } function initForm() { var wrappingDivs = document.getElementsByClassName(’email-submission’); wrappingDivs.forEach(wrappingDiv => { var sp = new URLSearchParams(window.location.search); setHiddenFieldValue(wrappingDiv, sp, ‘funnel-source’, ‘utm_source’, ‘funnel_source’, ‘thehustleco’); setHiddenFieldValue(wrappingDiv, sp, ‘funnel-campaign’, ‘utm_campaign’, ‘funnel_campaign’, ‘home’); setHiddenFieldValue(wrappingDiv, sp, ‘funnel-medium’, ‘utm_medium’, ‘funnel_medium’, ”); setHiddenFieldValue(wrappingDiv, sp, ‘funnel-referral’, ‘ref’, ‘funnel_referral’, ”); setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-a’, ‘a’, ”); setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-c’, ‘c’, ”); setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-o’, ‘o’, ”); setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-oc’, ‘oc’, ”); setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-e’, ‘e’, ”); setHiddenFieldValueFromUtm(wrappingDiv, sp, ‘funnel-f’, ‘f’, ”); setHiddenFieldValueFromUtm(wrappingDiv, sp,

Read More Here…

Share on facebook
Share on twitter
Share on reddit
Share on pinterest
Share on email

Bud Digest

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top