Answered

Memberstack x Webflow x Typeform

  • 21 December 2021
  • 29 replies
  • 379 views


Show first post

29 replies

Userlevel 2
Badge

Hi @DTTT, just catching up on this thread 🙂

It sounds like you want to pull in URL parameters from the webpage into your VideoAsk embed, is that correct?

That’s right. I was sort of hoping just to switch out all the references to Typeform and swap them for videoask as it’s the same company I figured this would be the same but it didn’t work 🤣

Userlevel 7
Badge +5

@DTTT Here’s a solution for passing URL parameters (specifically “utm_source” in this example) from the webpage into the VideoAsk widget embed URL.

 

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

<script>

var url_string = window.location.href;
var url = new URL(url_string);
var utm_source = url.searchParams.get("utm_source");

window.VIDEOASK_EMBED_CONFIG = {
"kind": "widget",
"url": "YOUR_VIDEOASK_URL_HERE#utm_source=" + utm_source,
"options": {
"widgetType": "VideoThumbnailExtraLarge",
"text": "",
"backgroundColor": "#FA6B05",
"position": "bottom-right",
"dismissable": false
}
}
</script>
<script src="https://www.videoask.com/embed/embed.js"></script>

</body>
</html>

Let me know if this helps!

 
Userlevel 2
Badge

Thanks, I’m going to try this later in the week and I’ll let you know if it worked for me!

Userlevel 7
Badge +5

Let us know how it goes, @DTTT !

Reply