Hi, how can i create a custom tag and give it the order details ?
And when i try to use postMessage, i have this error :
'postMessage' does not exist on '#page1'
...
Thanks.
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
You can add custom js in html, it just has to be done through the html iframe as already stated above, or as a custom tool in Tracking and Analytics.
https://support.wix.com/en/article/embedding-custom-code-to-your-site
See this example here.
https://www.youtube.com/watch?v=3cZDwvHH7gw
Like A1webstats do with their own tracker code as shown here.
https://www.a1webstats.com/resource/add-javascript-to-wix-websites/
https://www.a1webstats.com/a1webstats-tracking-code-installation/
This is not helpfull, i can't belive we can add custom javascript in html with order's data ! This is the worst tool i ever seen to create websites !
Basicaly, i want to get the order details like the price and other stuff, and send theise informations with a script to an agency (not google).
Please give some more details about tags that you want to use. Where are they going to be used and for which purpose?
In addition, postMessage() is used for communication between an embedded page and a parent page. Do you have an embedded element on a page that you've mentioned? Here is a reference for more information: https://www.wix.com/corvid/reference/wix-window.html#postMessage