GHL embed tools
Add the queryParams.js script to any page that has a GHL widget embedded.
<script src="https://cdn.jsdelivr.net/gh/levelupghl/ghlembedtools@v1/dist/js/queryParams.min.js"></script>Optionally send custom data to embedded widgets. Set data not available in the URL query params or override the URL query params.
<script>
// Example sending custom params
!function(w,f,n){if(!w.levelup)w.levelup={};if(w.levelup[f])return;n=w.levelup[f]=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};n.push=n;n.queue=[];}(window,"sendQueryParams");
window.levelup.sendQueryParams({some_param: "hi", email: "test@example.com", gclid: "12345"})
</script># Update version
npm version patch
# Rebuild and deploy
npm run deploy