-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contact Source. How to pass source or tag variable in URL? #52
Comments
WPFORMS has done a lot of this. See https://wpforms.com/wpforms-hidden-field/ |
Agreed. The current webform does not really support a way of doing that.
Or, you could write your own form and send the fields to D.T. This is possible via the API and the Site to Site like authentication The webform could support hidden fields. Since we display the form via iframe, updating those fields from the website is challenging. Next upgrade |
Thanks Corsacca, that is very helpful. I really don't understand how to add a hook there without forking and maintaining that code, which is beyond me. Is there anyway to add a filter that pulls variables from the url? Cookies can't be pulled from a different site into DT, but maybe they could be passed as parameters. What about getting the cookie before generating the iframe and passing it along with referer in the iframe url? Tell me if it makes sense to you. This snippet is a shortcode to insert our cookies as tags into the iframe url before it is generated. Usage:
|
That could possibly work The campaigns field (acts like the tags field) might be the right field for this data. And could be supported out of the box. We'd want to use a field that already exists in D.T or set up a custom field, so we won't need to do anything in |
* Added shortcodes support * Refactored form html generation logic * Added support for additional campaigns metadata within url (#52) * Added functionality tweaks within shortcode handler function * Added ability to specify campaign values within shortcode embedded form urls
It would be really helpful to know how somebody got to our website! We are storing a cookie to indicate which ad, or which person led the contact to us. Now I want to pass that field to DT in the URL so that as the contact submits their form, the dispatcher will know where they came from (possibly a city, a team, or a person).
If someone can at least point me to the section of code, or the variables to set, that would even help. I would like to create a snippet to store this info.
Another approach would be to do the form on the host website and just send the fields to DT somehow.
The text was updated successfully, but these errors were encountered: