I love your plugin and it fits my client's use case perfectly except for one small issue. Our clients use UTM parameters and other cookies to track visitor behaviour. We would like to pull in some information from the cookies into hidden custom fields of Amelia Booking page.
Do you have a ready solution for this? Or can we add some code to get this customized for our use case.
Not sure if this is possible. We have forwarded your ticket to our level 2 agents and as soon as we get some feedback from them we will contact you immediately.
We just got the feedback from our colleagues and they have told us that you can try and use this workaround, add this JS hook on the page where booking form is placed:
<script>
window.ameliaActions = {
InitiateCheckout: function (success = null, error = null, data) {
//triggered once the customer lands on the "info" page where they fill in //their details
console.log('InitiateCheckout HOOK')
console.log(data)
console.log('------------')
// you can set value of the custom field here
//(e.g. document.cookie, window.location.search - with some logic for parsing UTM)
data.booking.customFields[2].value = "test"
},
}
</script>
and you can use custom CSS to hide that custom fields.
Hello Amelia Team
I love your plugin and it fits my client's use case perfectly except for one small issue.
Our clients use UTM parameters and other cookies to track visitor behaviour. We would like to pull in some information from the cookies into hidden custom fields of Amelia Booking page.
Do you have a ready solution for this?
Or can we add some code to get this customized for our use case.
Appreciate an answer for this.
Thank you.
Hello Shriram,
Not sure if this is possible. We have forwarded your ticket to our level 2 agents and as soon as we get some feedback from them we will contact you immediately.
Kind Regards,
Marko Davidovic
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Shriram,
We just got the feedback from our colleagues and they have told us that you can try and use this workaround, add this JS hook on the page where booking form is placed:
and you can use custom CSS to hide that custom fields.
Hope this helps.
Kind Regards,
Marko Davidovic
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks Marko. I will try this out.
Hello Shriram,
You are most welcome hopefully this will help you.
We wish you all the best.
Have a nice day.
Kind Regards,
Marko Davidovic
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables