We need the confirmation page to track everything correctly and as expected at the affiliate network. Without the confirmation page, it is not possible to recognize a successful transaction as it may also not be paid for by the customers.
Unfortunately, since this confirmation page is outside of WooCommerce in Amelia, it cannot be implemented with the WooCommerce plugin. So it's better to integrate with GTM, that's why knowing the data layers is so important.
At the moment the data layer is empty because the information from amelia isn´t there.
Neither GTM or the source code to access the data layers and pull them out.
<script>
window.ameliaActions = {
ViewContent: function (success = null, error = null, data) {
//triggered when the form loads
console.log('ViewContent HOOK')
console.log(data)
console.log('------------')
},
SelectService: function (success = null, error = null, data) {
//triggered when the service is selected/changed in the form
console.log('SelectService HOOK')
console.log(data)
console.log('------------')
},
SelectEmployee: function (success = null, error = null, data) {
//triggered when the employee is selected/changed in the form
console.log('SelectEmployee HOOK')
console.log(data)
console.log('------------')
},
SelectLocation: function (success = null, error = null, data) {
//triggered when the location is selected/changed in the form
console.log('SelectLocation HOOK')
console.log(data)
console.log('------------')
},
SelectCategory: function (success = null, error = null, data) {
//triggered when the category is selected/changed in the form
console.log('SelectCategory HOOK')
console.log(data)
console.log('------------')
},
SelectPackage: function (success = null, error = null, data) {
//triggered when the package is selected/changed in the form
console.log('SelectPackage HOOK')
console.log(data)
console.log('------------')
},
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('------------')
},
Schedule: function (success = null, error = null, data) {
//triggered once the 'on-site' booking is completed
console.log('Schedule HOOK')
console.log(data)
console.log('------------')
},
Purchased: function (success = null, error = null, data) {
//triggered once an online booking is completed
console.log('Purchased HOOK')
console.log(data)
console.log('------------')
},
beforeBooking: function (success = null, error = null, data) {
//triggered when the "Confirm" button is clicked but before the booking is completed.
//This hook currently doesn't work for Mollie and WooCommerce payments
console.log('Before booking is created HOOK')
console.log(data)
console.log('------------')
},
}
</script>
These are the same hooks used in Google Analytics and Facebook Pixel integrations, but if you need some other hooks added, please let us know which ones and explain what they would contain and when they should be triggered.
Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways.
If you need help with adding custom CSS to the page, please take a look at this article.
If you need help with adding custom JS to the page, please take a look at this article.
Hi
we wanted to register Amelia in connection with woocommerce at Googletagmanager for an affiliate program.
Unfortunately we cannot read the data layer via the Google tag.
We need your support there.
Thanks
Hello Eric,
Thank you for reaching out to us.
Can you please elaborate on what you are referring to as "we cannot read the data layer"?
Looking forward to your reply.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Hi Uros,
thank you for your response.
We need the confirmation page to track everything correctly and as expected at the affiliate network. Without the confirmation page, it is not possible to recognize a successful transaction as it may also not be paid for by the customers.
Unfortunately, since this confirmation page is outside of WooCommerce in Amelia, it cannot be implemented with the WooCommerce plugin. So it's better to integrate with GTM, that's why knowing the data layers is so important.
At the moment the data layer is empty because the information from amelia isn´t there.
Neither GTM or the source code to access the data layers and pull them out.
So what should we do to see the data layer.
Greetings
Eric Kirmse
Attached files: thumbnail_image006.png
Hello Eric
This could be done with the following hooks:
These are the same hooks used in Google Analytics and Facebook Pixel integrations, but if you need some other hooks added, please let us know which ones and explain what they would contain and when they should be triggered.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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 Uros,
thank your very much for your support. I tried to use it with code snippet but it doesn´t work. Where is the right place to put in your script?
Greeting Eric
Hello Eric,
Thank you for the update on this.
Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways.
If you need help with adding custom CSS to the page, please take a look at this article.
If you need help with adding custom JS to the page, please take a look at this article.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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