I’m playing around with a very basic feedback form that I’d like to embed on the bottom of all our pages. I’d like the form to automatically capture the URL of the page that the user is on when they complete the form (so I know what page they’re giving feedback on, without them having to copy and paste the URL).
Could someone tell me how? I’ve played with Merge Codes but can’t seem to find one that works!
I think that tracking links would work do the job for you. Just create a link for each page. You can get details in the SurveyGizmo documentation – https://help.surveygizmo.com/help/article/link/tracking-links
Here’s what I just did.
- Use an “Action” to create a hidden value with value “pageUrlGoesHere”.
var myUrl = [location.protocol, ‘//’, location.host, location.pathname].join(”);